Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.0.14 and Later Breaks Linting on MacOS #24

Open
harjup opened this issue Jan 13, 2023 · 1 comment
Open

v0.0.14 and Later Breaks Linting on MacOS #24

harjup opened this issue Jan 13, 2023 · 1 comment

Comments

@harjup
Copy link

harjup commented Jan 13, 2023

When using the linter plugin on 0.0.13, I get the following output

[1/13/2023, 11:56:00 AM] {
  "rootDir": "/Users/My.User/projects/my_root_path",
  "configFile": "",
  "command": [
    "/absolute/path/to/linting_script.rb",
    "--",
    "--format",
    "json",
    "--extra-details",
    "/absolute/path/to/target_file.rb",
  ]
}
[1/13/2023, 11:56:01 AM] rubocop's command took 1528ms

After which, linting errors correctly populate in my IDE.

But when I upgrade to 0.0.14 or later, get the following error:

Searched for any of /absolute/path/to/linting_script.rb; couldn't be found within $PATH: [
  "/opt/homebrew/bin",
  // ...
  "/usr/local/share/dotnet",
  "~/.dotnet/tools"
]
rubocop's command took 0ms

My guess is that one of windows compatibility fixes caused an issue for Unix systems.

@fnando
Copy link
Owner

fnando commented Jan 13, 2023

By the looks of your log output, seems like you're running a custom lint script. Is that right? Maybe the issue is with custom scripts like yours, rather than macOS breakage all around (macOS is OS I use, and I can attest it's working).

Do you mind posting your config for this linting and the lint script itself (it doesn't have to be complete, but it should reproduce the error)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants