Open BLaurent opened 8 months ago
This issue only occurs when I'm using go from mise and have messed with vim.env.path
vim.env.PATH = vim.env.HOME .. "/.local/share/mise/shims:" .. vim.env.PATH
If I remove the line above, everything works fine again.
Yet, this is the recommend way to integrate mise with NeoVim: neovim with mise. Did you check that you are using binaries from mise and not ones that are installed on your machine ?
pretty sure it is go installed by mise. I dont install language runtimes anymore since I use mise.
Running into a similar issue here, also using recommended mise shims for neovim, the only difference being that I am trying to get gopls up and running. Fresh WSL install, go is only installed through mise. Ontop of that, Go is available if I run a healthcheck.
Having this issue as well. Also using mise
. Interestingly enough, this only happens on my macOS, but not my Arch Linux... they both have the same neovim and mise setup, as I share dotfiles between the two machines.
+1, I have this issue with gopls. Running !which go
shows nvim using the mise shim as expected, and no healthcheck problems, but the install fails with cannot-link error. M3 mac, Sonoma 14.6.1 (23G93), latest install of Mason via lazy, Nvim version info:
NVIM v0.10.1 Build type: Release LuaJIT 2.1.1724512491
Removing the shims from path, installing, then putting the shims back in path does seem to result in everything working as expected 乁_(ツ)_ㄏ
I've searched open issues for similar requests
I've recently downloaded the latest plugin version of mason.nvim
Problem description
Hi,
I am not able to install binaries when using shims.
I have mise installed to switch between different versions of golang. I have put :
vim.env.PATH = vim.env.HOME .. "/.local/share/mise/shims:" .. vim.env.PATH
in my top levelinit.lua
file.I have in my
.zprofile
My nvim version is :
When I do :
MasonInstall goimports
I get the following error in MasonLog:
Package(name=goimports) error='Tried to link bin "goimports" to non-existent target "goimports".'
I've changed
lua/mason-core/installer/managers/golang.lua
to add-x -a
to the go install call. The install goes fine andgoimports
is added but I get the error above at the end.I tried another approach as well, I've used the file
~/.default-go-packages
used by mise to auto install go packages when a new golang version is installed. I've added :So in the shims directory :
~/.local/share/mise/shims
I have goimports in this directory but still I have the previous error as well.What is the linker doing to check if file exist and to do the link. In my case the targeted file is a hardlink. I guess it's not detected as an existing file ?
Thanks in advance
Expected behavior
During the MasonInstall I was expected Mason to detect file in shims and to link binary present in the shims directory.
Affected packages
goimports, delve
Mason output
No response
Installation log
Neovim version (>= 0.7)
NVIM v0.10.0-dev-2597+gd326e0486 Build type: RelWithDebInfo LuaJIT 2.1.1710088188
Operating system/version
Darwin
Healthcheck
Screenshots
No response