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 - 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
Summary: AssertionError: assertion failed: Token's read length 0 should > 0: List(Toke...
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Lexer (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-07 21:37 UTC by aosamai
Modified: 2015-12-07 21:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 206276


Attachments
stacktrace (8.59 KB, text/plain)
2015-12-07 21:37 UTC, aosamai
Details

Note You need to log in before you can comment on or make changes to this bug.
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