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 269731 - AssertionError: there must be \
Summary: AssertionError: there must be \
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
: 270298 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-02-03 09:54 UTC by Exceptions Reporter
Modified: 2017-04-13 10:49 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 227924


Attachments
stacktrace (4.98 KB, text/plain)
2017-02-03 09:54 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2017-02-03 09:54:40 UTC
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)
Comment 1 Exceptions Reporter 2017-02-03 09:54:41 UTC
Created attachment 163559 [details]
stacktrace
Comment 2 Vladimir Voskresensky 2017-03-31 13:29:34 UTC
try to type '\' on caret position when the following text is on the last line of document:
#define A /|\
Comment 3 Vladimir Voskresensky 2017-03-31 13:30:03 UTC
(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 /|\
Comment 4 Vladimir Voskresensky 2017-04-05 11:34:30 UTC
# 1 // asdf \| pressed Enter
Comment 5 Vladimir Voskresensky 2017-04-05 15:03:53 UTC
*** Bug 270298 has been marked as a duplicate of this bug. ***
Comment 6 Vladimir Voskresensky 2017-04-05 18:20:58 UTC
fixed on enum:
315173:0dc150769936 [release82]
Comment 7 ilia 2017-04-13 10:49:59 UTC
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 \