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 241929 - AssertionError at org.netbeans.modules.cnd.lexer.CppStringLexer.nextToken
Summary: AssertionError at org.netbeans.modules.cnd.lexer.CppStringLexer.nextToken
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-16 07:37 UTC by Exceptions Reporter
Modified: 2017-04-12 12:42 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 207645


Attachments
stacktrace (5.91 KB, text/plain)
2014-02-16 07:37 UTC, Exceptions Reporter
Details
stacktrace (2.92 KB, text/plain)
2015-06-08 15:53 UTC, Alexander Simon
Details
stacktrace (7.86 KB, text/plain)
2017-03-04 20:09 UTC, tbrunhoff
Details
stacktrace (6.11 KB, text/plain)
2017-03-04 20:12 UTC, tbrunhoff
Details
stacktrace (6.12 KB, text/plain)
2017-03-05 03:18 UTC, tbrunhoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2014-02-16 07:37:43 UTC
This issue was reported manually by alexvsimon.
It already has 1 duplicates 


Build: NetBeans IDE 8.0 Beta (Build 201401141042)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Linux

User Comments:
GUEST: trying to delete a character




Stacktrace: 
java.lang.AssertionError
   at org.netbeans.modules.cnd.lexer.CppStringLexer.nextToken(CppStringLexer.java:310)
   at org.netbeans.lib.lexer.LexerInputOperation.nextToken(LexerInputOperation.java:215)
   at org.netbeans.lib.lexer.EmbeddedTokenList.initAllTokens(EmbeddedTokenList.java:185)
   at org.netbeans.lib.lexer.EmbeddingOperation.embeddedTokenList(EmbeddingOperation.java:206)
   at org.netbeans.api.lexer.TokenSequence.embeddedImpl(TokenSequence.java:372)
   at org.netbeans.api.lexer.TokenSequence.embedded(TokenSequence.java:320)
Comment 1 Exceptions Reporter 2014-02-16 07:37:44 UTC
Created attachment 145247 [details]
stacktrace
Comment 2 Alexander Simon 2014-02-16 08:04:54 UTC
regression introduced in bug #209857
Comment 3 Alexander Simon 2015-06-08 15:53:41 UTC
Created attachment 154112 [details]
stacktrace

refactor
Comment 4 tbrunhoff 2017-03-04 20:09:31 UTC
Created attachment 163762 [details]
stacktrace

Copying a rectangular selection from JetBrains Pycharm and then pasting it into some c++ code.
Comment 5 tbrunhoff 2017-03-04 20:12:30 UTC
Created attachment 163763 [details]
stacktrace

trying to delete a rectangular selection.
Comment 6 tbrunhoff 2017-03-05 03:18:31 UTC
Created attachment 163766 [details]
stacktrace

Trying to replace a rectangular selection over 12 lines of a doiuble quote (") with a single quote (').
Comment 7 Vladimir Voskresensky 2017-03-31 15:32:35 UTC
reproduced:
#define R""
Try to replace the first double-quote with single-quote
Comment 8 Quality Engineering 2017-04-02 02:36:58 UTC
Integrated into 'main-silver', will be available in build *201704020002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/4efd4c610ac3
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixing #241929 - AssertionError at org.netbeans.modules.cnd.lexer.CppStringLexer.nextToken
- added unit tests
(transplanted from 8ae48057795d42a525de8b9cc104512b6f664a10)
Comment 10 Quality Engineering 2017-04-11 01:52:49 UTC
Integrated into 'main-silver', will be available in build *201704110002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/df819aef67ec
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed #241929 - AssertionError at org.netbeans.modules.cnd.lexer.CppStringLexer.nextToken
- better error recovery in raw strings
(transplanted from 2cd7f001dfb3abf92fcdb9dc0f72ab37d34c2562)
Comment 11 ilia 2017-04-12 12:42:13 UTC
https://netbeans.org/bugzilla/show_bug.cgi?id=241929 Changesets:
    http://hg.netbeans.org/releases/rev/8ae48057795d # fixing #241929 - AssertionError at org.netbeans.modules.cnd.lexer.CppStringLexer.nextToken
    http://hg.netbeans.org/releases/rev/2cd7f001dfb3 # fixed #241929 - AssertionError at org.netbeans.modules.cnd.lexer.CppStringLexer.nextToken