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 257037

Summary: AssertionError: assertion failed: Token's read length 0 should > 0: List(TokenInfo(2,BlockCommentStart), TokenInfo(1,Nl), TokenInfo(13,BlockCommentData), TokenInfo(1,Nl), TokenInfo(1,Nl), TokenInfo(94
Product: editor Reporter: aosamai
Component: LexerAssignee: Miloslav Metelka <mmetelka>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 206276
Attachments: stacktrace

Description aosamai 2015-12-07 21:37:27 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-b27
OS: Windows 7

User Comments:
GUEST: Opening maven projects.

GUEST: Opening 75 maven projects, many with scala sources. "Waiting for background scanning of sources". Uses much memory.

GUEST: Just opening projects at start up.

aosamai: opening up a scala project

GUEST: Opening lift project in a fresh installed netbeans 7.4.

Using latest version of nbsbt and nbscala, just pulled out of git 28.th of december 2013

GUEST: Loading projects on startup

GUEST: Restart, having hung after switching to a new project group.

GUEST: Error message doesn't indicate (to me) what the error is related to, so not sure what useful info I can provide here.
Am using Scala plugins.  Two simple files - one of which currently has syntax error "Reassignment to 'val'" (I have a ';' rather than ':' in the source file.




Stacktrace: 
java.lang.AssertionError: assertion failed: Token's read length 0 should > 0: List(TokenInfo(2,BlockCommentStart), TokenInfo(1,Nl), TokenInfo(13,BlockCommentData), TokenInfo(1,Nl), TokenInfo(1,Nl), TokenInfo(94,BlockCommentData), TokenInfo(1,Nl), TokenInfo(22,BlockCommentData), TokenInfo(1,Nl), TokenInfo(79,BlockCommentData), TokenInfo(1,Nl), TokenInfo(1,Nl), TokenInfo(31,BlockCommentData), TokenInfo(1,Nl), TokenInfo(1,Nl), TokenInfo(3,DocCommentStart), TokenInfo(1,Nl), TokenInfo(82,DocCommentData), TokenInfo(1,Nl), TokenInfo(1,DocCommentData), TokenInfo(2,DocCommentEnd), TokenInfo(1,Nl), TokenInfo(22,BlockCommentData), TokenInfo(1,Nl), TokenInfo(68,BlockCommentData), TokenInfo(1,Nl), TokenInfo(67,BlockCommentData), TokenInfo(1,Nl), TokenInfo(65,BlockCommentData), TokenInfo(1,Nl), TokenInfo(37,BlockCommentData), TokenInfo(1,Nl), TokenInfo(54,BlockCommentData), TokenInfo(1,Nl), TokenInfo(58,BlockCommentData), TokenInfo(1,Nl), TokenInfo(50,BlockCommentData), TokenInfo(1,Nl), TokenInfo(71,BlockCommentData), Toke
   at scala.Predef$.assert(Predef.java:165)
   at org.netbeans.modules.scala.core.lexer.ScalaLexer.nextToken(ScalaLexer.java:121)
   at org.netbeans.lib.lexer.LexerInputOperation.nextToken(LexerInputOperation.java:215)
   at org.netbeans.lib.lexer.BatchTokenList.tokenOrEmbeddingImpl(BatchTokenList.java:196)
   at org.netbeans.lib.lexer.BatchTokenList.tokenOrEmbedding(BatchTokenList.java:191)
   at org.netbeans.lib.lexer.LexerUtilsConstants.tokenIndexLazyTokenCreation(LexerUtilsConstants.java:332)
Comment 1 aosamai 2015-12-07 21:37:30 UTC
Created attachment 157705 [details]
stacktrace