Open rxda opened 2 years ago
And my local machine os is Mac Monterey, remote machine os is ubuntu 20.04
Did you manage to fix the issue?
Did you manage to fix the issue?
No ,I just found the cause of the problem. In this workspace project, if I remove the thumbor from cargo.toml members, it works fine. If I add it back, analyzer keep crash, but thumbor can compile normally with cargo run/build
I wonder if it is related to the prost proc macros in https://github.com/RXDA/geek-course/blob/main/thumbor/src/pb/abi.rs
I wonder if it is related to the prost proc macros in https://github.com/RXDA/geek-course/blob/main/thumbor/src/pb/abi.rs
After I removed pb/abi.rs and related code, analyzer works.
I have a similar issue when remoting from Mac OS to Windows:
[Error - 17:10:04] Request textDocument/hover failed.
Message: url is not a file
Code: -32603
WARN [17-2-2022 17:10:34]: LSP request failed {
method: 'rust-analyzer/inlayHints',
param: {
textDocument: {
uri: 'file:///Development/Burning%20Wheel/new-build-generator/src/main.rs'
}
},
error: [fo [Error]: url is not a file
at Yn (c:\Users\mtsr\.vscode-server\extensions\matklad.rust-analyzer-0.2.940\out\main.js:7:223)
at Ln (c:\Users\mtsr\.vscode-server\extensions\matklad.rust-analyzer-0.2.940\out\main.js:6:6732)
at Immediate.<anonymous> (c:\Users\mtsr\.vscode-server\extensions\matklad.rust-analyzer-0.2.940\out\main.js:6:6579)
at processImmediate (internal/timers.js:461:21)] {
code: -32603,
data: undefined
}
}
This is on a nearly empty project with just
[dependencies]
serde = "1.0.29"
serde_json = "1.0.11"
serde_derive = "1.0.29"
json = "0.12.4"
I have a similar issue when remoting from Mac OS to Windows:
[Error - 17:10:04] Request textDocument/hover failed. Message: url is not a file Code: -32603
WARN [17-2-2022 17:10:34]: LSP request failed { method: 'rust-analyzer/inlayHints', param: { textDocument: { uri: 'file:///Development/Burning%20Wheel/new-build-generator/src/main.rs' } }, error: [fo [Error]: url is not a file at Yn (c:\Users\mtsr\.vscode-server\extensions\matklad.rust-analyzer-0.2.940\out\main.js:7:223) at Ln (c:\Users\mtsr\.vscode-server\extensions\matklad.rust-analyzer-0.2.940\out\main.js:6:6732) at Immediate.<anonymous> (c:\Users\mtsr\.vscode-server\extensions\matklad.rust-analyzer-0.2.940\out\main.js:6:6579) at processImmediate (internal/timers.js:461:21)] { code: -32603, data: undefined } }
This is on a nearly empty project with just
[dependencies] serde = "1.0.29" serde_json = "1.0.11" serde_derive = "1.0.29" json = "0.12.4"
maybe caused by space in uri path
Removing the space doesn't help, unfortunately.
I changed the path to Development/bw/builds/src/main.rs
, but still the same issue. Note that other projects within Development
work fine.
Starting a completely new project, it works fine again. I'm going to try reproducing the issue.
I recreated the exact same project from scratch and have no issues. Seems like something was being cached that caused the issue to stay even after fixing the space in the uri.
I have been having a similar issue as well, vscode on a mac, new project with less than 300 lines of code as well. I have to entirely restart vscode and cant simply restart the plugin.
My cargo TOML
[dependencies]
axum = { version = "0.7", features = ["tokio"] }
axum-server = { version = "0.6", features = ["tls-rustls"] }
tokio = { version = "1", features = ["full"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
serde = { version = "1.0.197", features = ["derive"] }
clap = { version = "4.0", features = ["derive"] }
serde_json = "1.0.114"
rustls = "0.22.2"
tokio-rustls = "0.25.0"
tower = "0.4.13"
tower-http = "0.5.2"
http-body-util = "0.1.0"
I often get a "request failed" pop-up prompt in vscode remote development, and the completion and goto definition failed or always loading, but local development does not have this problem. I have tried v0.2.880 and v0.3.882 and had the same problem. The log is as follows
extension version: v0.2.880 and v0.3.882 rustc version: 1.57.0
v0.2.880 Rust Analyzer Language Server log
v0.2.880 Rust Analyzer Client log
v0.3.882 Rust Analyzer Language Server log
v0.3.882 Rust Analyzer Client log