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 75885 - Code Folding doesn't work for .h files
Summary: Code Folding doesn't work for .h files
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
: 75157 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-05-03 21:07 UTC by _ gordonp
Modified: 2007-11-01 16:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ gordonp 2006-05-03 21:07:11 UTC
I've just opened 23 .h files. Only 2 of the 23 showed any code folding.
By far the most common behavior was to throw the following exception:

exception: line 79:34: unexpected char: 0xFFFF
line 79:34: unexpected char: 0xFFFF
        at
org.netbeans.modules.cnd.modelimpl.antlr.CPPFoldingLexer.nextToken(CPPFoldingLexer.java:388)
        at antlr.TokenBuffer.fill(TokenBuffer.java:69)
        at antlr.TokenBuffer.LA(TokenBuffer.java:80)
        at antlr.LLkParser.LA(LLkParser.java:52)
        at antlr.Parser.consumeUntil(Parser.java:149)
        at antlr.Parser.recover(Parser.java:312)
        at
org.netbeans.modules.cnd.modelimpl.antlr.CPPFoldingParser.declaration(CPPFoldingParser.java:335)
        at
org.netbeans.modules.cnd.modelimpl.antlr.CPPFoldingParser.translation_unit(CPPFoldingParser.java:133)
        at
org.netbeans.modules.cnd.modelimpl.antlr.CPPFoldingParser.parse(CPPFoldingParser.java:63)
        at
org.netbeans.modules.cnd.modelimpl.csm.core.FileParser.parse(FileParser.java:41)
        at
org.netbeans.modules.cnd.editor.parser.CppFile.startParsing(CppFile.java:120)
        at
org.netbeans.modules.cnd.editor.parser.CppFile.startParsing(CppFile.java:98)
        at
org.netbeans.modules.cnd.editor.parser.CppMetaModel$1.run(CppMetaModel.java:70)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493)
        at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926)

Of the 2 files which showed folds, one was in Freeway. I can provide the
other if required (its a public source app I recently downloaded). In case
I forget, its on my home machine pucci:/usr/local/src/samples/cppxmlobj_1_0_7
(as are many of the other .hpp files which didn't show folds).

I consider this the highest priority folding issue as its not a failure in
a special case, but an entire type of file (which should show support).
Comment 1 Vladimir Voskresensky 2006-05-06 13:34:36 UTC
*** Issue 75157 has been marked as a duplicate of this issue. ***
Comment 2 Vladimir Voskresensky 2006-05-07 00:47:50 UTC
fix integrated
Comment 3 soldatov 2007-11-01 16:32:13 UTC
verified in build 200710310000