History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-6085
Type: New Feature New Feature
Status: Waiting for Reply Waiting for Reply
Assignee: Maxim Shafirov
Reporter: Keith Lea
Votes: 28
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Provide option in Language to force Annotator to be re-run upon filesystem synchronization

Created: 08 Dec 05 20:08   Updated: 15 Feb 07 18:42
Component/s: Plugin Support. API

Build: 3,542
Severity: High


 Description  « Hide
Currently the Annotator is not re-run like a LocalInspectionTool when files are resynced. This is not desirable for my language, and combined with IDEA-6032 it means there's no way to reliably annotate the file with errors which depend on state of other files.

 All   Comments   Work Log   Change History      Sort Order:
Eugene Vigdorchik - 06 Apr 06 13:34
Annotator should be rerun automatically on any file change. The only optimization is done when there is modification interior to java code block, in which case modifications are considered local and not causing any other files' validity state change.

Keith Lea - 06 Apr 06 17:43
I mean re-run when resyncing even if the file didn't change. Some errors in my file depends on other files changing. Maybe a better option would be to allow custom API to decide when to re-annotate.

Keith Lea - 06 Apr 06 17:44
To make things clearer: an example is when I switch to another window, then back into IDEA, it seems that localinspectiontools re-run, but annotators do not.

Sascha Weinreuter - 06 Apr 06 17:47
I filed IDEA-7297 about defining such dependencies.

Eugene Vigdorchik - 06 Apr 06 19:22
Neither inspections, nor annotators are rerun if no file is changed inside the project. If at least one file changes, then both are rerun on editor's next focus activation. Do you need to rerun if the changed files are outside the project?

Keith Lea - 06 Apr 06 19:32
Interesting, I wonder if this has changed recently or if I made that behavior up. No, we only need to rerun if files inside the project changed. However, I'd prefer API where I tell IDEA when to re-annotate, rather than it asking me, or having to define dependencies at parse time or something.

Maxim Shafirov - 15 Feb 07 18:42
DaemonCodeAnalyzer.getInstance(project).restart() is what you probably looking for. It's not an OpenAPI so if it works for you please let me know and we'll move it out.