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 256267 - Exception: Can not get library for artificial project; folder=C:\Developer\msys64\mingw64\x86_64-w64-mingw32\include curFile=INITIAL FileImpl @1780877208:1831204948 C:\Developer\msys64\mingw64\lib\gcc
Summary: Exception: Can not get library for artificial project; folder=C:\Developer\ms...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.2
Hardware: All All
: P2 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
: 234165 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-10-29 22:49 UTC by MackSix
Modified: 2016-07-08 01:50 UTC (History)
10 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 220853


Attachments
stacktrace (4.27 KB, text/plain)
2015-10-29 22:49 UTC, MackSix
Details
stacktrace (4.26 KB, text/plain)
2015-10-30 01:27 UTC, MackSix
Details
stacktrace (4.05 KB, text/plain)
2015-11-06 09:13 UTC, Alexander Simon
Details
stacktrace (4.11 KB, text/plain)
2015-11-06 09:16 UTC, Alexander Simon
Details
stacktrace (3.99 KB, text/plain)
2015-11-23 16:15 UTC, Vladimir Kvashin
Details
stacktrace (4.23 KB, text/plain)
2015-11-25 04:09 UTC, MackSix
Details
stacktrace (4.13 KB, text/plain)
2015-12-03 18:17 UTC, tbrunhoff
Details
stacktrace (4.14 KB, text/plain)
2016-01-05 01:29 UTC, tbrunhoff
Details
stacktrace (4.07 KB, text/plain)
2016-01-05 21:23 UTC, tbrunhoff
Details
stacktrace (4.24 KB, text/plain)
2016-02-08 12:22 UTC, Alexander Simon
Details
stacktrace (6.33 KB, text/plain)
2016-03-05 10:35 UTC, Chiana
Details
stacktrace (3.98 KB, text/plain)
2016-03-09 13:20 UTC, Chiana
Details
stacktrace (4.01 KB, text/plain)
2016-03-09 15:11 UTC, Vladimir Voskresensky
Details
stacktrace (4.13 KB, text/plain)
2016-03-14 14:47 UTC, Vladimir Voskresensky
Details
stacktrace (4.21 KB, text/plain)
2016-03-27 11:47 UTC, Chiana
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2015-10-29 22:49:13 UTC
Build: NetBeans IDE Dev (Build cnd-main-3011-on-20151029)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.66-b17, Java(TM) SE Runtime Environment, 1.8.0_66-b17
OS: Windows 7

User Comments:
MackSix: 1. Opened up C++ source file and header file immediately after starting netbeans.
2. I was removing some text from the header file and this happened.




Stacktrace: 
java.lang.Exception: Can not get library for artificial project; folder=C:\Developer\msys64\mingw64\x86_64-w64-mingw32\include curFile=INITIAL FileImpl @1780877208:1831204948 C:\Developer\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\5.2.0\include\mm_malloc.h prj:713345060KeyBasedUID on ProjectKey C:\Users\MackSix\Documents\NetBeansProjects\oglpg-8th-edition\include NOT_BEING_PARSED path=ResPath{C:\Developer\msys64\mingw64\x86_64-w64-mingw32\include\errno.h in C:\Developer\msys64\mingw64\x86_64-w64-mingw32\include} baseProject=C:\Users\MackSix\Documents\NetBeansProjects\oglpg-8th-edition\include org.netbeans.modules.cnd.modelimpl.csm.core.LibProjectImpl @1453910482:1453910482
@[C/C++ BreadCrumbsFactory]
   at org.netbeans.modules.cnd.utils.CndUtils.severe(CndUtils.java:210)
   at org.netbeans.modules.cnd.utils.CndUtils.assertTrue(CndUtils.java:191)
   at org.netbeans.modules.cnd.modelimpl.csm.core.LibraryManager.resolveFileProjectOnInclude(LibraryManager.java:255)
   at org.netbeans.modules.cnd.modelimpl.parser.clank.ClankTokenStreamProducer$FileImplPreprocessorCallback.include(ClankTokenStreamProducer.java:689)
   at org.netbeans.modules.cnd.modelimpl.parser.clank.ClankTokenStreamProducer$VisitIncludeChainPreprocessorCallback.onInclusionDirective(ClankTokenStreamProducer.java:427)
   at org.netbeans.modules.cnd.apt.impl.support.clank.ClankPPCallback.onInclusionDirective(ClankPPCallback.java:192)
Comment 1 MackSix 2015-10-29 22:49:15 UTC
Created attachment 157057 [details]
stacktrace
Comment 2 MackSix 2015-10-30 01:27:56 UTC
Created attachment 157059 [details]
stacktrace

I reproduced it. When I try to edit a header file that is not in a project tree logical folder, this exception happens.
Comment 3 MackSix 2015-10-30 01:35:06 UTC
Both times it happened, I was rmoving text by Backspacing in a C comment while "Validating Tool Collection".
Comment 4 Alexander Simon 2015-11-06 09:13:11 UTC
Created attachment 157178 [details]
stacktrace

hyperlink to std manespace
Comment 5 Alexander Simon 2015-11-06 09:16:12 UTC
Created attachment 157179 [details]
stacktrace

reparse project
Comment 6 Exceptions Reporter 2015-11-20 12:50:55 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=220853
Comment 7 Vladimir Kvashin 2015-11-23 16:15:04 UTC
Created attachment 157459 [details]
stacktrace

I created a new C/C++ Application project, then renamed main.cpp to iz_256327.cpp - exception occurred.
The user dir was not empty on startup
Comment 8 MackSix 2015-11-25 04:09:12 UTC
Created attachment 157486 [details]
stacktrace

Changing toolchains on multiple projects open. All projects are reparsed when one's toolchain is changed. When changing toolschains on multipe projects at the same time, it can cause a lot of exceptions and warnings.
Comment 9 tbrunhoff 2015-12-03 18:17:41 UTC
Created attachment 157652 [details]
stacktrace

clicking on a constructor implementation.
Comment 10 tbrunhoff 2016-01-05 01:29:03 UTC
Created attachment 158001 [details]
stacktrace

with 20 projects open, I started selecting one at a time and changing the configuration for each (which changed the compiler being used).  This started a reparsing of projects, which eventually finished, but not before this exception fired.
Comment 11 tbrunhoff 2016-01-05 21:23:03 UTC
Created attachment 158018 [details]
stacktrace

Updating the compiler on several projects (we have many different versions of the gcc compiler.  This spawned some very long-winded reparsing of projects.  Some were stuck on a single header file for 2-3 minutes.
Comment 12 Exceptions Reporter 2016-01-05 21:23:07 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=220853
Comment 13 Alexander Simon 2016-02-08 12:22:48 UTC
Created attachment 158410 [details]
stacktrace

open rust project. exceprion occured at the end of parsing
Comment 14 Chiana 2016-03-05 10:35:22 UTC
Created attachment 158752 [details]
stacktrace

Was trying to switch to an header file that was already open, prior to this I copied the content from a .c file to a .cpp file and then deleted the .c file
Comment 15 Chiana 2016-03-09 13:20:24 UTC
Created attachment 158787 [details]
stacktrace

Started typing a "#define" in an .h file, got only the "#" down before error occured, recently created a new .C file in project and also deleted a .cpp file
Comment 16 Exceptions Reporter 2016-03-09 13:20:30 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=220853
Comment 17 Vladimir Voskresensky 2016-03-09 15:11:23 UTC
Created attachment 158789 [details]
stacktrace

hg move *.hpp src/ (in contrib/JConvert)
Comment 18 Vladimir Voskresensky 2016-03-14 14:47:25 UTC
Created attachment 158848 [details]
stacktrace

I reopened IDE with opened: JConvert, LLVM (pointing to LLVM36) and LLVM38
Comment 19 Alexander Simon 2016-03-16 09:22:20 UTC
*** Bug 234165 has been marked as a duplicate of this bug. ***
Comment 20 Chiana 2016-03-27 11:47:32 UTC
Created attachment 159015 [details]
stacktrace

Switched tab from a .c file to a .h file
Comment 21 Alexander Simon 2016-07-07 15:46:45 UTC
make info message level in change set:
http://hg.netbeans.org/cnd-main/rev/f2e62eed4e21
Comment 22 Quality Engineering 2016-07-08 01:50:15 UTC
Integrated into 'main-silver', will be available in build *201607080002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/f2e62eed4e21
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #256267 Exception: Can not get library for artificial project; folder=C:\Developer\msys64\mingw64\x86_64-w64-mingw32\include curFile=INITIAL FileImpl @1780877208:1831204948 C:\Developer\msys64\mingw64\lib\gcc
- info level