-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panic with not implemented CompletionItemKind(0) in Odin project #4657
Comments
This was fixed a few hours ago 1312682 Can you try from that commit? |
Sorry for the delay, I was not sure if I had rebuilt the project properly but I think I did everything correctly. Anyway I checked out the latest commit from
I've also gone and pulled the latest commits for both Odin and OLS and rebuilt both just in case. Here's the latest backtrace:
|
Oh whoops I was looking at the wrong We're panicking here: helix/helix-term/src/ui/completion.rs Line 69 in 0c30aee
Because the server is sending a completion item with a CompletionItemKind of However, the spec also says:
So in that branch, instead of panicking with |
Will do, give me a couple of minutes! Edit: here it is -> #4658 |
Summary
Trying to access a function implemented in an imported package causes the editor to panic.
The project can be found here.
odin version dev-2022-11:f1c24f43
OLS at commit
1c814ac250fa96083981fecc7a5cf22e6440ed2f
Paths to both
odin
andols
have been added toPATH
.Windows 11 Pro 22H2, build 22621.755
Language support added according to instructions found here inside
~\AppData\Roaming\helix\languages.toml
Here's the full backtrace:
Reproduction Steps
PATH
hx .
inside the project directorysrc/interpreter/interpreter.odin
fileinterpreter.odin
memory
.
I expected this to happen:
The language completion feature should have popped up with all the exported functions found within the
memory
package.Instead, this happened:
hx
panics and crashes withNot implemented: CompletionItemKind(0)
Helix log
helix.log
Platform
Windows 11
Terminal Emulator
Windows Terminal Version: 1.15.2875.0
Helix Version
helix 22.08.1 (6cafd81)
The text was updated successfully, but these errors were encountered: