lapce / lapce/lapce-rust

This causes Lapce to crash

Open
#30 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
87
Forks
30
PR merge metrics
No merged PRs in 30d

Description

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.");
}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the crash in Lapce using the provided Rust snippet, the latest stable Lapce release, the Lapce plugin registry version, and the latest rust-analyzer. Start by isolating the completion triggered while typing .f after numbers.iter_mut(); done means that editing this code no longer crashes Lapce.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.