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 diagnostics on NeoVim in single file mode #1287

Open
head-gardener opened this issue May 17, 2024 · 5 comments
Open

No diagnostics on NeoVim in single file mode #1287

head-gardener opened this issue May 17, 2024 · 5 comments

Comments

@head-gardener
Copy link

head-gardener commented May 17, 2024

I've tried both Mason and nvim-lspconfig, both accompanied by the configuration from wiki. Server reports no errors on startup, but responds with empty diagnostics:

[DEBUG][2024-05-17 15:44:55] .../vim/lsp/rpc.lua:286       "rpc.send"      {  jsonrpc = "2.0",  method = "textDocument/didSave",  params = {    text = "function func(a, b)\n    println(a)\n    println(b)\nend\n\nfunc(a, b, c)\n",    textDocument = {      uri = "file:///home/hunter/uni/nm/1.jl"    }  }}
[DEBUG][2024-05-17 15:44:55] .../vim/lsp/rpc.lua:408       "rpc.receive"   {  jsonrpc = "2.0",  method = "textDocument/publishDiagnostics",  params = {    diagnostics = {},    uri = "file:///home/hunter/uni/nm/1.jl",    version = 0  }}

vscode works fine.
I run NixOS, nvim is 0.10.0, server is 4.5.1.

@pfitzseb
Copy link
Member

What's the julia.lint.call option set to in those configs?

@head-gardener
Copy link
Author

What's the julia.lint.call option set to in those configs?

It's true, as per the defaults. Server returns no diagnostics regardless of the code though.

@ronisbr
Copy link

ronisbr commented May 17, 2024

Same thing here! However, I saw that the problem only happens if I open file in standalone mode. For example, if I create a project and open a file inside this project, I see:

Captura de Tela 2024-05-17 às 11 29 46

However, if the file is outside this project folder, I see:

Captura de Tela 2024-05-17 às 11 30 31

@ronisbr
Copy link

ronisbr commented May 17, 2024

Notice that the server is working in the standalone mode because I am seeing inlay hints. I also tried with an empty default environment.

@head-gardener
Copy link
Author

Thanks, I confirm that too. touch Project.toml does add diagnostics.

@head-gardener head-gardener changed the title No diagnostics on NeoVim No diagnostics on NeoVim in single file mode May 17, 2024
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

No branches or pull requests

3 participants