From 17b0db36c8a4ca8555e720e914e0f42f66425780 Mon Sep 17 00:00:00 2001 From: Noah Lev Date: Thu, 7 Apr 2022 14:33:36 -0700 Subject: [PATCH] r-a: Use `python3 x.py` instead of `./x.py` This circumvents an issue on newer OSes (including now macOS Monterery): rust-lang/rust#71818 Thanks to jyn514 for suggesting this fix. --- src/building/suggested.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/building/suggested.md b/src/building/suggested.md index 14e0410de..a6ff65db3 100644 --- a/src/building/suggested.md +++ b/src/building/suggested.md @@ -22,12 +22,13 @@ You can also install the hook as a step of running `./x.py setup`! a file. By default, `rust-analyzer` runs the `cargo check` and `rustfmt` commands, but you can override these commands to use more adapted versions of these tools when hacking on `rustc`. For example, for Visual Studio Code, -you can write: +you can write: ```JSON { "rust-analyzer.checkOnSave.overrideCommand": [ - "./x.py", + "python3", + "x.py", "check", "--json-output" ],