Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GWT compiler fails when -saveSource is used #9263

Closed
timeu opened this issue Jan 12, 2016 · 3 comments
Closed

GWT compiler fails when -saveSource is used #9263

timeu opened this issue Jan 12, 2016 · 3 comments
Milestone

Comments

@timeu
Copy link
Contributor

timeu commented Jan 12, 2016

When the GWT compiler is run with the -saveSource parameter, it fails with following error:

[ERROR] Fatal error emitting artifact: src/gen/com/gmi/nordborglab/browser/shared/proxy/CandidateGeneListEnrichmentPageProxyAutoBean_com_google_web_bindery_requestfactory_shared_impl_EntityProxyCategory_com_google_web_bindery_requestfactory_shared_impl_ValueProxyCategory_com_google_web_bindery_requestfactory_shared_impl_BaseProxyCategory.java
[INFO] java.io.FileNotFoundException: /home/GMI/uemit.seren/mnt/user/uemit.seren/Code/GWAPortal/genophenbrowser/genophenbrowser-client/target/extra/browser/src/gen/com/gmi/nordborglab/browser/shared/proxy/CandidateGeneListEnrichmentPageProxyAutoBean_com_google_web_bindery_requestfactory_shared_impl_EntityProxyCategory_com_google_web_bindery_requestfactory_shared_impl_ValueProxyCategory_com_google_web_bindery_requestfactory_shared_impl_BaseProxyCategory.java (File name too long)

It seems to be the same underlying issue as in #6014 which was fixed in 2.4

The workaround is to store the sources in a .war,.zip or .jar file:

-saveSourceOutput sources.war

@timeu
Copy link
Contributor Author

timeu commented Jan 13, 2016

The exception is thrown in the copyGeneratedFile function:

throw new UnableToCompleteException();

Maybe one should just log a message and not throw an Exception similar to what is done in issue #6014.
If needed I can create a pull request

@tbroyer
Copy link
Member

tbroyer commented Jan 13, 2016

If needed I can create a pull request

Assuming you mean a change in Gerrit here ;-) then yes please go ahead.

@timeu
Copy link
Contributor Author

timeu commented Jan 13, 2016

niloc132 pushed a commit to niloc132/gwt-playground that referenced this issue Mar 28, 2016
Filenames exceeding file system limits shouldn't break the
build if they cannot be saved to disk; they just wouldn't be
available for sourcemaps.
This is a similar issue to
gwtproject/gwt#6014

Bug: #9263
Bug-Link: gwtproject/gwt#9263
Change-Id: Ie4b9f8aaaffaec04640cc92ed3071c0ae85fa35e
@tbroyer tbroyer modified the milestone: 2.8 Apr 14, 2016
@tbroyer tbroyer closed this as completed Apr 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants