| Summary: | Markers are not updated for read-only files during clean/full build | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | germund <germund> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | clay, johannes.stelzer, mirko, sebastian.zarnekow, smit27589, stephane, sven.efftinge |
| Version: | unspecified | Flags: | sebastian.zarnekow:
indigo+
|
| Target Milestone: | SR1 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
germund
That's intended behavior. The rational (besides that we have a similar behavior in JDT) is that you can't do anything about it (i.e. fix them) and also the markers API is not available for non workspace resources like jar entries for instance. (In reply to comment #1) > That's intended behavior. The rational (besides that we have a similar behavior > in JDT) is that you can't do anything about it (i.e. fix them) and also the > markers API is not available for non workspace resources like jar entries for > instance. Ok, thanks for the clarification. A different rationale for open (read-only) documents then. Yes. Many version control systems such as Perforce,Clearcase mark files that are not checked out as read only. So the intended behaviour according to you has caused me lot of problems and basically we need to change that condition (!file.isReadonly()) See last comment. We should have a second look at this issue. Another person has added a similar comment to the corresponding forum thread (http://www.eclipse.org/forums/index.php/t/207688/#msg_702462) on 07/26/2011. I think it is high time that this issue is addressed. The original rationale seems flawed to me, because developers can actually do something about errors in write-protected resources, namely they can check out the file out of source control and fix the problem (or just remove the write lock manually). But even for files that are not currently writable, developers would want to know if they contain any problems. IMHO, the fact that a file is read-only does not imply that I don't care about any errors in that file. Removed the dependency to bug 351963 since the readonly issue affects all languages (even those, that you cannot manipulate, e.g. Xtext, Xtend, mwe2). Pushed to master. Thanks for fixing this! :-) *** Bug 342875 has been marked as a duplicate of this bug. *** Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |