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 255726 - [newcodemodel] Exception: Can not resolve file by path in macro directive: [[3791-3818] annotation=null/usr/gcc/4.8/lib/gcc/i386-pc-solaris2.11/4.8.2/include-fixed/limits.h #define INT_MAX] used at [158617-158624] i
Summary: [newcodemodel] Exception: Can not resolve file by path in macro directive: [[...
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: petrk
URL:
Keywords: NO82
Depends on: 269115
Blocks:
  Show dependency tree
 
Reported: 2015-10-06 11:01 UTC by soldatov
Modified: 2017-03-29 08:13 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 220376


Attachments
stacktrace (2.03 KB, text/plain)
2015-10-06 11:01 UTC, soldatov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2015-10-06 11:01:16 UTC
This bug was originally marked as duplicate of bug 255419, 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 cnd-trunk-build-2683-on-20151005)
VM: Java HotSpot(TM) Client VM, 24.85-b07, Java(TM) SE Runtime Environment, 1.7.0_85-b33
OS: SunOS

User Comments:
soldatov: paste long source code from buffer




Stacktrace: 
java.lang.Exception: Can not resolve file by path in macro directive: [[3791-3818] annotation=null/usr/gcc/4.8/lib/gcc/i386-pc-solaris2.11/4.8.2/include-fixed/limits.h #define INT_MAX] used at [158617-158624] in file [MODIFIED FileImpl @-64548425:3470685 /export/files/NB/CppApplication_3/main.cpp prj:14209460KeyBasedUID on ProjectKey /export/files/NB/CppApplication_3/N/ BEING_PARSED valid=true] included from [MODIFIED FileImpl @-64548425:3470685 /export/files/NB/CppApplication_3/main.cpp prj:14209460KeyBasedUID on ProjectKey /export/files/NB/CppApplication_3/N/ BEING_PARSED valid=true]
   at org.netbeans.modules.cnd.utils.CndUtils.severe(CndUtils.java:206)
   at org.netbeans.modules.cnd.utils.CndUtils.assertTrue(CndUtils.java:191)
   at org.netbeans.modules.cnd.modelimpl.parser.clank.MacroReference.createMacroReference(MacroReference.java:101)
   at org.netbeans.modules.cnd.modelimpl.parser.clank.ClankTokenStreamProducer.addMacroExpansions(ClankTokenStreamProducer.java:642)
   at org.netbeans.modules.cnd.modelimpl.parser.clank.ClankTokenStreamProducer.getTokenStream(ClankTokenStreamProducer.java:177)
   at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.doParse(FileImpl.java:1499)
Comment 1 soldatov 2015-10-06 11:01:18 UTC
Created attachment 156552 [details]
stacktrace
Comment 2 Alexander Simon 2017-03-29 08:13:05 UTC
Bug is reproduced in development build only.