Skip to content

internal: Clarify error messages when proc-macro-srv changes working directory#21804

Merged
ChayimFriedman2 merged 1 commit intorust-lang:masterfrom
Wilfred:improve_proc_macro_srv_messages
Mar 12, 2026
Merged

internal: Clarify error messages when proc-macro-srv changes working directory#21804
ChayimFriedman2 merged 1 commit intorust-lang:masterfrom
Wilfred:improve_proc_macro_srv_messages

Conversation

@Wilfred
Copy link
Contributor

@Wilfred Wilfred commented Mar 12, 2026

I'm investigating issues where users see a load of logs of the form:

Failed to set the current working dir to /redacted/path. Error: Os { code: 2, kind: NotFound, message: "No such file or directory" }

This is tricky to debug because there's two different code paths that write exactly the same error message. Ensure they're unique.

…tory

I'm investigating issues where users see a load of logs of the form:

```
Failed to set the current working dir to /redacted/path. Error: Os { code: 2, kind: NotFound, message: "No such file or directory" }
```

This is tricky to debug because there's two different code paths that
write exactly the same error message. Ensure they're unique.
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 12, 2026
@ChayimFriedman2 ChayimFriedman2 added this pull request to the merge queue Mar 12, 2026
Merged via the queue into rust-lang:master with commit 6254616 Mar 12, 2026
17 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 12, 2026
@lnicola lnicola changed the title fix: Clarify error messages when proc-macro-srv changes working directory internal: Clarify error messages when proc-macro-srv changes working directory Mar 12, 2026
@Wilfred Wilfred deleted the improve_proc_macro_srv_messages branch March 12, 2026 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants