-
-
Notifications
You must be signed in to change notification settings - Fork 156
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? #709
Comments
Hi, I know nothing about emacs or eglot, but I had a similar problem in a neovim distro. You might need to configure it explicitely to show diagnostics, I hear it's off by default on some cases. Available LSP options are https://github.com/castwide/vscode-solargraph?tab=readme-ov-file#extension-settings (which apparently can be found here https://emacs-lsp.github.io/lsp-mode/page/lsp-solargraph/#lsp-solargraph-diagnostics if that maps to anything on your config) Also I would suggest to check how your PATH and GEM_PATH are used/configured. For example, on the custom config, solargraph would be called from my project folder So one problem I had for example is that since I use the solargraph-reek plugin, and since it's not managed by So yeah just check from actually where solargraph is called in your config, so that you know what config is given to solargraph |
I understand. How do I switch it on? I am not 100% sure yet if |
I'm not familiar with Possibly helpful: https://joaotavora.github.io/eglot/#index-initializationOptions |
Okay, I got this working. Thank you both. The correct steps are:
In this file, add reporters:
- rubocop # diagnostics
(use-package eglot
:ensure t
:config
(with-eval-after-load 'eglot
(add-to-list 'eglot-server-programs
'((ruby-mode)
. ("solargraph" "stdio" :initializationOptions
(:diagnostics t))))
)) If you tell me where, I can add this (plus more context) to the docs? @castwide |
Glad you got it working. This is specific to the client implementation, so it might be better to document it somewhere in the |
Fair point. Thanks for the help. |
I saw the issue here #655. This person uses eglot, solargraph and flymake.
I use the same stack. I also have no diagnostics.
I have a global config file here:
~/.config/solargraph/config.yml
as instructed from this issue #197.As the person in #655 stated, the online demo also doesn't show diagnostics.
How do we turn diagnostics on?
The lsp is running. In my config I have:
This works. I get documentation popups as expected.
Just no diagnostics. As a point of reference, all other languages get correct diagnostics through eglot. So I am confident that that is not the issue.
Environment
Solargraph version: 0.50.0
RuboCop version: 1.60.2
Emacs version: 28.2
OS: Debian 12 - Bookworm
Ruby: 3.1.2
The text was updated successfully, but these errors were encountered: