This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 256815 - java.util.ConcurrentModificationException: Caller uses obsolete token sequence which is no longer valid. Underlying token hierarchy has been modified by insertion or removal or a custom language embed
Summary: java.util.ConcurrentModificationException: Caller uses obsolete token sequenc...
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Lexer (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-26 14:51 UTC by vinaykrsharma1986
Modified: 2015-11-26 14:51 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 212939


Attachments
stacktrace (1.10 KB, text/plain)
2015-11-26 14:51 UTC, vinaykrsharma1986
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vinaykrsharma1986 2015-11-26 14:51:39 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.40-b25, Java(TM) SE Runtime Environment, 1.8.0_40-b25
OS: Mac OS X

User Comments:
vinaykrsharma1986: ...

pmaselkowski: 1. Wrote part of trait name in class definition
2. Hit ctrl+space to autocomplete to full trait name
3. Exception was raised instantly after autocomplete

NOTE:
Class had unimplemented methods from interface, these missing methods were in this trait.

memesiszx: I don't know what happened, it just happened

pmaselkowski: Used code completition after static method call in php:
JavaScript::
And exception was raised.

GUEST: ...

GUEST: Validate PHP autocompletion




Stacktrace: 
java.util.ConcurrentModificationException: Caller uses obsolete token sequence which is no longer valid. Underlying token hierarchy has been modified by insertion or removal or a custom language embedding was created.TS.modCount=112, tokenList.modCount()=113, rootModCount=113
Please report a bug against a module that calls lexer's code e.g. java, php etc. but not the lexer module itself.
   at org.netbeans.api.lexer.TokenSequence.checkValid(TokenSequence.java:805)
   at org.netbeans.api.lexer.TokenSequence.moveNext(TokenSequence.java:485)
   at coffeescript.nb.CoffeeScriptHTMLParserTask.run(CoffeeScriptHTMLParserTask.java:46)
   at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:573)
   at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:744)
   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
Comment 1 vinaykrsharma1986 2015-11-26 14:51:42 UTC
Created attachment 157509 [details]
stacktrace