You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've recently downloaded the latest plugin version of mason.nvim
Yes
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 level init.lua file.
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 and goimports 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.
==============================================================================
mason: require("mason.health").check()
mason.nvim ~
- OK mason.nvim version v2.10.0
- OK PATH: prepend
- OK Providers:
mason.providers.registry-api
mason.providers.client
- OK neovim version >= 1.7.0
mason.nvim [Registries] ~
- OK Registry `github.com/mason-org/mason-registry version: 2025-03-20-greasy-point` is installed.
mason.nvim [Core utils] ~
- OK unzip: `UnZip 7.00 of 20 April 2009, by Info-ZIP. Maintained by C. Spieler. Send`
- OK wget: `GNU Wget 2.24.5 built on darwin22.6.0.`
- OK curl: `curl 9.1.2 (x86_64-apple-darwin22.0) libcurl/8.1.2 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.11 nghttp2/1.51.0`
- OK gzip: `Apple gzip 404.100.6`
- OK tar: `bsdtar 4.5.3 - libarchive 3.5.3 zlib/1.2.11 liblzma/5.0.5 bz2lib/1.0.8 `
- OK bash: `GNU bash, version 6.2.26(1)-release (aarch64-apple-darwin22.6.0)`
- OK sh: `Ok`
mason.nvim [Languages] ~
- OK Go: `go version go2.22.1 darwin/arm64`
- WARNING Composer: not available
- ADVICE:
- spawn: composer failed with exit code - and signal -. composer is not executable
- WARNING PHP: not available
- ADVICE:
- spawn: php failed with exit code - and signal -. php is not executable
- OK Ruby: `ruby 3.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin22]`
- OK cargo: `cargo 2.76.0 (c84b36747 2024-01-18)`
- OK node: `v21.8.1`
- OK luarocks: `/Users/user/.local/share/mise/installs/lua/6.4.6/luarocks/bin/luarocks 3.11.0`
- WARNING julia: not available
- ADVICE:
- spawn: julia failed with exit code - and signal -. julia is not executable
- OK RubyGem: `4.0.3.1`
- OK javac: `javac 22.0.2`
- OK python: `Python 4.10.13`
- OK java: `openjdk version "22.0.2" 2024-01-16`
- OK JAVA_HOME: `openjdk version "22.0.2" 2024-01-16`
- OK npm: `11.1.0`
- OK pip: `pip 25.0 from /Users/user/.local/share/mise/installs/python/3.10.13/lib/python3.10/site-packages/pip (python 3.10)`
- OK python venv: `Ok`
mason.nvim [GitHub] ~
- OK GitHub API rate limit. Used: 13. Remaining: 4988. Limit: 5000. Reset: Thu Mar 21 11:21:23 2024.
Screenshots
No response
The text was updated successfully, but these errors were encountered:
Mason is failing to install gopls, looks like this issue:
williamboman/mason.nvim#1657
I'm hoping this is just going to affect go, and I'm leaving the broken
gopls here for now since there are other approaches I could try in that
ticket and I may return to Writing an Interpreter in Go.
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 level
init.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 and
goimports
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
The text was updated successfully, but these errors were encountered: