| Summary: | Codan markers are not refreshed when Code Analysis settings change | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Sergey Prigogin <eclipse.sprigogin> |
| Component: | cdt-codan | Assignee: | CDT Codan Inbox <cdt-codan-inbox> |
| Status: | NEW --- | QA Contact: | Elena Laskavaia <elaskavaia.cdt> |
| Severity: | normal | ||
| Priority: | P3 | CC: | cdtdoug, yevshif |
| Version: | 8.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | All | ||
| Whiteboard: | |||
I don't know how to fix it. Do I suppose to rebuild the whole workspace? If will be updated as soon you change something in the file. When you change Java Compiler Error/Warnings level it asks if you want to do a full rebuild. I think it is a sensible thing to ask. Normally it won't run with build only per file. If you project is 1000 files and you have 2 files open do you really want to rebuild all? Maybe I should just clear markers for which user changes something and warn user that what would happened. Codan markers usually exist for a small set of files. How about recalculating markers just for those files? Hi, I am evaluating CDT 8.0(M7). Currently I am not using eclipse for building my project (I am building it from command line). I tried disabling all CODAN tests. I am not able to clean/remove previous codan checkers results. I tried several actions: * closing / opening my project * context menu on my project -> Clean Project * context menu on my project -> Run C/C++ Code Analysis I would appreciate any suggestions. Thanks a lot, Yevgeny (In reply to comment #5) > I am evaluating CDT 8.0(M7). Currently I am not using eclipse for building my > project (I am building it from command line). I tried disabling all CODAN tests. > I am not able to clean/remove previous codan checkers results. You can go in Problems View and apply "delete" key to the markers. Be warned about efficiency of this operation, if you trying remove a few thousands of markers it could take time (on scale of hours) to complete. (In reply to comment #6) > (In reply to comment #5) > > I am not able to clean/remove previous codan checkers results. > You can go in Problems View and apply "delete" key to the markers. Be warned > about efficiency of this operation, if you trying remove a few thousands of > markers it could take time (on scale of hours) to complete. BTW I filed bug 345608 about performance. On the other hand I was able to remove ~40000 markers in no time in .metadata/.plugins/org.eclipse.core.resources/.projects/MyProject/.markers. |
To reproduce: 1. Turn off "Do not report an error if 'else' exists" option. 2. Create a source file with the following code: void test() { if (true) ; else printf("hello\n"); } 3. Turn on "Do not report an error if 'else' exists" option. The warning marker on the semicolon doesn't go away. It does go away after closing and reopening the file.