Community
Participate
Working Groups
A couple of interrelated issues for which I'm attaching a patch: - BuildDescription.calcResourceLocation(IResource) should use EFSExtensionManager to get the path associated with the resource. It was trying to take the workspace relative path for the resource and append it to the workspace root location, but that doesn't work when your resources do not in the tree under the workspace directory. This might be problematic for linked resources too, but I noticed it with a remote EFS project. - getURIForLocation(IPath location) ends up throwing URISyntaxExceptions, because it tries to then take this path and shove it into a URI directly. Since it was a local path, you can't do this. Fixing the above problem avoids this, but this code should still be cleaned up to use EFSExtensionManager to construct URIs, rather than doing it directly.
Created attachment 200360 [details] patch
(In reply to comment #1) > Created attachment 200360 [details] > patch Please update copyright year as well. Thanks.
Created attachment 200379 [details] updated patch with fixed copyright
Applied to cdt_7_0, cdt_8_0, and master.
*** cdt git genie on behalf of Chris Recoskie *** Bug 353113 - BuildDescription class does not behave properly for remote projects [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=79fc7de8028144434f8e7d1bcea741548b117fa7