lapce-rust icon indicating copy to clipboard operation
lapce-rust copied to clipboard

This causes Lapce to crash

Open Talon1024 opened this issue 2 years ago • 1 comments

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 avatar May 27 '23 20:05 Talon1024

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.

Talon1024 avatar May 29 '23 19:05 Talon1024