SuperDevMode with 2.6.0-rc3 and logLevel

682 views
Skip to first unread message

Patrice De Saint Steban

unread,
Dec 7, 2013, 6:45:05 AM12/7/13
to google-we...@googlegroups.com
Hello,

I test the new GWT version 2.6.0-rc3, the dev mode and the compile works with my application, but the super dev mode not work (it work with the 2.5.1 version).
I have this problème :
workDir: C:\Users\sfeir\AppData\Local\Temp\gwt-codeserver-2871590299772449765.tmp
binding: user.agent=safari
binding: compiler.useSourceMaps=true
binding: locale=en
Compiling module cef.kephas.KephasSuperDevMode
   Validating units:
      Ignored 33 units with compilation errors in first pass.
Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
   [ERROR] Errors in 'jar:file:/C:/Users/sfeir/.m2/repository/com/google/guava/guava-gwt/15.0/guava-gwt-15.0.jar!/com/google/common/collect/super/com/google/common/collect/Lists.java'
      [ERROR] Line 595: No source code is available for type com.google.common.math.IntMath; did you forget to inherit a required module?
   Computing all possible rebind results for 'cef.kephas.client.resources.HTMLTemplate'
      Rebinding cef.kephas.client.resources.HTMLTemplate
         Invoking generator com.google.gwt.safehtml.rebind.SafeHtmlTemplatesGenerator
            Constructing interface cef.kephas.client.resources.HTMLTemplate
               Generating method body for communityPopUp()
                  Template with variable in URL attribute context: The template code generator will sanitize the URL.  Use SafeUri to specify arguments in a URL attribute context that should not be sanitized.
               Generating method body for eventPopUp()
                  Template with variable in URL attribute context: The template code generator will sanitize the URL.  Use SafeUri to specify arguments in a URL attribute context that should not be sanitized.
   Computing all possible rebind results for 'cef.kephas.client.view.cell.ImageContraintLoadingCell.Template'
      Rebinding cef.kephas.client.view.cell.ImageContraintLoadingCell.Template
         Invoking generator com.google.gwt.safehtml.rebind.SafeHtmlTemplatesGenerator
            Constructing interface cef.kephas.client.view.cell.ImageContraintLoadingCell.Template
               Generating method body for img()
                  Template with variable in URL attribute context: The template code generator will sanitize the URL.  Use SafeUri to specify arguments in a URL attribute context that should not be sanitized.
Hibernate Validator 4.1.0.Final
[ERROR] Compiler returned false
com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
at com.google.gwt.dev.codeserver.Recompiler.compile(Recompiler.java:128)
at com.google.gwt.dev.codeserver.ModuleState.<init>(ModuleState.java:58)
at com.google.gwt.dev.codeserver.CodeServer.makeModules(CodeServer.java:120)
at com.google.gwt.dev.codeserver.CodeServer.start(CodeServer.java:95)
at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:71)
at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:49)


There are no errors messages, and I can't change the log Level like with Dev Mode or Compile, is there a way to set the Log Level for see the error message ?

Thanks,

Jens

unread,
Dec 7, 2013, 8:24:13 AM12/7/13
to google-we...@googlegroups.com
[ERROR] Errors in 'jar:file:/C:/Users/sfeir/.m2/repository/com/google/guava/guava-gwt/15.0/guava-gwt-15.0.jar!/com/google/common/collect/super/com/google/common/collect/Lists.java'
      [ERROR] Line 595: No source code is available for type com.google.common.math.IntMath; did you forget to inherit a required module?


I would call that an error message ;) Can you make sure you Guava setup is correct? On first sight Guava's Collect.gwt.xml file does inherit Guava's Math.gwt.xml file which in turn makes a super sourced version of IntMath visible to the GWT compiler. So technically it should work. Maybe you just have some sort of Maven class path issue.


Generating method body for communityPopUp()
                  Template with variable in URL attribute context: The template code generator will sanitize the URL.  Use SafeUri to specify arguments in a URL attribute context that should not be sanitized.
               Generating method body for eventPopUp()
                  Template with variable in URL attribute context: The template code generator will sanitize the URL.  Use SafeUri to specify arguments in a URL attribute context that should not be sanitized.


If you want to fix these kind of warnings you should use SafeUri instead of String as parameter type for any kind of urls in your SafeHtmlTemplates. E.g. something like

@Template("<span class=\"{3}\">{0}: <a href=\"{1}\">{2}</a></span>")
SafeHtml messageWithLink(SafeHtml message, String url, String linkText, String style);


should be

@Template("<span class=\"{3}\">{0}: <a href=\"{1}\">{2}</a></span>")
SafeHtml messageWithLink(SafeHtml message, SafeUri url, String linkText, String style);




-- J.

Patrice De Saint Steban

unread,
Dec 10, 2013, 6:01:09 AM12/10/13
to google-we...@googlegroups.com
Hello,

Thanks, but the error in the Guava is ignored as we not use this class in a GWT class.
For the warning, thanks for explanation, theses code must be changed in futur developpement, that why I not correct it at this time.

I manage to use the super dev mode, the problem went from dependency libs (gwt-dnd).

But the question, is there a way to set the logLevel in Super Dev Mode ?

Thanks.

Patrice de Saint Steban


--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/jikekBQr5O8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

Jens

unread,
Dec 10, 2013, 6:12:24 AM12/10/13
to google-we...@googlegroups.com, pat...@desaintsteban.fr
But the question, is there a way to set the logLevel in Super Dev Mode ?


Feel free to open an issue for it.

-- J. 

Patrice De Saint Steban

unread,
Dec 10, 2013, 8:57:43 AM12/10/13
to Jens, google-we...@googlegroups.com
Hello,

I submit a patch for add the argument logLevel in the Super Dev Mode.


Patrice de Saint Steban
Reply all
Reply to author
Forward
0 new messages