[Linter] Error running PHP with Teletype on Mac + Windows
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 surephpis 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/phpis installed and on yourPATH
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