-
-
Notifications
You must be signed in to change notification settings - Fork 282
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
rustfmt
package tries to load non-existing dylib
#1386
Comments
I'm having the same issue on archlinux with an AMD processor so it might not be related to Apple silicon stuff. Here is my log:
I had to remove the rustfmt Mason package to get formatting to work again. I'm also using NVIM v0.9.1 |
It seems like the release binaries for I'm certainly not aware of rustfmt internals, but I have a feeling the best practice is to install it via |
I'm having the exact same issue, removing rust-fmt from mason things started to work again. My version of rust-fmt was installed via rustup as well... Does mason install a binary? |
Resolved in mason-org/mason-registry#2059 and #1391. |
I've searched open issues for similar requests
I've manually reviewed logs to find potential errors
I've recently downloaded the latest plugin version of mason.nvim
Problem description
I'm not entirely sure if this is actually an issue with the Mason package, but this is where my bug hunt ended, so here it is.
Some time recently, the formatting of rust files stopped working, whether it is a manual invocation of
vim.lsp.buf.format
or via an auto group. I've configurednull_ls
to do the formatting, but I also installed therustmft
package via Mason.After some time debugging null_ls, I eventually got this error trace from them
which I also get when I call the binary directly
I then uninstalled the Mason
rustfmt
package (rustfmt was in my PATH via other means anyways) and with that, formatting works again.I am on an Apple silicon mac, and the log indicated that a x86 binary of rustfmt is being installed/used by Mason. I would guess that there is some situation where running this binary on aarch64 doesn't work, which means it could very well be a
rustfmt
issue and nothing related to Mason. Also the rustfmt binary from the rustup toolchain is an aarch64 binary:The Rosetta translation layer is installed and working otherwise, so maybe for some reason that particular binary is not actually working properly under Rosetta and Mason could try to install the one with the correct architecture instead?
Anyways, formatting now works by uninstalling the formatter package 🙃
Expected behavior
rustfmt
to not failSteps to reproduce
Affected packages
rustfmt
Neovim version (>= 0.7)
NVIM v0.9.1
Build type: Release
LuaJIT 2.1.0-beta3
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.9.1/share/nvim"
Run :checkhealth for more info
Operating system/version
Darwin River.fritz.box 22.5.0 Darwin Kernel Version 22.5.0: Mon Apr 24 20:52:24 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T6000 arm64
Healthcheck
Screenshots or recordings
No response
The text was updated successfully, but these errors were encountered: