How to mark error in the project tree?

Answered

 

0
10 comments

Implement this EP https://jb.gg/ipe?extensions=com.intellij.problemFileHighlightFilter, implementation should implement

implements Condition<VirtualFile>
0

hi yann, we find this extensions but when we  try to  use

com.intellij.problems.WolfTheProblemSolver#reportProblems

our problem can not be maintained,By the way, how to mark problem in the problems?

0

Simply use regular "error highlighting" mechanism, e.g. Annotator or Inspection https://plugins.jetbrains.com/docs/intellij/syntax-highlighting-and-error-highlighting.html

0

I think the annotator can't achieve the effect we want. We don't know when the annotator will trigger

0

Try com.intellij.problems.WolfTheProblemSolver#reportProblemsFromExternalSource

0

But this method cannot mark the problem in problems panel.  0.0

0

Please share full code

0

Upload id: 2021_09_30_K3Zym1VGaX32msZg (file: demo.zip)

0

Sorry for delay. Please see https://plugins.jetbrains.com/docs/intellij/xml-dom-api.html#highlighting-annotations and following on how to highlight DOM files, namely extending custom com.intellij.util.xml.highlighting.BasicDomElementsInspection to highlight semantic errors.

0

Please sign in to leave a comment.