sandhje / vscode-phpmd

VSCode PHP Mess Detector extension
MIT License
15 stars 4 forks source link

Error to found file when using jira extension for pull request #55

Closed eduardohenriquesousasilva closed 4 years ago

eduardohenriquesousasilva commented 4 years ago

Hi, so when I opend my code with the extension for Jira to do pull requests, the extension crash because it doesn't identify the real path of file..

Can you help me?

Error message: An error occured during document validation after open with the following message: ENOENT: no such file or directory, open '/Feature/ image

sandhje commented 4 years ago

It appears the Jira extension opens the file "virtually". Meaning the file isn't really at that location but served directly from the server. This is not a supported scenario for the phpmd extension.

If you want you can prevent the extension from trying to run for the "/Feature" path by setting the phpmd command in settings manually and using the "--exclude" option. See https://phpmd.org/documentation/index.html for more info.

eduardohenriquesousasilva commented 4 years ago

It appears the Jira extension opens the file "virtually". Meaning the file isn't really at that location but served directly from the server. This is not a supported scenario for the phpmd extension.

If you want you can prevent the extension from trying to run for the "/Feature" path by setting the phpmd command in settings manually and using the "--exclude" option. See https://phpmd.org/documentation/index.html for more info.

It's a good idea, thanks @sandhje and I would like to say that vscode extension is good thanks