Closed artspb closed 7 years ago
I also ran into this on Intellij 2017.2 EAP (IU-172.2465.6).
Could you provide an example file that's causing the exception? Unfortunately the stack traces don't say anything more than "the lexer broke".
Hmm I had disabled the plugin, and I just reenabled it and everything is working fine :/ I know that's not helpful at all.
Just ran into this again. I don't think it's a problem with the actual lexer. Every nginx file throws this exception. For example:
# Prevent downgrade attacks (force HTTPS)
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains;" always;
It looks to be a concurrency problem instead.
Here's a similar issue with the yaml parser: https://youtrack.jetbrains.com/issue/DEXP-210188
Here's another one with a code fix: https://github.com/Camelcade/Perl5-IDEA/issues/901
I came across this issue myself (idea 2017.1.5 and 2017.2). Tried to debug a little with idea sdk plugin. It is reproducible with high accuracy if I do create multiple nginx.conf files and try to associate them with wild-card file types (eq.: nginx.conf).
It crashes in FlexAdapter.locateToken() with java.lang.ArrayIndexOutOfBoundsException: 0. zzBufer shows "" at this point. Interestingly - myFailed is set to true here and does not recover in any consequent conf file open. If I set myFailed=false within debugger, lexer starts to work until next crash :/ . Unfortunately I am not into JFlex enough to help further.
I'm hosting a copy of my config here: https://gist.github.com/dancrumb/f0ec9abe3111ee9b0e4f6255a5134393
I'm seeing this issue also.
We've received this exception from one of our users.