valeryan / vscode-phpsab

Php Sniffer and Beautifier for VS Code
https://marketplace.visualstudio.com/items?itemName=ValeryanM.vscode-phpsab
MIT License
58 stars 12 forks source link

The ruleset file does not exist error #135

Open Mrlunsuper opened 2 months ago

Mrlunsuper commented 2 months ago

I upgraded to the latest version and I got the error:

SyntaxError: Unexpected token 'E', "ERROR: The"... is not valid JSON
["ERROR" - 9:57:44 AM] ERROR: The file "Sites/dev/app/public/wp-content/plugins/example/phpcs.xml" does not exist.

There is a space in my project path. The full path is: /home/dani/Local Sites/dev/app/public/wp-content/plugins/example/phpcs.xml

Vscode version: 1.92.2 OS: Fedora 40 Local dev env: Local by FlyWheel Extension version: 0.0.19

dashkevych commented 2 months ago

I got the same issue.

danieliser commented 1 month ago

Same issue, switching back to the previous version fixed it for me at the moment.

To confirm, the file exists, running phpcs from CLI works fine.

Mrlunsuper commented 1 month ago

Confirmed. Switching back to the previous version works fine

jonathanbossenger commented 1 month ago

This seems to be the same issue as #136 I've opened a PR there to fix the issue, looking for folks on Windows to help test, otherwise I'll test on Windows next week.