Community
Participate
Working Groups
Build Identifier: 20110301-1815 In org.eclipse.xtext.builder.impl.QueuedBuildData.queueURI(URI) the projectName is extracted from an URI with this code: String projectName = uri.segment(1); If the project's name contains a space then you end up with "%20" in your projectName. The project names used by eclipse are not escaped. Reproducible: Always
Doing this as a patch: ... public void queueURI(URI uri) { if (uri.isPlatformResource()) { String projectName = URI.decode (uri.segment(1)); ...
BTW, In order to patch this, I had to pretty much copy the entire QueuedBuildData class because its fields are private. Maybe make those protected? BTW (2), This bug also manifests itself as follows: If you create a new project with a space in its name and the project creation also immediately opens a file in that project, then that file doesn't get build properly. So, it's probably useful to triage the existing bug reports to see if they could be caused by this flaw.
Created attachment 198703 [details] proposed patch I believe the IStorage2UriMapper should be used here.
Mark, thanks for the ticket and the detailed description on how to reproduce the issue. Thanks for patch and the pointer to the IStorage2URIMapper, Knut. Pushed a slightly modified solution to master. Please verify.
*** Bug 353425 has been marked as a duplicate of this bug. ***
Closing all bugs that were set to RESOLVED before Neon.0