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 230442 - java.io.FileNotFoundException: C:\Users\User06\AppData\Local\Temp\nb-php-phpmd-log.xml (The system cannot find the file specified)
Summary: java.io.FileNotFoundException: C:\Users\User06\AppData\Local\Temp\nb-php-phpm...
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-29 10:37 UTC by MackSix
Modified: 2013-05-30 04:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 201002


Attachments
stacktrace (1.07 KB, text/plain)
2013-05-29 10:37 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2013-05-29 10:37:35 UTC
Build: NetBeans IDE Dev (Build 201305281155)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11
OS: Windows 7

User Comments:
MackSix: 1. Selected phpmd.php as the script because phpmd.bat did not work. 2. Tried to run PHP Mess Detector on PHP project.




Stacktrace: 
java.io.FileNotFoundException: C:\Users\User06\AppData\Local\Temp\nb-php-phpmd-log.xml (The system cannot find the file specified)
   at java.io.FileInputStream.open(FileInputStream.java:0)
   at java.io.FileInputStream.<init>(FileInputStream.java:138)
   at org.netbeans.modules.php.analysis.parsers.MessDetectorReportParser.parse(MessDetectorReportParser.java:92)
   at org.netbeans.modules.php.analysis.commands.MessDetector.analyze(MessDetector.java:132)
   at org.netbeans.modules.php.analysis.commands.MessDetector.analyze(MessDetector.java:118)
   at org.netbeans.modules.php.analysis.MessDetectorAnalyzerImpl.doAnalyze(MessDetectorAnalyzerImpl.java:136)
Comment 1 MackSix 2013-05-29 10:37:36 UTC
Created attachment 135060 [details]
stacktrace
Comment 2 MackSix 2013-05-29 15:05:32 UTC
I don't think I don't have Mess Detector installed right. I just extracted it to my system drive, but the script looks as though it expects something to do with a "pear installation". I will have to figure it out. The instructions on the Mess Detector website is obtuse.

Output:

"C:\Developer\php-5.4.13\php.exe" "C:\Developer\PHP_PMD-1.4.1\phpmd.php" "C:\Users\User06\Projects\NetBeans\PhpProject1" "xml" "codesize,controversial,design,naming,unusedcode" "--reportfile" "C:\Users\User06\AppData\Local\Temp\nb-php-phpmd-log.xml" "--suffixes" "php,inc,phpt,php4,php5,php3,phtml"

Warning: require_once(PHP/PMD.php): failed to open stream: No such file or directory in C:\Developer\PHP_PMD-1.4.1\PHP\PMD\TextUI\Command.php on line 49

Fatal error: require_once(): Failed opening required 'PHP/PMD.php' (include_path='C:\Developer\PHP_PMD-1.4.1/../main/php;C:\Developer\PHP_PMD-1.4.1/../../lib/pdepend/src/main/php;.') in C:\Developer\PHP_PMD-1.4.1\PHP\PMD\TextUI\Command.php on line 49
Done.
Comment 3 MackSix 2013-05-29 18:01:42 UTC
I got it to install and work. I am not sure what was wrong exactly. PHP.exe was working before with NetBeans, but I renamed php.ini-development to php.ini, then reinstalled pair into my php-5.4.13 directory, and putting pair.ini in my php-5.4.13 directory instead of in C:\Windows and it works.
Comment 4 Tomas Mysik 2013-05-30 04:37:16 UTC
This should be fixed in the latest dev builds. Please reopen if I am wrong.

Thanks.