Skip to content

panic when open a rust workspace #12056

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

Closed
charlesxsh opened this issue Apr 22, 2022 · 2 comments
Closed

panic when open a rust workspace #12056

charlesxsh opened this issue Apr 22, 2022 · 2 comments

Comments

@charlesxsh
Copy link

[Info - 4:14:22 AM] Connection to server got closed. Server will restart.
thread 'main' panicked at 'index out of bounds: the len is 45 but the index is 99', crates/project_model/src/workspace.rs:762:78
stack backtrace:
0: _rust_begin_unwind
1: core::panicking::panic_fmt
2: core::panicking::panic_bounds_check
3: project_model::workspace::ProjectWorkspace::to_crate_graph
4: rust_analyzer::reload::::switch_workspaces
5: rust_analyzer::main_loop::::handle_event
6: rust_analyzer::main_loop::::run
7: rust_analyzer::main_loop::main_loop
8: rust_analyzer::run_server
9: rust_analyzer::main

@jonas-schievink
Copy link
Contributor

This was fixed by #12044 and should be included in the last nightly release (v0.3.1026)

@jonas-schievink
Copy link
Contributor

The fix is in today's stable release, closing

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

2 participants