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.
| File | Diagnostics (ours / bashls / shared) | Completion recall (ours / bashls) |
|---|---|---|
bash/broken.bash | 4 / 3 / 0 | 4/4 / 4/4 |
bash/completion.bash | 3 / 5 / 3 | 17/17 / 16/17 |
bash/errors.bash | 7 / 5 / 2 | 1/1 / 1/1 |
bash/functions.bash | 2 / 3 / 2 | 21/21 / 16/21 |
bash/setup-hook.bash | 1 / 1 / 1 | 35/36 / 35/36 |
dash/init.sh | 1 / 1 / 1 | 22/23 / 21/23 |
dash/local.sh | 0 / 0 / 0 | 2/2 / 2/2 |
sh/bashisms.sh | 5 / 5 / 5 | 2/2 / 2/2 |
sh/installer.sh | 0 / 0 / 0 | 23/23 / 18/23 |
sh/posix.sh | 1 / 1 / 1 | 8/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