-
Notifications
You must be signed in to change notification settings - Fork 31
Error running PHPCS TypeError: Invalid Version: undefined #462
Comments
Can you share your linter-phpcs settings and the output of |
Can you update to the latest version and provide the error if it is still happening? |
Screenshots are a really unhelpful way of sharing information. |
It looks like the error comes from not being able to parse the phpcs version from the executable listed in the Executable Path setting. I just released a new version (v1.8.1) that might provide a better error with more information that might be helpful. If this happens again please share the error thrown. It should be something like: |
Have updated to the latest, and so far so good. Will update if I see the error recur. |
I'm getting the following message in my Atom console ever time I try to run linter-phpcs
I assume it's got something to do with Atom's continuous changing of the linter API???
/home/andyp/.atom/packages/linter/dist/index.js:1 [Linter] Error running PHPCS TypeError: Invalid Version: undefined
at new SemVer (/home/andyp/.atom/packages/linter-eslint/node_modules/semver/semver.js:314)
at compare (/home/andyp/.atom/packages/linter-eslint/node_modules/semver/semver.js:647)
at Function.gte (/home/andyp/.atom/packages/linter-eslint/node_modules/semver/semver.js:703)
at Object. (/home/andyp/.atom/packages/linter-phpcs/lib/main.js:224)
at Generator.next ()
at step (/home/andyp/.atom/packages/linter-phpcs/lib/main.js:5)
(anonymous) @ /home/andyp/.atom/packages/linter/dist/index.js:1
/home/andyp/.atom/packages/php-cs-fixer/lib/php-cs-fixer.coffee:240 php exited with code: 0
The text was updated successfully, but these errors were encountered: