Fortls not showing errors (NeoVim) #195
Replies: 3 comments 8 replies
-
Why is this a bug? Which of the supported diagnostics are not produced? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Sorry to continue this somewhat old discussion. I also have this problem. The autocompletion works, thus the process is running, but when I introduce an error in the code, no diagnostics are emitted. Usually existing errors are populated in the quick fix list but none are in that list. Here's my config: local lspconfig = require('lspconfig')
-- ...
lspconfig.fortls.setup {
cmd = {
"fortls",
"--nthreads", "2",
"--symbol_skip_mem",
"--autocomplete_no_prefix",
"--incremental_sync",
"--use_signature_help",
"--variable_hover",
"--hover_signature",
"--enable_code_actions",
"--lowercase_intrinsics",
},
filetypes = { "fortran" },
root_dir = require('lspconfig.util').root_pattern(
'.fortls', '.git'
) or function() return vim.loop.cwd() end,
capabilities = capabilities
} In vscode as soon as I save the code it will emit the errors. Not sure if I'm missing some configuration or additional programs that is included in vscode but not in my setup.
|
Beta Was this translation helpful? Give feedback.
-
Describe the bug
When using fortls no errors are shown
To Reproduce
Use default configuration
hello.f90
Expected behavior
Some sort of error message
Setup information (please complete the following information):
Beta Was this translation helpful? Give feedback.
All reactions