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 upwarning/errors reporting breaks at nightly #4998
Comments
This comment has been minimized.
This comment has been minimized.
|
Yes this was caused by #4788 and currently (if we don't revert) IDEs will need to update to call |
This comment has been minimized.
This comment has been minimized.
I am expecting that would be rather complex for at least |
This comment has been minimized.
This comment has been minimized.
|
@davemilter there was a feature request on Cargo to not recompile artifacts when the cwd changed or when the project was renamed, and fixing that also necessitated #4788. I think rust-lang/rust#47939 would help with this issue as well |
This comment has been minimized.
This comment has been minimized.
|
Flycheck reporting in. #4788 surprised us as well, but in our case we are using the JSON output, and there, until #4788, we had absolute file paths. Is the change to relative paths in JSON output intended? I've seen #4938, and while we can use that, I'd rather have absolute paths than call |
This comment has been minimized.
This comment has been minimized.
|
@fmdkdd another good point! Mind filing an issue against rustc for that? (I think those paths in error messages come from rustc) |
This comment has been minimized.
This comment has been minimized.
|
I was mistaken: before, #4788, I'd still like absolute paths, but I guess that with rust-lang/rust#47939, we could at least restore the previous behavior right? |
This comment has been minimized.
This comment has been minimized.
|
@fmdkdd there's now |
This comment has been minimized.
This comment has been minimized.
|
@matklad I've seen #4938. I was just hoping for a solution that would not require us to call |
pnkfelix
referenced this issue
Feb 15, 2018
Closed
Add a compiler option for a 'pseudo-cwd' for rustc errors #47939
kngwyu
referenced this issue
Mar 7, 2018
Merged
Changed flycheck-rust-manifest-directory to use 'cargo metadata' #1422
This comment has been minimized.
This comment has been minimized.
|
@matklad Since rust-lang/rust#47839 has been closed, we have resorted to using |
This comment has been minimized.
This comment has been minimized.
stale
bot
commented
Sep 15, 2018
|
As there hasn't been any activity here in over 6 months I've marked this as stale and if no further activity happens for 7 days I will close it. I'm a bot so this may be in error! If this issue should remain open, could someone (the author, a team member, or any interested party) please comment to that effect? The team would be especially grateful if such a comment included details such as:
Thank you for contributing! If you're reading this comment from the distant future, fear not if this was closed automatically. If you believe it's still an issue please leave a comment and a team member can reopen this issue. Opening a new issue is also acceptable! |
stale
bot
added
the
stale
label
Sep 15, 2018
This comment has been minimized.
This comment has been minimized.
stale
bot
commented
Oct 15, 2018
|
As I didn't see any updates in 30 days I'm going to close this. Please see the previous comment for more information! |
davemilter commentedFeb 1, 2018
•
edited
With nightly cargo if I run
cargo cmdinside of crate that part of workspace,it reports errors like this:
instead of
See the difference -
foo/src/lib.rsvssrc/lib.rs.This breaks many editor/IDE I suppose. In particular it breaks functionality
press on error/warning in compilation log and jump to suitable location in file.
For example with intellij-rust/intellij-rust jump from error/warning doesn't work with nightly: https://users.rust-lang.org/t/intellij-rust-and-compile-errors/15103
It breaks cargo.el project kwrooijen/cargo.el#51 (emacs wrapper around cargo commands),
also it breaks standard emacs compilation-mode, because of
compilation-modedoesn't handle situation when cwd of compile comand is not equal to root of relative path.I suppose this is related to #4788
Tested with
Also I attach simple workspace project to make problem clear.
1.zip