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.
Build: NetBeans IDE Dev (Build 201509250002) VM: Java HotSpot(TM) Client VM, 24.85-b07, Java(TM) SE Runtime Environment, 1.7.0_85-b33 OS: SunOS User Comments: soldatov: IDE has been restarted Stacktrace: java.lang.Exception: Invalid file in the directive: [3822-3848] annotation=null/usr/include/iso/stdio_iso.h #define stderr 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.ClankMacroUsagesSupport.addMacroExpansions(ClankMacroUsagesSupport.java:94) at org.netbeans.modules.cnd.modelimpl.parser.clank.ClankMacroUsagesSupport.getMacroUsages(ClankMacroUsagesSupport.java:69) at org.netbeans.modules.cnd.modelimpl.parser.clank.ClankTokenStreamProducer.getMacroUsages(ClankTokenStreamProducer.java:200)
Created attachment 156423 [details] stacktrace
https://netbeans.org/bugzilla/show_bug.cgi?id=255419?
+ https://netbeans.org/bugzilla/show_bug.cgi?id=255256
My scenario: - Call "C/C++ Application" wizard - Select "C" standard - Push Finish - Open main.c ==> exception
fixed: http://hg.netbeans.org/cnd-main/rev/759b0e9b4db6
*** Bug 255419 has been marked as a duplicate of this bug. ***
Reopened. Steps to reproduce: 1) Create Cpp project. 2) Set Cpp11 standard and add boost 1.55 into additional include directories. 3) Create new header file (do not include it from main.cpp, let it be orphan) 3) Place the following #include directive into the header file. #include <boost/spirit/home/classic/utility/lists.hpp> 4) Navigate into "lists.hpp" and wait until exception happens java.lang.Exception: Invalid file in the directive: [14956-14997] annotation=null/export/devarea/boost_1_55/boost_1_55_0/boost/config/suffix.hpp #define BOOST_DEDUCED_TYPENAME 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.ClankMacroUsagesSupport.addMacroExpansions(ClankMacroUsagesSupport.java:94) at org.netbeans.modules.cnd.modelimpl.parser.clank.ClankMacroUsagesSupport.getMacroUsages(ClankMacroUsagesSupport.java:69) at org.netbeans.modules.cnd.modelimpl.parser.clank.ClankTokenStreamProducer.getMacroUsages(ClankTokenStreamProducer.java:199) at org.netbeans.modules.cnd.modelimpl.parser.clank.ClankTokenStreamProducer.getMacroUsages(ClankTokenStreamProducer.java:111) at org.netbeans.modules.cnd.modelimpl.parser.clank.ClankFileInfoQuerySupport.getMacroUsages(ClankFileInfoQuerySupport.java:82) at org.netbeans.modules.cnd.modelimpl.impl.services.FileInfoQueryImpl.getMacroUsages(FileInfoQueryImpl.java:331) at org.netbeans.modules.cnd.highlight.semantic.ModelUtils.getMacroBlocks(ModelUtils.java:120) at org.netbeans.modules.cnd.highlight.semantic.SemanticEntitiesProvider$MacrosCodeProvider.getBlocks(SemanticEntitiesProvider.java:354) at org.netbeans.modules.cnd.highlight.semantic.SemanticHighlighter.updateImpl(SemanticHighlighter.java:205) at org.netbeans.modules.cnd.highlight.semantic.SemanticHighlighter.access$500(SemanticHighlighter.java:91) at org.netbeans.modules.cnd.highlight.semantic.SemanticHighlighter$TaskContext.run(SemanticHighlighter.java:433) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443) at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
A show-stopper.
Updating TM accordingly.
Are these exceptions the same bug? A new issue failed to be created for them. http://statistics.netbeans.org/analytics/detail.do?id=220302
Hello MackSix, We need you help to get more information. The problem might be system dependent (i.e. Windows specific), so I've added extra logging. Could you, please, download dev build with my extra logging and try to reproduce this exceptions again. It might be that exception appears only in message.log file, which you can see in IDE using View->IDE Log menu item. http://deadlock.netbeans.org/job/cnd-main/2924/artifact/nbbuild/NetBeans-dev-cnd-main-2924-on-20151002-full.zip Thank you very much. Vladimir.
Created attachment 156495 [details] Logfile I did all sorts of things to get this to happen with no luck and then I activated Java SE & JavaFX and after they were activated I opened up a CPP source file in one of the 6 C/C++ projects I had open and it happened. I may have viewed the properties of the project when it happened. I forget now. I will try again. Product Version: NetBeans IDE Dev (Build cnd-main-2924-on-20151002) Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23 Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27 System: Windows 7 version 6.1 running on amd64; UTF-8; en_US (nb)
Integrated into 'main-silver', will be available in build *201510030002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/c47bb535a892 User: Vladimir Voskresensky <vv159170@netbeans.org> Log: fixing #255560 - [newcodemodel] Exception: Invalid file in the directive - more information in assert
Created attachment 156496 [details] Logfile with additional exceptions. I opened up a source file from the next project with #include <GL/glut.h> and it happened again. I then opened up 2 files in other non-GL projects and they opened up ok. Then I opened up another source with #include <GL/glut.h> in it and it happened again. This is the same Logfile with the additional occurrences in it.
Created attachment 156497 [details] Logfile2 I restarted NetBeans and this exception was in the logfile: java.lang.IllegalStateException: Bundle "reference:file:ide/modules/com-jcraft-jsch.jar" has been uninstalled See attached Logfile2
Created attachment 156498 [details] Logfile2 with additional exceptions. This is a continuation after the previous Logfile2. I opened up the source files with #include <GL/glut.h> in them and got the originally reported exceptions again. It seems this started after activating Java SE and JavaFX for some reason? Maybe just a coincidence?
Alexander, could you, please, try to reproduce the issue on Windows?
I have found reproducible test case on Solaris + GNU tool collection: 1. Create C++ application with main.cpp file: //#include "status.h" int foo() { return INT_MAX; } 2. Reparse project. 3. Uncomment first include directive (do not save file). See exception in log.
create library file while preprocessing, change set: http://hg.netbeans.org/cnd-main/rev/869c27691372
*** Bug 255772 has been marked as a duplicate of this bug. ***
create library file while preprocessing, additional change set: http://hg.netbeans.org/cnd-main/rev/bd79f9b84f47
Can you guys someone please verify this in the next development build? Thanks a lot!
*** Bug 255767 has been marked as a duplicate of this bug. ***
Valera, please, verify the fix. Vladimir V., please, review the fix.
Verified. I don't see any exceptions if I check scenarios from Comment 4 and Comment 18.
Integrated into 'main-silver', will be available in build *201510090002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/869c27691372 User: Alexander Simon <tester@netbeans.org> Log: fixing Bug #255560 [newcodemodel] Exception: Invalid file in the directive: [3822-3848] annotation=null/usr/include/iso/stdio_iso.h #define stder
Fix is reviewed. It is correct
transplanted ti releases81: http://hg.netbeans.org/releases/rev/140344cdc2fd http://hg.netbeans.org/releases/rev/6b86475c0986 http://hg.netbeans.org/releases/rev/56903c70d126
Verified in NetBeans IDE 8.1 (Build 201510222201)