Monday, July 18, 2016

Re: “No source code is available for type”

That's it! Thanks a lot guys. Including the .java was the answer. 

I thought excluding the .java to make the jar lighter, but I totally missed that GWT needs sources. 

Cheers, 

Le lundi 18 juillet 2016 20:48:01 UTC+2, zakaria amine a écrit :
Hi GWT users, 

I am need your help with an issue that have been bugging me for days now. I created a gwt library(https://github.com/gwidgets/gwty-leaflet) which works and compiles fine. When I create an entry point from inside the project, everything is o.k. However, when I package the project, install it, and try to import it into another GWT project, the compiler complains. I tried eveything from changing packages names, depth, tried another GWT version, etc,... This does not seem to fix it. Any help would be much appreciated.  


   Tracing compile failure path for type 'com.test.client.test'  [INFO]          [ERROR] Errors in 'file:/C:/Users/zakaria/Desktop/myWork/GWidgets/workspace/testing/src/main/java/com/test/client/test.java'  [INFO]             [ERROR] Line 23: No source code is available for type com.gwidgets.leaflet.options.MapOptions; did you forget to inherit a required module?  [INFO]             [ERROR] Line 23: No source code is available for type com.gwidgets.leaflet.options.ZoomPanOptions; did you forget to inherit a required module?  [INFO]             [ERROR] Line 23: No source code is available for type com.gwidgets.leaflet.L; did you forget to inherit a required module?  [INFO]       [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment