Skip to content

Cross-check against bash-language-server ​

Generated by just crosscheck (cmd/crosscheck). Both servers see the same corpus file; bash-language-server lints through the shellcheck on PATH, shell-lsp with its built-in linter. Diagnostics are compared as line:code; completion recall asks each server to complete the first two characters of every command name and assigned variable reference and checks that the word actually written there is offered.

FileDiagnostics (ours / bashls / shared)Completion recall (ours / bashls)
bash/broken.bash4 / 3 / 04/4 / 4/4
bash/completion.bash3 / 5 / 317/17 / 16/17
bash/errors.bash7 / 5 / 21/1 / 1/1
bash/functions.bash2 / 3 / 221/21 / 16/21
bash/setup-hook.bash1 / 1 / 135/36 / 35/36
dash/init.sh1 / 1 / 122/23 / 21/23
dash/local.sh0 / 0 / 02/2 / 2/2
sh/bashisms.sh5 / 5 / 52/2 / 2/2
sh/installer.sh0 / 0 / 023/23 / 18/23
sh/posix.sh1 / 1 / 18/8 / 8/8

Total completion recall: ours 135/137, bash-language-server 123/137.

Differences ​

bash/broken.bash ​

  • diagnostics only from shell-lsp: 3:shell-lsp:not, 4:shell-lsp:missing, 6:shell-lsp:missing, 7:shell-lsp:expected
  • diagnostics only from bash-language-server: 3:SC1009, 3:SC1073, 8:SC1072

bash/completion.bash ​

  • diagnostics only from bash-language-server: 13:SC2207, 18:SC2207
  • completions bash-language-server missed: mapfile@9:6

bash/errors.bash ​

  • diagnostics only from shell-lsp: 4:SC2027, 4:SC2086, 5:SC2027, 5:SC2086, 5:shell-lsp:missing
  • diagnostics only from bash-language-server: 2:SC1009, 5:SC1073, 9:SC1072

bash/functions.bash ​

  • diagnostics only from bash-language-server: 32:SC1091
  • completions bash-language-server missed: mktemp@19:9, sort@21:12, cat@25:3, cat@28:3, tmp@16:12

bash/setup-hook.bash ​

  • completions shell-lsp missed: _eval@31:5
  • completions bash-language-server missed: _eval@31:5

dash/init.sh ​

  • completions shell-lsp missed: local@6:4
  • completions bash-language-server missed: cat@17:12, pid@9:37

sh/installer.sh ​

  • completions bash-language-server missed: cat@8:4, mktemp@29:9, uname@32:11, mkdir@44:3, opt@20:11