reddit / emacs

Ruby +LSP not finding sonarlint server

stirhoss · 2022-04-11 20:01
Title says it. I am trying to run ruby in LSP mode but everytime I open a file with the +lsp flag turned on (I am in doom emacs) is fails to find the server. I think that I have everything set up. I ran `gem install solargraph` just like the LSP documentation says to do. Am I missing a step? I noticed that without LSP turned on there is still some linting going on. Is that the LSP? Is it just included in ruby mode? Any information that you guys have on this would be helpful. Thank you in advance!
Bolyzaurio · 2022-04-11 20:56
You need to offer more context, like what's your LSP config, init, etc.
stirhoss · 2022-04-11 22:34
Doom has an LSP module that you can enable just by uncommenting in the init.el file. The doc for the LSP module says that you just need to uncomment, add the =+lsp= flag to :lang module that you are using, which in my case is ruby, and install the language server, which in this case is solargraph. There isn't a lot of documentation that I can find on how to properly install and config solargraph to work with emacs. Where would I go to config my LSP if more configuration is needed? My emacs config is pretty much entirely vanilla, just doom defaults and a few key remaps. [https://emacs-lsp.github.io/lsp-mode/page/installation/](https://emacs-lsp.github.io/lsp-mode/page/installation/) This is the guide that I was using. It seems to say that it is automatic, or that it should be but I get an error. I am pretty new to emacs so I might just not be understanding the documentation.
TrepidTurtle · 2022-04-11 23:39
Doom defaults is not “pretty much vanilla.” In fact it’s far from it. I’d suggest asking in a Doom-specific channel like their Discord.
stirhoss · 2022-04-12 01:26
I was referring to pretty much vanilla for doom. I realize that was the wrong way to say it since vanilla generally refers to vanilla emacs. I'll try the discord though, thank you!