Community
Participate
Working Groups
build 20030828 I have a file linked to a path variable. The path variable is bound to a file that does not exist. The project the linked file is in does not compile. See the attached log.
Created attachment 5936 [details] log file
Also, I can't delete the file. I get a message "Resource is out of sync with the file system" if I try.
It can't copy the file because it doesn't exist on disk (I think this is fine). It reports that the file is out of sync because it exists in the workspace but not on disk. The navigator correctly allows the user to delete out of sync resources, but it looks like the package explorer does not. Moving to JDTUI. See DeleteResourceAction for an example of deleting out of sync resources.. it should prompt for deleting out of sync, then invoke core delete method again with IResource.FORCE flag.
There are two issue: deleting the file and compiling. The original complain was about compiling. Moving to JDT/Core for comments. I opened a separate PR for the delete case.
As far as I remember there was no decent error reporting to help the user determine what is wrong. I had to look at the stack dump in the log to find out how to get the project to compile. The Problems view only reported that the project could not be built.
We report the resource exception message as part of our build error. Can Core could include the path of the resource which failed to copy, instead of "Problems encountered while copying resources"
The core API returns an exception that contains a MultiStatus. The child status says: Resource /Playground_Knut/testLink does not exist. In normal API usage, the MultiStatus would be passed to an ErrorDialog, which would manifest the child status in the "details" area of the dialog. In the java builder's use, the complete information is not surfaced in the error message attached to the marker.
There is no core bug here.