dense-analysis / dense-analysis/ale

Fix failed to find project root, language server won't start on single cpp file

Open
#4,577 0 comments 4 reactions 0 assignees View on GitHub
enhancement
Dominant language
Vim Script
Stars
14k
Forks
1.5k
Avg merge
17h 49m
Merged PRs (30d)
1

Description

Hi there,
I note that if I create a single c/cpp file without `compile_commands.json` clangd server will not be started and throw this error in `:ALEInfo`
```
LSP Error Messages:
(Errors for clangd)
Failed to find project root, language server won't start.
```

However, I noticed that clangd has the option `--check=/path/to/file` for checking a single file.
Can we use `--check=` option, or add `fallbackFlags` which will be used if `compile_commands.json` does not exist?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.