-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
thread 'Worker' panicked #18777
Comments
That will need a reproducer for us to be actionable |
Not sure how to get reproducer either, but I'm also getting this error. Will report back if I can figure out how to reproduce it. I noticed that the error squiggles aren't updated on save because (I think) |
Well that's a relief! Thanks for the heads up! Looking forward to that fix being pushed. |
For anyone else coming here because they saw the error in vscode when auto completion was failing, after doing a git bissect on this project between when it worked last for me via I do see #18834 and #18888 and #18889 attempted to resolve some of the "regressions" from that commit (which was introduced via #18723). I did try the latest release of Hopefully this helps anyone else who might be getting hit by this. |
@hak8or Do you have a reproduction? |
I have continued to attempt to get a minimal reproducible example since I posted a few days, but have sadly failed in my attempts. I cannot share the codebase I am seeing this in because it's proprietary. I will continue to attempt to check new releases if I see any changes, and making a small reproducible. Would you want me to shift this to a new issue, or keep it here as is? |
When you'll have a reproduction, I think a new issue should be preferred, since this one doesn't have a reproduction. |
version: 0.3.2228
2024-12-28T23:08:12.029781324+08:00 ERROR Position LineCol { line: 55, col: 13 } column exceeds line length 11, clamping it
2024-12-28T23:08:12.029840077+08:00 ERROR Position LineCol { line: 55, col: 13 } column exceeds line length 11, clamping it
2024-12-28T23:09:11.04839502+08:00 ERROR Position LineCol { line: 89, col: 18 } column exceeds line length 1, clamping it
2024-12-28T23:09:11.048452108+08:00 ERROR Position LineCol { line: 89, col: 18 } column exceeds line length 1, clamping it
2024-12-28T23:09:11.048460884+08:00 ERROR Position LineCol { line: 120, col: 18 } column exceeds line length 1, clamping it
2024-12-28T23:09:11.048468112+08:00 ERROR Position LineCol { line: 120, col: 18 } column exceeds line length 1, clamping it
2024-12-28T23:09:11.048475134+08:00 ERROR Position LineCol { line: 131, col: 24 } column exceeds line length 1, clamping it
2024-12-28T23:09:11.048482934+08:00 ERROR Position LineCol { line: 131, col: 24 } column exceeds line length 1, clamping it
2024-12-28T23:09:11.048491434+08:00 ERROR Position LineCol { line: 141, col: 24 } column exceeds line length 2, clamping it
2024-12-28T23:09:11.048498255+08:00 ERROR Position LineCol { line: 141, col: 24 } column exceeds line length 2, clamping it
2024-12-28T23:09:29.769465964+08:00 ERROR Position LineCol { line: 120, col: 18 } column exceeds line length 1, clamping it
2024-12-28T23:09:29.769498334+08:00 ERROR Position LineCol { line: 120, col: 18 } column exceeds line length 1, clamping it
2024-12-28T23:09:29.769502598+08:00 ERROR Position LineCol { line: 131, col: 24 } column exceeds line length 1, clamping it
2024-12-28T23:09:29.769505802+08:00 ERROR Position LineCol { line: 131, col: 24 } column exceeds line length 1, clamping it
2024-12-28T23:09:29.769509167+08:00 ERROR Position LineCol { line: 141, col: 24 } column exceeds line length 2, clamping it
2024-12-28T23:09:29.769512141+08:00 ERROR Position LineCol { line: 141, col: 24 } column exceeds line length 2, clamping it
2024-12-28T23:11:08.748416828+08:00 ERROR Position LineCol { line: 140, col: 19 } column exceeds line length 10, clamping it
2024-12-28T23:11:08.748492679+08:00 ERROR Position LineCol { line: 140, col: 19 } column exceeds line length 10, clamping it
2024-12-28T23:14:43.440354304+08:00 ERROR Position LineCol { line: 934, col: 30 } column exceeds line length 14, clamping it
2024-12-28T23:14:43.440404285+08:00 ERROR Position LineCol { line: 934, col: 30 } column exceeds line length 14, clamping it
2024-12-28T23:14:50.925405007+08:00 ERROR Position LineCol { line: 934, col: 30 } column exceeds line length 14, clamping it
2024-12-28T23:14:50.925445526+08:00 ERROR Position LineCol { line: 934, col: 30 } column exceeds line length 14, clamping it
Panic context:
version: 0.3.2228-standalone
request: textDocument/diagnostic DocumentDiagnosticParams {
text_document: TextDocumentIdentifier {
uri: Url {
scheme: "file",
cannot_be_a_base: false,
username: "",
password: None,
host: None,
port: None,
path: "/home/user1/txnkv/participant/src/page.rs",
query: None,
fragment: None,
},
},
identifier: None,
previous_result_id: Some(
"rust-analyzer",
),
work_done_progress_params: WorkDoneProgressParams {
work_done_token: None,
},
partial_result_params: PartialResultParams {
partial_result_token: None,
},
}
thread 'Worker' panicked at /github/home/.cargo/registry/src/index.crates.io-6f17d22bba15001f/chalk-ir-0.98.0/src/lib.rs:2238:9:
assertion
left == right
failedleft: 2
right: 1
stack backtrace:
0: rust_begin_unwind
1: core::panicking::panic_fmt
2: core::panicking::assert_failed_inner
3: core::panicking::assert_failed
4: chalk_ir::Binders::substitute
5: hir_ty::mir::ProjectionElem<V,T>::projected_ty
6: hir_ty::mir::borrowck::moved_out_of_ref::{{closure}}
7: hir_ty::mir::borrowck::borrowck_query::{{closure}}
8: hir_ty::mir::borrowck::borrowck_query
9: ra_salsa::derived_lru::slot::Slot<Q,MP>::execute
10: ra_salsa::derived_lru::slot::Slot<Q,MP>::read
11: <ra_salsa::derived_lru::DerivedStorage<Q,MP> as ra_salsa::plumbing::QueryStorageOps
version: 0.3.2228-standalone
request: textDocument/codeAction CodeActionParams {
text_document: TextDocumentIdentifier {
uri: Url {
scheme: "file",
cannot_be_a_base: false,
username: "",
password: None,
host: None,
port: None,
path: "/home/user1/txnkv/participant/src/page.rs",
query: None,
fragment: None,
},
},
range: Range {
start: Position {
line: 930,
character: 41,
},
end: Position {
line: 930,
character: 41,
},
},
context: CodeActionContext {
diagnostics: [],
only: None,
trigger_kind: Some(
Automatic,
),
},
work_done_progress_params: WorkDoneProgressParams {
work_done_token: None,
},
partial_result_params: PartialResultParams {
partial_result_token: None,
},
}
thread 'Worker' panicked at /github/home/.cargo/registry/src/index.crates.io-6f17d22bba15001f/chalk-ir-0.98.0/src/lib.rs:2238:9:
assertion
left == right
failedleft: 2
right: 1
stack backtrace:
0: rust_begin_unwind
1: core::panicking::panic_fmt
2: core::panicking::assert_failed_inner
3: core::panicking::assert_failed
4: chalk_ir::Binders::substitute
5: hir_ty::mir::ProjectionElem<V,T>::projected_ty
6: hir_ty::mir::borrowck::moved_out_of_ref::{{closure}}
7: hir_ty::mir::borrowck::borrowck_query::{{closure}}
8: hir_ty::mir::borrowck::borrowck_query
9: ra_salsa::derived_lru::slot::Slot<Q,MP>::execute
10: ra_salsa::derived_lru::slot::Slot<Q,MP>::read
11: <ra_salsa::derived_lru::DerivedStorage<Q,MP> as ra_salsa::plumbing::QueryStorageOps
version: 0.3.2228-standalone
request: textDocument/codeAction CodeActionParams {
text_document: TextDocumentIdentifier {
uri: Url {
scheme: "file",
cannot_be_a_base: false,
username: "",
password: None,
host: None,
port: None,
path: "/home/user1/txnkv/participant/src/page.rs",
query: None,
fragment: None,
},
},
range: Range {
start: Position {
line: 930,
character: 41,
},
end: Position {
line: 930,
character: 41,
},
},
context: CodeActionContext {
diagnostics: [
Diagnostic {
range: Range {
start: Position {
line: 930,
character: 41,
},
end: Position {
line: 930,
character: 41,
},
},
severity: Some(
Error,
),
code: Some(
String(
"Click for full compiler diagnostic",
),
),
code_description: Some(
CodeDescription {
href: Url {
scheme: "rust-analyzer-diagnostics-view",
cannot_be_a_base: false,
username: "",
password: None,
host: None,
port: None,
path: "/diagnostic%20message%20%5B0%5D",
query: Some(
"0",
),
fragment: Some(
"file%3A%2F%2F%2Fhome%2Fuser1%2Ftxnkv%2Fparticipant%2Fsrc%2Fpage.rs",
),
},
},
),
source: Some(
"rustc",
),
message: "expected
;
, foundsibling
",related_information: Some(
[
DiagnosticRelatedInformation {
location: Location {
uri: Url {
scheme: "file",
cannot_be_a_base: false,
username: "",
password: None,
host: None,
port: None,
path: "/home/user1/txnkv/participant/src/page.rs",
query: None,
fragment: None,
},
range: Range {
start: Position {
line: 931,
character: 8,
},
end: Position {
line: 931,
character: 15,
},
},
},
message: "unexpected token",
},
DiagnosticRelatedInformation {
location: Location {
uri: Url {
scheme: "file",
cannot_be_a_base: false,
username: "",
password: None,
host: None,
port: None,
path: "/home/user1/txnkv/participant/src/page.rs",
query: None,
fragment: None,
},
range: Range {
start: Position {
line: 930,
character: 41,
},
end: Position {
line: 930,
character: 41,
},
},
},
message: "add
;
here:;
",},
],
),
tags: None,
data: Some(
Object {
"rendered": String("\u{1b}[0m\u{1b}[1m\u{1b}[38;5;9merror\u{1b}[0m\u{1b}[0m\u{1b}[1m: expected
;
, foundsibling
\u{1b}[0m\n\u{1b}[0m \u{1b}[0m\u{1b}[0m\u{1b}[1m\u{1b}[38;5;12m--> \u{1b}[0m\u{1b}[0mparticipant/src/page.rs:931:42\u{1b}[0m\n\u{1b}[0m \u{1b}[0m\u{1b}[0m\u{1b}[1m\u{1b}[38;5;12m|\u{1b}[0m\n\u{1b}[0m\u{1b}[1m\u{1b}[38;5;12m931\u{1b}[0m\u{1b}[0m \u{1b}[0m\u{1b}[0m\u{1b}[1m\u{1b}[38;5;12m|\u{1b}[0m\u{1b}[0m \u{1b}[0m\u{1b}[0m let sibling_frame = sibling.frame\u{1b}[0m\n\u{1b}[0m \u{1b}[0m\u{1b}[0m\u{1b}[1m\u{1b}[38;5;12m|\u{1b}[0m\u{1b}[0m \u{1b}[0m\u{1b}[0m\u{1b}[1m\u{1b}[38;5;9m^\u{1b}[0m\u{1b}[0m \u{1b}[0m\u{1b}[0m\u{1b}[1m\u{1b}[38;5;9mhelp: add;
here\u{1b}[0m\n\u{1b}[0m\u{1b}[1m\u{1b}[38;5;12m932\u{1b}[0m\u{1b}[0m \u{1b}[0m\u{1b}[0m\u{1b}[1m\u{1b}[38;5;12m|\u{1b}[0m\u{1b}[0m \u{1b}[0m\u{1b}[0m sibling.set_last_seq(xlog.push(\u{1b}[0m\n\u{1b}[0m \u{1b}[0m\u{1b}[0m\u{1b}[1m\u{1b}[38;5;12m|\u{1b}[0m\u{1b}[0m \u{1b}[0m\u{1b}[0m\u{1b}[1m\u{1b}[38;5;12m-------\u{1b}[0m\u{1b}[0m \u{1b}[0m\u{1b}[0m\u{1b}[1m\u{1b}[38;5;12munexpected token\u{1b}[0m\n\n"),},
),
},
Diagnostic {
range: Range {
start: Position {
line: 930,
character: 41,
},
end: Position {
line: 930,
character: 41,
},
},
severity: Some(
Hint,
),
code: None,
code_description: None,
source: Some(
"rustc",
),
message: "add
;
here:;
",related_information: Some(
[
DiagnosticRelatedInformation {
location: Location {
uri: Url {
scheme: "file",
cannot_be_a_base: false,
username: "",
password: None,
host: None,
port: None,
path: "/home/user1/txnkv/participant/src/page.rs",
query: None,
fragment: None,
},
range: Range {
start: Position {
line: 930,
character: 41,
},
end: Position {
line: 930,
character: 41,
},
},
},
message: "original diagnostic",
},
],
),
tags: None,
data: None,
},
],
only: None,
trigger_kind: Some(
Automatic,
),
},
work_done_progress_params: WorkDoneProgressParams {
work_done_token: None,
},
partial_result_params: PartialResultParams {
partial_result_token: None,
},
}
thread 'Worker' panicked at /github/home/.cargo/registry/src/index.crates.io-6f17d22bba15001f/chalk-ir-0.98.0/src/lib.rs:2238:9:
assertion
left == right
failedleft: 2
right: 1
stack backtrace:
0: rust_begin_unwind
1: core::panicking::panic_fmt
2: core::panicking::assert_failed_inner
3: core::panicking::assert_failed
4: chalk_ir::Binders::substitute
5: hir_ty::mir::ProjectionElem<V,T>::projected_ty
6: hir_ty::mir::borrowck::moved_out_of_ref::{{closure}}
7: hir_ty::mir::borrowck::borrowck_query::{{closure}}
8: hir_ty::mir::borrowck::borrowck_query
9: ra_salsa::derived_lru::slot::Slot<Q,MP>::execute
10: ra_salsa::derived_lru::slot::Slot<Q,MP>::read
11: <ra_salsa::derived_lru::DerivedStorage<Q,MP> as ra_salsa::plumbing::QueryStorageOps
The text was updated successfully, but these errors were encountered: