-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
LSP fail to auto-complete the import #10787
Comments
Seems it started here #10539 |
As a quick scout I found that commenting out this early return check brought back the auto-import: helix/helix-term/src/handlers/completion/resolve.rs Lines 45 to 51 in 2301430
|
I find that when importing Maybe we should remove |
The imports come from |
Not familiar with LSP, but it looks like Edit: Maybe I misread this condition.
and response, with
|
Summary
I update my helix from 2209eff to d8701bf, then this bug happens.
When using TAB to select an item to auto-complete, it may also auto-complete the import (like


use std::sync::Arc
)But when I press enter, nothing happens and it didn't auto-complete the import.
Also, when I trying to import the module (like

std::sync
), it works fine.I know this looks very much like an LSP error, but it works fine at 2209eff without any LSP change. So I guess it's a helix bug.
Reproduction Steps
I tried this:
hx
Arc
:I expected this to happen:
import
use std::sync::Arc
at beginningInstead, this happened:
nothing happens
Helix log
~/.cache/helix/helix.log
Platform
Arch Linux
Terminal Emulator
warp-terminal v0.2024.05.14.08.01.stable_04
Installation Method
source
Helix Version
helix 24.3 (d8701bf)
The text was updated successfully, but these errors were encountered: