How to use CompileContext.addMessage() to show a error in the message toolbox? Follow
Hi
I'm a newbie in developing Intellij plugins. Now I face a problem that I want to use the Message toolbox to show the Errors and Warnings in the Message toolbox (I'm now simply using ConsoleView)
So when I try to Use CompileContext compileContext=null; and complieContext.addMessage(), the program get into infinate loop.
How to use it correctly?
Any help will be appreciated. Thanks.
Please sign in to leave a comment.
My plugin does this today, but I will say that I'm likely going to replace the use of the Problems View with a custom tool window that serves the same purpose. There are two reasons I'm planning to do that:
So having said that, here's what I do to add a message for a file, clear messages for a file, and clear the Problems View altogether:
Hope it helps!
Thanks a lot!
The code solve my problem perfectly:)