junichi11 edited a comment on pull request #2203:
URL: https://github.com/apache/netbeans/pull/2203#issuecomment-647277940


   Maybe, it is a problem of an absolute path?
   I would add a file for windows(e.g. 
phpstan-log-netbeans-3022-without-workdir-win.xml) since this case needs not a 
correct path although I'm not sure whether it works fine. (but I don't have a 
strong opinion about it).
   
   e.g.
   ```xml
   <checkstyle>
   <file name="C:\test\phpstan\app\Test1.php">
     <error line="13" column="1" severity="error" message="Binary operation 
&quot;+&quot; between string and 2 results in an error." />
   </file>
   <file name="C:\test\phpstan\app\Test2.php">
     <error line="9" column="1" severity="error" message="Anonymous function 
should return string but returns void." />
     <error line="9" column="1" severity="error" message="Result of closure 
(void) is used." />
   </file>
   </checkstyle>
   ```
   ```java
           String logFileName = Utilities.isWindows()
                   ? "phpstan-log-netbeans-3022-without-workdir-win.xml"
                   : "phpstan-log-netbeans-3022-without-workdir.xml";
           List<Result> results = 
PHPStanReportParser.parse(getLogFile(logFileName), root, workDir);
   workDir);
   ```
   
   BTW, you should attach a log related to the failure to the issue page if it 
exists. Thanks.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to