Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upSupport Cargo project with workspace #51
Comments
This comment has been minimized.
This comment has been minimized.
|
Hi, I don't seem to be having this issue. When I select the error link on the compilation screen it takes me to the proper file / location. |
This comment has been minimized.
This comment has been minimized.
|
I updated the comment. This issue occurs for nightly Rust toolchain ( |
This comment has been minimized.
This comment has been minimized.
|
Yes, it is new rustc problem. If you compile inside crate "CrateA" that part of workspace, with new |
davemilter
referenced this issue
Feb 1, 2018
Closed
warning/errors reporting breaks at nightly #4998
matklad
added a commit
to matklad/cargo.el
that referenced
this issue
Feb 13, 2018
davemilter
referenced this issue
Feb 13, 2018
Closed
Use cargo-metadata command to learn about workspace root #55
This comment has been minimized.
This comment has been minimized.
|
This should be fixed with #56 |
nebgnahz commentedDec 26, 2017
•
edited
See sample project: https://github.com/nebgnahz/cargo.el-workspace
For a project with workspace, Cargo returns issue relative to the workspace root
directory.
cargo.elinstead find the directory withCargo.toml, which can bedifferent. When these two project root directory differ, Emacs compilation mode
fails to find the correct file path. To a user, Emacs is unable to jump to the
error location and a window prompt is open.
In the linked sample project, the file in
add-one/src/lib.rshas a typox1. When onedoes a
cargo build, we see the following compilation log:And Emacs wants to open a non-existant file
~/repos/cargo.el-workspace/add-one/add-one/src/lib.rs.cargo.elfinds filerelative to
~/repos/cargo.el-workspace/add-one/while Cargo~/repos/cargo.el-workspace/.Note: this wasn't an issue for old Cargo/
cargo.el. I did a package update today and start experiencing this issue.Edit: