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.
This issue was reported manually by mmirilovic. It already has 46 duplicates Build: NetBeans IDE 7.2 (Build 201207301726) VM: Java HotSpot(TM) Client VM, 23.1-b03, Java(TM) SE Runtime Environment, 1.7.0_05-b05 OS: Windows 7 User Comments: GUEST: Just installed the 7.2 version and opened my php-project GUEST: I was editting a PHP file and it stopped saving the file. GUEST: I dont know anything, i just see the red icon and i clicked GUEST: PHP - no sugestion GUEST: ERROR - no suggestion code template: <?php class KlasaA{ public $test; public function __construct() { $this->test = 'test'; } public function getTest(){ return $this->test; } } $newObject = new KlasaA(); print $newObject->getTest(); //<- no suggestion ?> GUEST: CTRL Space GUEST: writing: print_r($); GUEST: I don't know exactly. I am a web developer and I am programming in php, javascript ,css in a local web server. GUEST: scanning project in background GUEST: Just programing a function in PHP, exactly writing the name of a variable. 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.getFileType(PhpSourcePath.java:102) at org.netbeans.modules.php.editor.elements.PhpElementImpl.isPlatform(PhpElementImpl.java:249) at org.netbeans.modules.php.editor.PHPCompletionItem.getRhsHtml(PHPCompletionItem.java:299)
Created attachment 123387 [details] stacktrace
Many duplicates...
Possible patch candidate.
Láďo, please try to reproduce this issue; it seems to me that it could happen if one uses UNC paths. Thanks.
yes, you are right. Simple invoking cc for $ with project at UNC path throws java.lang.IllegalArgumentException: URI has an authority component at java.io.File.<init>(File.java:397) 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.getFileType(PhpSourcePath.java:102) .... Product Version: NetBeans IDE 7.2 (Build 201207171143) 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)
Fixed. http://hg.netbeans.org/web-main/rev/fcc4022363fb
BTW possible duplicate could be issue #216120. Please check it, thanks.
Integrated into 'main-golden', will be available in build *201208280001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/fcc4022363fb User: Tomas Mysik <tmysik@netbeans.org> Log: #217208 - IllegalArgumentException: URI has an authority component
this one is verified but issue #216120 is still valid... Product Version = NetBeans IDE Dev (Build 201208280001) (#b23327f7c98f) Operating System = Windows 7 version 6.1 running on x86 Java; VM; Vendor = 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21; Oracle Corporation Runtime = Java(TM) SE Runtime Environment 1.7.0_04-b22
Backported to the releases clone. http://hg.netbeans.org/releases/rev/b944014cc22b
Integrated into 'releases', will be available in build *201209010822* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/b944014cc22b User: Tomas Mysik <tmysik@netbeans.org> Log: #217208 - IllegalArgumentException: URI has an authority component (transplanted from fcc4022363fb8ff30ad9233d3c6266f94627df82)
(In reply to comment #5) > Simple invoking cc for $ with project at UNC path throws verified in patch Product Version: NetBeans IDE 7.2 (Build 201207171143) 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)