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 201207300002) VM: Java HotSpot(TM) Client VM, 20.8-b03, Java(TM) SE Runtime Environment, 1.6.0_33-b03 OS: Windows XP User Comments: kAlvaro: Steps to reproduce: 1. Create a project that points to some (PHP) code in a UNC path, e.g.: \\server\share\foo 2. Open the project and let background scanning finish. 3. Try any feature related to code intelligence, e.g. "Go to Type" You only get matches/completions/whatever from ""%PROGRAMFILES%\NetBeans 7.2\php\phpstubs". Code in user source files is ignored. In development releases you also get an exception: IllegalArgumentException: URI has an authority component In previous releases until 7.1.2 code intelligence worked fine on UNC paths (only debugging failed). This regression was introduced in 7.2. Stacktrace: java.lang.IllegalArgumentException: URI has an authority component at java.io.File.<init>(File.java:0) at org.netbeans.modules.php.project.classpath.SourcePathImplementation$FilteringPathResource.includes(SourcePathImplementation.java:219) at org.netbeans.api.java.classpath.ClassPath.contains(ClassPath.java:562) at org.netbeans.modules.php.project.api.PhpSourcePath.getFileTypeFromClassPath(PhpSourcePath.java:200) at org.netbeans.modules.php.project.api.PhpSourcePath.getFileType(PhpSourcePath.java:105) at org.netbeans.modules.php.editor.index.PHPIndexer.index(PHPIndexer.java:211)
Created attachment 122519 [details] stacktrace
@vriha: Láďo, can you please try to reproduce? Thanks.
Reproducible in 7.2 and trunk, but I didn't get any exception. I also find minor issue #216614. Just to be thorough, if the network disk is mapped to some letter (F:/) and project is created using this path, it works as supposed to. Product Version: NetBeans IDE Dev (Build 201208090001) Java: 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21 System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)
@vriha: Láďo, could you please try the same in NB 7.1? Since AFAIK there was no change in this area for PHP, the problem might be somewhere else... Thanks.
It works fine in 7.1.2. Also small observation, in both 7.1 & 7.2, there is proper completion for ie. include ''; And it offers files from UNC path
Very likely a duplicate of issue #213562. Láďo, could you please verify it? Thanks a lot. *** This bug has been marked as a duplicate of bug 213562 ***
What's the exact status of UNC support in NetBeans? Most related tickets I've been able to find, including bug #213562, are already closed, often as RESOLVED.
Since issue #213562 is resolved fixed, I guess it is fixed. But the target milestone is 7.2 so perhaps I am wrong with the duplicate... I will investigate more...
Not sure how to test whether it's fixed, but daily snapshots available at http://bits.netbeans.org/download/trunk/nightly/latest/ still exhibit this issue.
2012-10-05, Netbeans IDE 7.2 (Build 201207171143): I'm able to clearly reproduce this behaviour on windows: Project opened via UNC path doesn't allow code completion, same project opened via mapped network drive: code completion working. Client: Windows 7 Professional Server: also Windows 7 Professional
Fixed. http://hg.netbeans.org/web-main/rev/d016bf389fac
*** Bug 218200 has been marked as a duplicate of this bug. ***
Integrated into 'main-golden', will be available in build *201210120002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/d016bf389fac User: Tomas Mysik <tmysik@netbeans.org> Log: #216120 - 7.2 no longer supports UNC paths
Láďo, this is definitely a patch candidate. Thanks.
verified. I'm afraid it's too late for patch, nomination day was October 15(16), I'm sorry Product Version: NetBeans IDE Dev (Build 201210220002) Java: 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21 System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)