Skip to content

Fix rust_analyzer_proc_macro_srv on Windows by setting PATH in launcher - #4286

Merged
UebelAndre merged 1 commit into
bazelbuild:mainfrom
PJB3005:pjb-26-09-25-fix-rust-analyzer-proc-macro-srv-on-windows-by-setting-path-in-la
Sep 27, 2026
Merged

UebelAndre merged 1 commit into
bazelbuild:mainfrom
PJB3005:pjb-26-09-25-fix-rust-analyzer-proc-macro-srv-on-windows-by-setting-path-in-la

Conversation

@PJB3005

@PJB3005 PJB3005 commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

This effectively resolves ..\..\bin from the target exe, and adds that to PATH, enabling the dlls for rust_analyzer_proc_macro_srv to be located.

I'm not sure this is the best way to go about this, but I'm committing it in case it's useful for somebody else or a maintainer has a better idea.

Fixes #4285

@UebelAndre UebelAndre left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

This effectively resolves "..\..\bin" from the target exe, and adds that to PATH, enabling the dlls for rust_analyzer_proc_macro_srv to be located.

I'm not sure this is the best way to go about this, but I'm committing it in case it's useful for somebody else or a maintainer has a better idea.

Fixes bazelbuild#4285
@PJB3005
PJB3005 force-pushed the pjb-26-09-25-fix-rust-analyzer-proc-macro-srv-on-windows-by-setting-path-in-la branch from ea950a4 to c732365 Compare September 25, 2026 20:50
@UebelAndre
UebelAndre added this pull request to the merge queue Sep 27, 2026
Merged via the queue into bazelbuild:main with commit c708b23 Sep 27, 2026
3 checks passed
@PJB3005
PJB3005 deleted the pjb-26-09-25-fix-rust-analyzer-proc-macro-srv-on-windows-by-setting-path-in-la branch September 27, 2026 18:13
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.

rust_analyzer_proc_macro_srv.exe fails to run on Windows due to missing dlls and no PATH

2 participants