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.
This bug was originally marked as duplicate of bug 165706, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE Dev (Build 201701240001) VM: Java HotSpot(TM) 64-Bit Server VM, 25.101-b13, Java(TM) SE Runtime Environment, 1.8.0_101-b13 OS: Linux User Comments: GUEST: #define A(in, out, bits)\ if (tmp<0) tmp = 0; tmp = in < 0 ? 0 : in;\ in = in > ((1<<bits)-1) ? ((1<<bits)-1) : in;\ out=in; typeing "//" the problem happens #define A(in, out, bits)\ if (tmp<0) tmp = 0; // tmp = in < 0 ? 0 : in;\ in = in > ((1<<bits)-1) ? ((1<<bits)-1) : in;\ out=in; Stacktrace: java.lang.AssertionError: there must be \ at org.netbeans.modules.cnd.lexer.CndLexer.nextToken(CndLexer.java:141) at org.netbeans.lib.lexer.LexerInputOperation.nextToken(LexerInputOperation.java:216) at org.netbeans.lib.lexer.inc.TokenListUpdater.relex(TokenListUpdater.java:627) at org.netbeans.lib.lexer.inc.TokenListUpdater.updateRegular(TokenListUpdater.java:280) at org.netbeans.lib.lexer.inc.TokenHierarchyUpdate$UpdateItem.update(TokenHierarchyUpdate.java:350) at org.netbeans.lib.lexer.inc.TokenHierarchyUpdate.processLevelInfos(TokenHierarchyUpdate.java:225)
Created attachment 163559 [details] stacktrace
try to type '\' on caret position when the following text is on the last line of document: #define A /|\
(In reply to Vladimir Voskresensky from comment #2) > try to type '\' on caret position when the following text is on the last > line of document: > #define A /|\ Should be '/': try to type '/' on caret position when the following text is on the last line of document: #define A /|\
# 1 // asdf \| pressed Enter
*** Bug 270298 has been marked as a duplicate of this bug. ***
fixed on enum: 315173:0dc150769936 [release82]
https://netbeans.org/bugzilla/show_bug.cgi?id=269731 Changesets: http://hg.netbeans.org/releases/rev/9c24fabfe25f # fixing #269731 - AssertionError: there must be \ http://hg.netbeans.org/releases/rev/0dc150769936 # fixed #269731 - AssertionError: there must be \