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

No message when try to use LSP with no project root. #4155

Closed
j0ng4b opened this issue Apr 10, 2022 · 1 comment · Fixed by #4207
Closed

No message when try to use LSP with no project root. #4155

j0ng4b opened this issue Apr 10, 2022 · 1 comment · Fixed by #4207

Comments

@j0ng4b
Copy link

j0ng4b commented Apr 10, 2022

This given me many headacher when I was using clangd without a project root, simple standalone test file, and noticed that clangd doens't even get executed. Then I found this when trying to find the issue on source code:

if empty(l:root) && a:linter.lsp isnot# 'tsserver'
" If there's no project root, then we can't check files with LSP,
" unless we are using tsserver, which doesn't use project roots.
return 0
endif

So, if showed some message to user (like me) would be really appreciated, because if I knew this before I wouldn't spent much time to find this "issue".

Please show some warning about this limitation or make possible run lsp without project root like other lsp clients.

@w0rp
Copy link
Member

w0rp commented Apr 19, 2022

I agree. I would like to reveal it probably in :ALEInfo. Just something that doesn't nag people.

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

Successfully merging a pull request may close this issue.

3 participants