rust-lang / rust-lang/rust-analyzer
Autocomplete results in `thread 'Worker' has overflowed its stack`
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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