Following this simple good tutorial:
has mostly worked for me but I have deviated slightly away from simple properties to a trivial programming language. Unfortunately, I literally am stuck now. Icannot get simple structured view. I get a null pointer exception but the location is destroyed because I think it jumps between threads or something.
[ 8560] ERROR - plication.impl.ApplicationImpl - java.lang.NullPointerException
The AbstractTreeUi.java:3415 location is trapping the exception and re-throwing:
throw new RuntimeException(t);
I can't imagine that destroying the trace normally (must be a thread hopping thing) but the trace is empty for t in the debugger. I'm 99% sure it has something to do with getting the children of a structured view tree element. I think that the children list is coming back null inappropriately sometimes. Despite breakpoints everywhere, no luck. I've spent many hours on this trying to step through the code and debug. Naturally this is almost impossible with the dozen threads are so going on. We have no idea where it's triggering the exception so I don't think anybody could debug this without complete expertise in the source code.
Now that I've moved out of my expertise in parsing perhaps I will get no further. No offense, but this has been unbelievably frustrating trying to create a simple plug-in. Fortunately your source code is very good and so I can mostly answer my own questions using the debugger and reading source code. That said, I'm just about ready to throw away everything I've learned, which would be a pity because then there is no simple ANTLR integration into Intellij. I don't think I have response so far to my last question about a suspicious thread error message. I understand that people are busy at jetbrains but I think you could devote a little bit more resources to pay people to help with plug-in development; seems like it would be hurting your business not have more plug-ins. If you guys think that having the ANTLR support for plug-ins is useful, can you allocate part of a human to help me out with these roadblocks? I have a lot more interesting projects to work on and I'm just about at my threshold of pain.