Skip to content
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

This causes Lapce to crash #30

Open
Talon1024 opened this issue May 27, 2023 · 1 comment
Open

This causes Lapce to crash #30

Talon1024 opened this issue May 27, 2023 · 1 comment

Comments

@Talon1024
Copy link

Finishing the iter_mut() line in this code snippet will cause Lapce to crash.

I'm using the latest stable version of Lapce, the latest version of this plugin available in the Lapce plugin registry, and the latest version of rust-analyzer.

fn main() {
    let mut numbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
    // numbers.iter_mut().for_each(|n| { *n = *n * 5; });
    // Try typing in .f below, and Lapce will crash
    numbers.iter_mut()
    numbers.iter().for_each(|n| { print!("{n} "); });
    println!("...All done.");
}
@Talon1024
Copy link
Author

It's worth mentioning that I'm using a rust-analyzer executable from the VSCodium extension instead of the bundled rust-analyzer. This crash does not happen if I'm using the bundled rust-analyzer executable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant