IntelliJ IDEA Open API and Plugin Development Is Deprecated. Join our JetBrains Platform Community.
Annotator not working for custom language in 2018.2
3 人关注
I have an annotator for a custom language, which was working until 2018.2. I'm using the same exact type of code that I use elsewhere for a Java annotator. The Java annotator works fine, but the other one doesn't. When stepping through the code, I see the method is being called and valid values are being set, but it doesn't actually change anything. Did something change with the Annotator API in 2018.2 that I need to know?
请先登录再写评论。
Are there any exceptions in idea.log?
Not that I'm aware of. The only exceptions I see printing deal with Kotlin scripts of some kind. I can post it later today when I get home from work.
There are no exceptions in the log. I also noticed this same problem with another annotator I have for a different custom language, which was set this time using a perhaps more traditional TextAttributesKey. This meant I could go into the color scheme editor and change the effect type, which is where I discovered that all of the other effects work, except for underscore and strikeout.
I also realized after checking that, that I had set the underscore type for the other annotator that was working for Java as a bold underline, which does work. So this leads me to believe that the standard underscore effect just doesn't work in general.
Kyle, could you please check the following. Open Settings dialog, navigate to Editor > Color Scheme > Language Defaults > Identifiers > Default. Then select the option "Effects" and chose "Underscore" / "Bold Underscore". Does it work in the preview?