You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "tmulle (via GitHub)" <gi...@apache.org> on 2023/03/08 14:26:42 UTC

[GitHub] [netbeans] tmulle opened a new issue, #5631: NB17: Caller uses obsolete token sequence which is no longer valid.

tmulle opened a new issue, #5631:
URL: https://github.com/apache/netbeans/issues/5631

   ### Apache NetBeans version
   
   Apache NetBeans 17
   
   ### What happened
   
   While working on my code I noticed an error in the notifications window:
   
   ```
   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=948, tokenList.modCount()=950, rootModCount=950
   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:784)
   	at org.netbeans.api.lexer.TokenSequence.moveIndex(TokenSequence.java:568)
   	at org.netbeans.modules.java.editor.base.semantic.TokenList.resetToIndex(TokenList.java:372)
   	at org.netbeans.modules.java.editor.base.semantic.SemanticHighlighterBase$DetectorVisitor.visitMethodInvocation(SemanticHighlighterBase.java:781)
   	at org.netbeans.modules.java.editor.base.semantic.SemanticHighlighterBase$DetectorVisitor.visitMethodInvocation(SemanticHighlighterBase.java:316)
   	at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1815)
   	at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:92)
   	at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69)
   	at org.netbeans.modules.java.editor.base.semantic.SemanticHighlighterBase$DetectorVisitor.scan(SemanticHighlighterBase.java:1121)
   	at org.netbeans.modules.java.editor.base.semantic.SemanticHighlighterBase$DetectorVisitor.scan(SemanticHighlighterBase.java:316)
   	at com.sun.source.util.TreeScanner.visitBinary(TreeScanner.java:721)
   	at com.sun.tools.javac.tree.JCTree$JCBinary.accept(JCTree.java:2168)
   	at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:92)
   	at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69)
   	at org.netbeans.modules.java.editor.base.semantic.SemanticHighlighterBase$DetectorVisitor.scan(SemanticHighlighterBase.java:1121)
   	at org.netbeans.modules.java.editor.base.semantic.SemanticHighlighterBase$DetectorVisitor.scan(SemanticHighlighterBase.java:316)
   	at com.sun.source.util.TreeScanner.visitParenthesized(TreeScanner.java:661)
   	at com.sun.tools.javac.tree.JCTree$JCParens.accept(JCTree.java:2024)
   	at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:92)
   	at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69)
   	at org.netbeans.modules.java.editor.base.semantic.SemanticHighlighterBase$DetectorVisitor.scan(SemanticHighlighterBase.java:1121)
   	at org.netbeans.modules.java.editor.base.semantic.SemanticHighlighterBase$DetectorVisitor.scan(SemanticHighlighterBase.java:316)
   	at com.sun.source.util.TreeScanner.visitIf(TreeScanner.java:485)
   	at com.sun.tools.javac.tree.JCTree$JCIf.accept(JCTree.java:1567)
   	at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:92)
   	at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69)
   	at org.netbeans.modules.java.editor.base.semantic.SemanticHighlighterBase$DetectorVisitor.scan(SemanticHighlighterBase.java:1121)
   	at org.netbeans.modules.java.editor.base.semantic.SemanticHighlighterBase$DetectorVisitor.scan(SemanticHighlighterBase.java:316)
   	at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:96)
   	at com.sun.source.util.TreeScanner.scan(TreeScanner.java:111)
   	at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:78)
   	at com.sun.source.util.TreeScanner.visitBlock(TreeScanner.java:272)
   	at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1094)
   	at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:92)
   	at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69)
   	at org.netbeans.modules.java.editor.base.semantic.SemanticHighlighterBase$DetectorVisitor.scan(SemanticHighlighterBase.java:1121)
   	at org.netbeans.modules.java.editor.base.semantic.SemanticHighlighterBase$DetectorVisitor.visitMethod(SemanticHighlighterBase.java:934)
   	at org.netbeans.modules.java.editor.base.semantic.SemanticHighlighterBase$DetectorVisitor.visitMethod(SemanticHighlighterBase.java:316)
   	at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:944)
   	at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:92)
   	at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69)
   	at org.netbeans.modules.java.editor.base.semantic.SemanticHighlighterBase$DetectorVisitor.scan(SemanticHighlighterBase.java:1121)
   	at org.netbeans.modules.java.editor.base.semantic.SemanticHighlighterBase$DetectorVisitor.scan(SemanticHighlighterBase.java:316)
   	at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:96)
   	at com.sun.source.util.TreeScanner.scan(TreeScanner.java:111)
   	at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:78)
   	at org.netbeans.modules.java.editor.base.semantic.SemanticHighlighterBase$DetectorVisitor.visitClass(SemanticHighlighterBase.java:1049)
   	at org.netbeans.modules.java.editor.base.semantic.SemanticHighlighterBase$DetectorVisitor.visitClass(SemanticHighlighterBase.java:316)
   	at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:851)
   	at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:92)
   	at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69)
   	at org.netbeans.modules.java.editor.base.semantic.SemanticHighlighterBase$DetectorVisitor.scan(SemanticHighlighterBase.java:1121)
   	at org.netbeans.modules.java.editor.base.semantic.SemanticHighlighterBase$DetectorVisitor.scan(SemanticHighlighterBase.java:316)
   	at com.sun.source.util.TreeScanner.scan(TreeScanner.java:111)
   	at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:78)
   	at org.netbeans.modules.java.editor.base.semantic.SemanticHighlighterBase$DetectorVisitor.visitCompilationUnit(SemanticHighlighterBase.java:597)
   	at org.netbeans.modules.java.editor.base.semantic.SemanticHighlighterBase$DetectorVisitor.visitCompilationUnit(SemanticHighlighterBase.java:316)
   	at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:619)
   	at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:92)
   	at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69)
   	at org.netbeans.modules.java.editor.base.semantic.SemanticHighlighterBase$DetectorVisitor.scan(SemanticHighlighterBase.java:1121)
   	at org.netbeans.modules.java.editor.base.semantic.SemanticHighlighterBase.process(SemanticHighlighterBase.java:200)
   	at org.netbeans.modules.java.editor.semantic.SemanticHighlighter.process(SemanticHighlighter.java:56)
   	at org.netbeans.modules.java.editor.base.semantic.SemanticHighlighterBase.run(SemanticHighlighterBase.java:154)
   	at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:561)
   [catch] at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:786)
   	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:288)
   	at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
   	at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
   	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
   	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
   	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
   	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
   	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
   	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
   ```
   
   ### How to reproduce
   
   Unfortunately, I don't know how to reproduce this. I was modifying many source files and just happen to notice the error appear. If I can pinpoint what I did to cause it I will update the ticket
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   MacOS
   
   ### JDK
   
   JDK17
   
   ### Apache NetBeans packaging
   
   Apache NetBeans binary zip
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   Yes


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] eirikbakke commented on issue #5631: NB17: Caller uses obsolete token sequence which is no longer valid.

Posted by "eirikbakke (via GitHub)" <gi...@apache.org>.
eirikbakke commented on issue #5631:
URL: https://github.com/apache/netbeans/issues/5631#issuecomment-1594266645

   I've been seeing this as well, in NetBeans 18.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [I] NB17: Caller uses obsolete token sequence which is no longer valid. [netbeans]

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien closed issue #5631: NB17: Caller uses obsolete token sequence which is no longer valid.
URL: https://github.com/apache/netbeans/issues/5631


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [I] NB17: Caller uses obsolete token sequence which is no longer valid. [netbeans]

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on issue #5631:
URL: https://github.com/apache/netbeans/issues/5631#issuecomment-1817926049

   going to close this since it is a duplicate of #4192


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists