Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

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

Description

@dademaru

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:
#256 (comment)
atom/teletype#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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions