Closed antoineco closed 3 months ago
I'm confused as to what is causing jq
to be involved at all here.
After the lines below, the value of yq
is the string "/Users/acotten/.nix-profile/bin/yq"
:
https://github.com/williamboman/mason.nvim/blob/e2f7f9044ec30067bc11800a9e266664b88cda22/lua/mason-registry/sources/file.lua#L76-L79
I can confirm that the executable at that path is indeed yq
:
% /Users/acotten/.nix-profile/bin/yq --version
yq 3.4.3
Further inspection of mason-core.spawn
inside a.wait()
also shows the right command and args:
https://github.com/williamboman/mason.nvim/blob/e2f7f9044ec30067bc11800a9e266664b88cda22/lua/mason-core/spawn.lua#L88-L89
{ "/Users/acotten/.nix-profile/bin/yq", {
args = { "-I0", "-o", "json" },
stdio_sink = {
stderr = <function 1>,
stdout = <function 2>
}
}, <function 3> }%
Now I see what's going on.
% yq --help
usage: yq [options] <jq filter> [input file...]
yq: Command-line YAML processor - jq wrapper for YAML documents
yq transcodes YAML documents to JSON and passes them to jq.
See https://github.com/kislyuk/yq for more information.
There are two yq programs:
I have the wrong one installed.
I've searched open issues for similar requests
I've recently downloaded the latest plugin version of mason.nvim
Problem description
While following the instructions at mason-registry/CONTRIBUTING.md to add a new package to Mason's registry, I ran into the following error:
Output of
:MasonLog
:Neovim error:
Expected behavior
The local registry installation succeeds.
Steps to reproduce
Install
jq
1.7.1Clone
https://github.com/mason-org/mason-registry.git
Set up mason.nvim to source its registry from the clone's directory, as documented in mason-registry/CONTRIBUTING.md:
Neovim version (>= 0.7)
Operating system/version
Darwin Kernel Version 23.6.0
Healthcheck output
Screenshots
No response