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 249563 - can't create compound statement
Summary: can't create compound statement
Status: RESOLVED INCOMPLETE
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-29 20:25 UTC by tbrunhoff
Modified: 2015-10-29 10:43 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Code snippet. (10.74 KB, text/x-c++src)
2014-12-29 20:25 UTC, tbrunhoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tbrunhoff 2014-12-29 20:25:59 UTC
Created attachment 151312 [details]
Code snippet.

Log file contains this:

SEVERE [org.netbeans.modules.cnd.modelimpl]: Can't create compound statement: can't create token stream for file /home/toddb/src/srcapp/omneon/codecs/include/generic-codec.h at 349:13
SEVERE [org.netbeans.modules.cnd.modelimpl]: Can't create compound statement: can't create token stream for file /home/toddb/src/srcapp/omneon/codecs/include/generic-codec.h at 361:27
SEVERE [org.netbeans.modules.cnd.modelimpl]: Can't create compound statement: can't create token stream for file /home/toddb/src/srcapp/omneon/codecs/include/generic-codec.h at 559:46

I would not have seen this error except that the ide's code model was not working (I could not jump to method implentations).

I've included a single .cc file that contains the first two errors, with the text of the first two errors inserted into the code on the indicated lines. Note that the code in this file is extracted from a very large code base over several files. It compiles and appears to be parsed by NB, but the log does not contain any errors for this file.

Note that this error was generated after exiting the ide, removing ~/cache/netbeans/dev/cnd/model and restarting the ide.

Running this:

Product Version: NetBeans IDE Dev (Build 201412220001)
Updates: Updates available
Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.14.23-100.fc19.x86_64 running on i386; UTF-8; en_US (nb)
User directory: /home/toddb/.netbeans/dev
Cache directory: /home/toddb/.cache/netbeans/dev
Comment 1 scientific 2015-10-28 15:45:37 UTC
I have seen in the log file the same error as tbrunhoff did:

...
SEVERE [org.netbeans.modules.cnd.modelimpl]: Can't create compound statement: can't create token stream for file <file blablabla>

However, nobody seem to fix this bug (it is still open since over then 9 months). What is the current status of it? Is it still in the queue of some NetBeans developers?

I am using the following NetBeans release:

Product Version: NetBeans IDE 8.0.2 (Build 201411181905)
Updates: NetBeans IDE is updated to version NetBeans 8.0.2 Patch 2
Java: 1.7.0_75; Java HotSpot(TM) 64-Bit Server VM 24.75-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_75-b13
System: Mac OS X version 10.10.5 running on x86_64; UTF-8; en_US (nb)
User directory: /home/walla/Library/Application Support/NetBeans/8.0.2
Cache directory: /home/walla/Library/Caches/NetBeans/8.0.2
Comment 2 Vladimir Voskresensky 2015-10-28 19:13:23 UTC
(In reply to scientific from comment #1)
> I have seen in the log file the same error as tbrunhoff did:
> 
> ...
> SEVERE [org.netbeans.modules.cnd.modelimpl]: Can't create compound
> statement: can't create token stream for file <file blablabla>
> 
> However, nobody seem to fix this bug (it is still open since over then 9
> months). What is the current status of it? Is it still in the queue of some
> NetBeans developers?
Hello,
The status is:
- we don't have reproducible test case, so not easy to fix
- there is a workaround (in project properties use Code Assistance->Reparse)
Comment 3 Vladimir Voskresensky 2015-10-28 19:14:20 UTC
And if you can provide reproducible steps causing the message when file compiles fine it would be great!
Comment 4 scientific 2015-10-29 09:17:44 UTC
Ok, I recognize the problem. At this morning I restart my Laptop and NetBeans and try to reproduce the problem but could not. I think such a bug is hard to fetch and in so far I can understand you. I will keep an eye on it. Thanks for the info!
Comment 5 Vladimir Voskresensky 2015-10-29 10:43:41 UTC
Then, let's update status to the appropriate one: incomplete (we need more info).
Please, reopen if has test case or more details.