The rustfmt command not found
Version 41.3
Builder looks for rustfmt at ~/.cargo/bin/rustfmt
, which needs to be installed manually, and ignores the one provided by distro package at /usr/bin/rustfmt
.
Output of Selection -> Beautify -> Rustfmt:
Beautifier plugin: command error output:
Traceback (most recent call last):
File "/home/user/.cache/gnome-builder/projects/rust_test/beautifier/7KGNH1.txt", line 26, in <module>
runned_process = subprocess.run(command, capture_output=True, text=True)
File "/usr/lib/python3.10/subprocess.py", line 501, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.10/subprocess.py", line 966, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.10/subprocess.py", line 1842, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: PosixPath('/home/user/.cargo/bin/rustfmt')
Edited by leonidx86