Open oyeyipo opened 5 months ago
Furthermore. took a look at the luacheck repo and the file exists at https://github.com/mpeterv/luacheck/blob/master/bin/luacheck.bat.
In the directory 'bin' at the repo is another file named luacheck.lua
but this is not being pulled in as part of the mason's 'luacheck' package. Only a luacheck
file which contains the content of https://github.com/mpeterv/luacheck/blob/master/bin/luacheck.lua
Now it fails to install it on Linux too:
Installing luarocks package luacheck@1.1.0…
Warning: Failed searching manifest: Failed extracting manifest file: failed extracting /home/powerman/.cache/luarocks/https___luarocks.org/manifest-5.1.zip
Warning: Failed searching manifest: Failed loading manifest for https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/: /home/powerman/.cache/luarocks/https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master/manifest-5.1: No such file or directory
Warning: Failed searching manifest: Failed loading manifest for https://loadk.com/luarocks/: /home/powerman/.cache/luarocks/https___loadk.com_luarocks/manifest-5.1: No such file or directory
Error: No results matching query were found for Lua 5.1.
To check if it is available for other Lua versions, use --check-lua-versions.
I've recently encountered the same problem when I set up but on macOS (Sonoma), with Mason (commit: c5e07b8).
I looked into Mason logs and noticed luarocks
failing to be installed. I soleved my problem by installing missing luarocks via brew:
brew install luarocks
It may not resolve the original problem on Windows machines, although hoping it may guide you to quicker find the solution on your hardware.
I've luarocks-3.11.1 installed by OS (Gentoo linux) package manager, but this doesn't resolve the issue for me.
I've searched open issues for similar requests
I've recently downloaded the latest plugin version of mason.nvim
Problem description
While other packages' installation works, the luacheck package fails due to symbolic linking of a non-existent file at
bin\luacheck.bat
. When I ranMasonInstall --debug luacheck
, I saw that a fileluacheck
is located in thebin
directory which seems like the file Mason was looking for based on its content. The bat file was atC:\Users\<name>\AppData\Local\nvim-data\mason\packages\luacheck\bin
.Expected behavior
Location of the batch file without the '.bat' extension for successful symbolic linking to complete the luacheck installation.
Affected packages
Luacheck
Mason output
Installation log
Neovim version (>= 0.7)
NVIM v0.10.0 Build type: Release LuaJIT 2.1.1713484068 Run "nvim -V1 -v" for more info
Operating system/version
Windows 10
Healthcheck
Screenshots
No response