You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's a zip file of a basic workspace with two crates, executable and library. If you run cargo build inside of executable (or specify it from the root with --manifest-path executable/Cargo.toml), you'll notice that the compile error inside of library prints an absolute path. RustAnalyzer_5482.zip
Per microsoft/vscode#449 and https://code.visualstudio.com/docs/editor/tasks#_defining-a-problem-matcher , problem matchers can now be defined that support both relative and absolute paths. I propose that https://github.com/rust-analyzer/rust-analyzer/blob/master/editors/code/package.json#L602-L634 be updated to specify
"fileLocation": "autoDetect"
. Cargo seems to compiles path based dependencies with absolute paths when they are not located inside of the current crate/workspace root (rust-lang/cargo#8506 (comment)), and presently the problem matcher that ships withrust-analyzer
attempts to treat those paths as relative.Current workaround is to specify inside of
tasks.json
:The text was updated successfully, but these errors were encountered: