intellij-lsp icon indicating copy to clipboard operation
intellij-lsp copied to clipboard

Output of lsp

Open nojaf opened this issue 7 years ago • 3 comments
trafficstars

I'm trying to use a lsp for F# in Rider. It appears not to be working, however I was wondering if there are logs or output in Rider I could check to see if it is at least trying to reach the lsp?

nojaf avatar Jun 11 '18 08:06 nojaf

Ditto; I'd like to see this too, if possible. I'm trying to set up TypeScript's language service, and I think it's being overridden by WebStorm's built-in JS language features, but I'm not sure.

cspotcode avatar Jun 11 '18 20:06 cspotcode

+1 to question. Also i can't figure out how to get logs from lsp-plugin itself. Managing of Help -> Debug log configuration doesn't help :(

nixel2007 avatar Aug 29 '18 18:08 nixel2007

Found the "tracer" parameter in createLauncher method. You can log messages of client and server with it (at least).


    LanguageServer server = new YourLanguageServer();
    PrintWriter tracer = new PrintWriter(new File("path/to/log/tracer.log"));
    Launcher<LanguageClient> launcher = LSPLauncher.createServerLauncher(server, in, out, false, tracer);

nixel2007 avatar Sep 01 '18 13:09 nixel2007