bash-language-server icon indicating copy to clipboard operation
bash-language-server copied to clipboard

Why even my $PATH contains path to `shellcheck` it doesn't work out of the box?

Open EmilyGraceSeville7cf opened this issue 2 years ago • 0 comments

  • $PATH = /home/emilyseville7cfg/.dotnet:/home/emilyseville7cfg/.local/bin:/home/emilyseville7cfg/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
  • which shellcheck = /usr/bin/shellcheck

But when I open any .sh script I obtain no linting:

image

The workaround is:

// Settings in here override those in "LSP-bash/LSP-bash.sublime-settings"

{
    "env": {
        "SHELLCHECK_PATH": "/usr/bin/shellcheck"
    }
}

EmilyGraceSeville7cf avatar May 29 '22 17:05 EmilyGraceSeville7cf