rust-lang / rust-lang/rust-analyzer

Autocomplete results in `thread 'Worker' has overflowed its stack`

Open
#15,236 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-completion C-bug
Dominant language
Rust
Stars
16.9k
Forks
2.2k
Avg merge
1d 12h
Merged PRs (30d)
72

Description

When VS-code tries to autocomplete rerun::MsgSender:: the rust-analyzer crashes and produces the following error:

thread 'Worker' has overflowed its stack
fatal runtime error: stack overflow

It doesn't have a problem with autocompleting anything else from the rerun crate. Only rerun::MsgSender

src/main.rs:

fn main() {    
    rerun::MsgSender::
}

Cargo.toml:

[package]
name = "stackoverflow"
version = "0.1.0"
edition = "2021"

[dependencies]
rerun = "0.7.0"

rust-analyzer version: 0.4.1580

rustc version: rustc 1.70.0 (90c541806 2023-05-31)

relevant settings: None

Contributor guide

Open the contributing guide

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 the minimal src/main.rs and Cargo.toml example by triggering autocomplete for rerun::MsgSender:: in VS Code. Use the reported rust-analyzer 0.4.1580, rustc 1.70.0, and rerun 0.7.0 versions while investigating; done means autocomplete no longer causes a worker stack overflow.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, vscode
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.