No inlay type hints when opening a file from the command line #9585
Replies: 3 comments 2 replies
-
What does the log say when running in verbose mode? Please use the bug report template in the future. |
Beta Was this translation helpful? Give feedback.
-
this is another log file I can't see type hints: then I open main.rs using the file picker and it shows inlays: then I close the lib.rs buffer and reopen it using the file picker, it shows type hints: then I quit helix, this is the log file: |
Beta Was this translation helpful? Give feedback.
-
I can reproduce this. The log has the lines:
We are requesting inlay hints and rust-analyzer is saying that the document doesn't have any. Starting Helix with the file argument isn't the only way to reproduce this: it happens when we request inlay hints from rust-analyzer before it's fully ready. (See the progress messages in the log file - we're requesting inlay hints before rust-analyzer is done indexing the project.) For example starting Without knowing the internals of rust-analyzer it seems to me that rust-analyzer should wait until it's done starting up and indexing to respond to inlay hint requests. I'm not sure there's a robust way to fix this on the Helix side other than maybe re-requesting inlay hints after we get a publishDiagnostic message from the server. @pascalkuthe do you have an opinion on this? Should this be fixed upstream? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If I open a file from the command line:
hx src/main.rs
Checking the log file it shows this error:
2024-02-05T10:10:22.508 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(153)), original request likely timed out
If I open the file using the file picker it works.
This is part of the log:
2024-02-02T17:51:39.254 helix_term::application [WARN] Ignoring a client/registerCapability request because dynamic capability registration is not enabled. Please report this upstream
│ to the language server
2 │ 2024-02-05T10:10:22.508 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(153)), original request likely timed out
3 │ 2024-02-05T10:25:22.962 helix_lsp::transport [ERROR] rust-analyzer err <- "Panic context:\n"
Platform: Linux POP_OS
Terminal emulator: Kitty
Version: 23.10 (d570c29), installed by cloning the git repo
Beta Was this translation helpful? Give feedback.
All reactions