Closed MathieuDuponchelle closed 1 year ago
Set "rust-analyzer.trace.server": "messages"
in your coc-settings.json and try :CocCommand workspace.showOutput rust-analyzer
.
Looks like this error logs came from rust-analyzer.
Great thanks, trying. How could we make this info more discoverable? A dedicated "How to access the rust-analyzer logs" section in the README perhaps?
The trace logs contain requests and responses from language client, here's coc.nvim, to rust-analyzer https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#logTrace.
I don't know whether the logs contain Failed to run build scripts of some packages
or not, because this log isn't log between client and server, but server issue logs. Maybe you can't find this in the trace logs...
I did find the issue in the logs, let me paste a gist for reference :)
https://gist.github.com/MathieuDuponchelle/e2d7ddc48a6a665cf192bb422d6604c5 , this is really quite surprising though because I've always had that csound
issue on my machine when building the whole workspace, and that hasn't prevented diagnostics up until now (or triggered a "pop-up" in my editor either).
Sorry for the delay response. Checked the err logs and rust-analyzer failed to work on this. Can you test with VSCode + rust-analyzer with your project?
sure
Does VSCode+rust-analyzer work or same error?
@fannheyward I just installed VSCode and installed the rust-analyzer extension, but it doesn't seem to be doing much for what it's worth, I'm not familiar with this editor at all so I don't really know where to start debugging this, feels like I'm now going to have two problems :P
Ah, I was in something called "restricted mode"
Yes, I'm seeing the exact same behavior in vscode, including the "failed to run build scripts" pop-up.
the exact same behavior in vscode
Can confirm this is rust-analyzer's issue.
Yes, I will log the issue there, thanks @fannheyward , you can close this if you want but I would perhaps recommend requalifying the issue to a request for making the procedure to access rust-analyzer logs more discoverable in the documentation :)
Hey, thanks for the great plugin, it usually works very well for me but recently I am seeing this error message, and no longer seeing diagnostics (though I do still get completions).
Note that this only happens when analysing a complex project (https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/), I don't get that with an hello world project. I expect some dependency is causing an issue, but I don't see anything in the logs, I suppose my main issue here is that I would like to know where I am supposed to find "the" logs :)
What's the output of
:CocInfo
What's the output of
:CocCommand rust-analyzer.serverVersion
What's your coc-rust-analyzer version? You can get it from
:CocList extensions