linter-php icon indicating copy to clipboard operation
linter-php copied to clipboard

[Linter] Error running PHP with Teletype on Mac + Windows

Open dademaru opened this issue 4 years ago • 0 comments

Hello,

I'm using Linter PHP 1.6.1 on macOS 11.4 and it works as expected. A collaborator is using Linter PHP 1.6.1 on Windows 10 pro and it works as expected. If we use Atom Teletype to work together on a file, it keeps throwing:

[Linter] Error running PHP See Console for more info.

and in console:

[Linter] Error running PHP Error: Failed to spawn command php. Make sure php is installed and on your PATH at /Users/xxx/.atom/packages/linter-eslint/node_modules/atom-linter/lib/helpers.js:130

We checked similar issues: https://github.com/AtomLinter/linter-php/issues/256#issuecomment-314155461 https://github.com/atom/teletype/issues/228

I've set executablePath: "/usr/bin/php" and he set executablePath: "C:\\Users\\xxx\\Programming Languages\\PHP\\php.exe" Linter PHP works on our computers but when using Teletype it keeps throwing:

[Linter] Error running PHP Error running PHP Error: Failed to spawn command /usr/bin/php. Make sure /usr/bin/php is installed and on your PATH

Obviously we can't set the same path since we are on different OS.

Is it a limit of Teletype + Linter PHP or we are doing it wrong?

Thanks

dademaru avatar Jun 22 '21 10:06 dademaru