-
-
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
Auto import doesn't work #2142
Comments
@andreytkachenko I also can't get this working, the completion appears but the import isn't getting added. I assume |
@archseer The only case I can reproduce the bug - if there are some changes happened between |
I can reproduce this if I start typing Dur and make selection before ra completes indexing/etc. With "content modified" error from server |
I realized that I had to press enter in order to get auto-import... 😅 |
I can confirm that problem is not solved. I will fix it. Leave it open please for reference. |
Summary
I tried out the auto-import feature that got merged recently, but it is not working.
Reproduction Steps
I tried this:
cargo new test_project
, andcd
to the project root.hx src/main.rs
.println!
, and typeDur
.Duration
. Select it by pressing control-n.I expected this to happen:
By selecting the suggestion,
use std::time::Duration
should be added to the source code.Instead, this happened:
The editor completes to
Duration
, but does not adduse
statement to the code.Helix log
The log is too long, so I'll attach it separately.
helix.log
Platform
Linux (kernel version:
5.17.2-arch3-1
)rust-analyzer 2022-04-11
Terminal Emulator
wezterm 20220408-101518-b908e2dd
Helix Version
22.03-95-gc45fb08a
The text was updated successfully, but these errors were encountered: