Hi LSP devs,
Thanks for a great mode. As per conversation in the gitter channel:
I've been using it on windows for c# and it works quite well. One question though, is there a way to see the OmniSharp log? I can see the log of messages and replies sent to OmniSharp, but I haven't found a way to see the server log itself, like I could with omnisharp-emacs.
the problem I am trying to troubleshoot in particular is the case where I make changes to a csproj file but it seems OmniSharp does not reload the project. This was working for omnisharp-emacs so I suspect I must have broken something, but without the log its not easy to figure out what.
@yyoncho suggested that @razzmatazz may know the answer to this question.
Many thanks for all your hard work.
Marco
Hi @mcraveiro. I believe, the log level is configurable but we don't have configuration for it in lsp-csharp.el (yet). I have not personally tried configuring it (or if it actually works) but..
The code for setting configuration level is there:
And according to code here:
It should be configurable via --loglevel | -l switch.
You could try appending -l Debug to the function lsp-csharp--language-server-command here:
.. by changing the code to:
(defun lsp-csharp--language-server-command ()
"Resolves path and arguments to use to start the server."
(list (lsp-csharp--language-server-path) "-lsp" "-l" "Debug"))
There has been quite some changes made recently to lsp support in omnisharp-roslyn and more are coming, so it could be that log level configuration is broken.
Hi @razzmatazz,
thanks for the prompt response. I will try to modify the log level and see what comes out.
Cheers
Marco
This worked as expected. Thanks for your help.