-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
x.py build changed how paths are printed => hyperlinks (in e.g. emacs) do not work #47355
Comments
This is of course easy for a veteran to work around by manually opening up the files in question, which is why I suspect no one had filed this issue yet. But its probably really bad for a newcomer, and its an annoyance even for veterans. |
This seems to be due to rust-lang/cargo#4788. |
Yes this is due to the PR @Zoxc linked. We could fix this in rust-lang/rust by moving the |
Drives me crazy. I am currently using |
Just as an update: @alexcrichton wrote:
But from reading the history of PR #47731 it appears that the strategy of moving Cargo.toml up to the root was not workable... |
@pnkfelix are you still running into this issue? Similar errors in rustdoc print relative to the workspace root, is that the behavior you want? If so I think this can be closed.
|
I'm going to close this, I think it's since been fixed. |
At some point in the recent past, something in one or more of our tools has broken so that the paths printed during compilation errors/warnings are not presented relative to the current directory.
E.g., when I am building with current directory
~/Dev/Mozilla/rust-mirborrowck/objdir-dbgopt/
, via the command../x.py build --incremental --keep-stage 0 --stage 1 src/libstd
, I now get output with errors like this:but the provided path,
librustc_mir/borrow_check/mod.rs
is meaningless in the context of my current directory; I need it to either be an absolute path, or a relative path like../src/librustc_mir/borrow_check/mod.rs
The text was updated successfully, but these errors were encountered: