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 195219 - CndFileUtils.isExistingDirectory wrongly supposes that folder does not exist.
Summary: CndFileUtils.isExistingDirectory wrongly supposes that folder does not exist.
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2011-02-09 08:33 UTC by Alexander Simon
Modified: 2011-02-16 11:36 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 Alexander Simon 2011-02-09 08:33:17 UTC
Example from unit test:
Project pkg-config-0.25.
Resolving include directive "glib.h" in the file:
/var/tmp/hudson0/tester-cnd-test-downloads/pkg-config-0.25/glib-1.2.10/tests/array-test.c.

Include resolver:
baseFile=/var/tmp/hudson0/tester-cnd-test-downloads/pkg-config-0.25/glib-1.2.10/tests/array-test.c

System include paths:
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include
/usr/include

User include paths:
/var/tmp/hudson0/tester-cnd-test-downloads/pkg-config-0.25/glib-1.2.10/tests
/var/tmp/hudson0/tester-cnd-test-downloads/pkg-config-0.25/glib-1.2.10

Include resolver wrongly suppose that path 
/var/tmp/hudson0/tester-cnd-test-downloads/pkg-config-0.25/glib-1.2.10
does not exist.

Checking by file system and CndFileUtils.exist() shows following:
File /var/tmp/hudson0/tester-cnd-test-downloads/pkg-config-0.25/glib-1.2.10/glib.h exist and CndFileUtils.exist() returns true.

See part of unit test log:

Feb 9, 2011 9:16:49 AM org.netbeans.modules.cnd.apt.support.APTAbstractWalker onInclude
SEVERE: failed to resolve TOKEN{["#include ",<INCLUDE>,line=31,col=1],offset=1189,file=null} INCLUDE{<U> [""glib.h"",<INCLUDE_STRING>,line=31,col=10],offset=1198,file=null}
using resolver:
APTIncludeResolverImpl{
baseFileIncludeDirIndex=0,
baseFile=/var/tmp/hudson0/tester-cnd-test-downloads/pkg-config-0.25/glib-1.2.10/tests/array-test.c,
fileSystem=org.netbeans.modules.masterfs.filebasedfs.FileBasedFileSystem,
systemIncludePaths=[org.netbeans.modules.masterfs.filebasedfs.FileBasedFileSystem:/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include, org.netbeans.modules.masterfs.filebasedfs.FileBasedFileSystem:/usr/include],
userIncludePaths=[org.netbeans.modules.masterfs.filebasedfs.FileBasedFileSystem:/var/tmp/hudson0/tester-cnd-test-downloads/pkg-config-0.25/glib-1.2.10/tests, NOT EXISTING org.netbeans.modules.masterfs.filebasedfs.FileBasedFileSystem:/var/tmp/hudson0/tester-cnd-test-downloads/pkg-config-0.25/glib-1.2.10],
fileSearch=APTFileSearch{impl=APTFileSearchImplementationImpl{project=pkg-config-0.25 /var/tmp/hudson0/tester-cnd-test-downloads/pkg-config-0.25}}
}
and cache entry APT cache for /var/tmp/hudson0/tester-cnd-test-downloads/pkg-config-0.25/glib-1.2.10/tests/array-test.c
Not resolved path glib.h
Not resolved file glib.h in folder /var/tmp/hudson0/tester-cnd-test-downloads/pkg-config-0.25/glib-1.2.10/tests
Not resolved file glib.h in folder /var/tmp/hudson0/tester-cnd-test-downloads/pkg-config-0.25/glib-1.2.10/tests
Not resolved file glib.h in folder /var/tmp/hudson0/tester-cnd-test-downloads/pkg-config-0.25/glib-1.2.10
File /var/tmp/hudson0/tester-cnd-test-downloads/pkg-config-0.25/glib-1.2.10/glib.h exist! CndFileUtils.exist()=true
Not resolved file glib.h in folder /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include
Not resolved file glib.h in folder /usr/include
Comment 1 Vladimir Voskresensky 2011-02-10 16:45:51 UTC
hopefully fixed:
http://hg.netbeans.org/cnd-main?cmd=changeset;node=fcf658c87542
Comment 2 Quality Engineering 2011-02-16 11:36:45 UTC
Integrated into 'main-golden', will be available in build *201102160501* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/fcf658c87542
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed #195219 -  CndFileUtils.isExistingDirectory wrongly supposes that folder does not exist.
- fix concurrency