vscode-phpsab icon indicating copy to clipboard operation
vscode-phpsab copied to clipboard

The ruleset file does not exist error

Open Mrlunsuper opened this issue 1 year ago • 4 comments

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

Mrlunsuper avatar Sep 04 '24 03:09 Mrlunsuper

I got the same issue.

dashkevych avatar Sep 04 '24 17:09 dashkevych

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.

danieliser avatar Sep 06 '24 06:09 danieliser

Confirmed. Switching back to the previous version works fine

Mrlunsuper avatar Sep 06 '24 07:09 Mrlunsuper

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.

jonathanbossenger avatar Sep 23 '24 17:09 jonathanbossenger