Closed NullVoxPopuli closed 1 year ago
Hello! So glint-language-server
is not a valid package name, it's glint
. The Mason log seem to suggest that glint
was successfully installed, is it not? The :Mason
output you provided does not provide any relevant information - if the installation still fails the reason why it fails should be visible in this window.
Is this what you're looking for?
mason.nvim
press g? for help
https://github.com/williamboman/mason.nvim
(1) All (2) LSP (3) DAP (4) Linter (5) Formatter
Language Filter: press <C-f> to apply filter
Failed
◍ glint
▼ Displaying full log
npm WARN config global-style This option has been deprecated in favor of `--install-strategy=shallow`
Wrote to /home/nullvoxpopuli/.local/share/nvim/mason/.packages/glint/package.json:
{
"name": "@mason/glint",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC"
}
Initialized npm root
npm WARN config global-style This option has been deprecated in favor of `--install-strategy=shallow`
added 48 packages, and audited 49 packages in 859ms
6 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
...ker/start/mason.nvim/lua/mason-core/installer/linker.lua:43: bin/glint-language-server is already linked.
?
I could not find where glint-language-server was coming from / configured :thinking:
So in the PR you created the package was called glint-language-server
, this was later renamed to just glint
. You had probably already installed the old glint-language-server
locally before the rename, so you'll need to clean up these artifacts manually. It should be enough to simply unlink the bin/glint-language-server
file and then remove the packages/glint-language-server
directory if it exists. These files & directories exist within Mason's install dir, which defaults to ~/.local/share/nvim/mason
.
Perfect, so I just had to delete that folder and re-install everything. woohoo!
thanks
Proof of success:
I've searched open issues for similar requests
Yes
I've recently downloaded the latest plugin version of mason.nvim
Problem description
<mason log> was originally here, but I saw that there was a required field explicitly asking for the log
I have
glint
set up as an "ensure installed" thing, which results in this upon opening neovim:The config is this:
the automatic_installation thing is a bit :shrug:
I know I was involved in adding glint to the mason stuff, but I've totally forgotten everything, how to check stuff, etc. The language server comes from
@glint/core
, which we probably don't want to install by default, and instead want to default to the@glint/core
present in the nearest package.json for a project (and not above that).Expected behavior
no error
Affected packages
mason, mason-config
Mason output
`:Mason`
``` mason.nvim press g? for help https://github.com/williamboman/mason.nvim (1) All (2) LSP (3) DAP (4) Linter (5) Formatter Language Filter: pressInstallation log
`:MasonLog` shows this
``` [INFO Sun 23 Oct 2022 11:48:42 AM EDT] ...acker/start/mason.nvim/lua/mason-core/installer/init.lua:118: Executing installer for Package(name=glint-language-server) [INFO Sun 23 Oct 2022 11:49:29 AM EDT] ...acker/start/mason.nvim/lua/mason-core/installer/init.lua:118: Executing installer for Package(name=glint-language-server) [INFO Sun 23 Oct 2022 11:49:40 AM EDT] ...acker/start/mason.nvim/lua/mason-core/installer/init.lua:118: Executing installer for Package(name=glint-language-server) [INFO Sun 23 Oct 2022 11:49:45 AM EDT] ...acker/start/mason.nvim/lua/mason-core/installer/init.lua:150: Installation succeeded for Package(name=glint-language-server) [ERROR Sun 23 Oct 2022 12:44:03 PM EDT] ...pack/packer/start/mason.nvim/lua/mason-registry/init.lua:67: bad argument #1 to '?' (string expected, got nil) [ERROR Sun 23 Oct 2022 12:44:03 PM EDT] ...pack/packer/start/mason.nvim/lua/mason-registry/init.lua:67: bad argument #1 to '?' (string expected, got nil) [ERROR Sun 23 Oct 2022 12:44:38 PM EDT] ...pack/packer/start/mason.nvim/lua/mason-registry/init.lua:67: bad argument #1 to '?' (string expected, got nil) [ERROR Sun 23 Oct 2022 12:44:38 PM EDT] ...pack/packer/start/mason.nvim/lua/mason-registry/init.lua:67: bad argument #1 to '?' (string expected, got nil) [ERROR Sun 23 Oct 2022 12:44:42 PM EDT] ...pack/packer/start/mason.nvim/lua/mason-registry/init.lua:67: bad argument #1 to '?' (string expected, got nil) [ERROR Sun 23 Oct 2022 12:44:42 PM EDT] ...pack/packer/start/mason.nvim/lua/mason-registry/init.lua:67: bad argument #1 to '?' (string expected, got nil) [ERROR Sun 23 Oct 2022 12:44:53 PM EDT] ...pack/packer/start/mason.nvim/lua/mason-registry/init.lua:67: bad argument #1 to '?' (string expected, got nil) [ERROR Sun 23 Oct 2022 12:44:53 PM EDT] ...pack/packer/start/mason.nvim/lua/mason-registry/init.lua:67: bad argument #1 to '?' (string expected, got nil) [ERROR Sun 23 Oct 2022 12:46:46 PM EDT] ...pack/packer/start/mason.nvim/lua/mason-registry/init.lua:67: module 'mason-registry.glint-language-server' not found: no field package.preload['mason-registry.glint-language-server'] no file './mason-registry/glint-language-server.lua' no file '/__w/neovim/neovim/.deps/usr/share/luajit-2.1.0-beta3/mason-registry/glint-language-server.lua' no file '/usr/local/share/lua/5.1/mason-registry/glint-language-server.lua' no file '/usr/local/share/lua/5.1/mason-registry/glint-language-server/init.lua' no file '/__w/neovim/neovim/.deps/usr/share/lua/5.1/mason-registry/glint-language-server.lua' no file '/__w/neovim/neovim/.deps/usr/share/lua/5.1/mason-registry/glint-language-server/init.lua' no file './mason-registry/glint-language-server.so' no file '/usr/local/lib/lua/5.1/mason-registry/glint-language-server.so' no file '/__w/neovim/neovim/.deps/usr/lib/lua/5.1/mason-registry/glint-language-server.so' no file '/usr/local/lib/lua/5.1/loadall.so' no file './mason-registry.so' no file '/usr/local/lib/lua/5.1/mason-registry.so' no file '/__w/neovim/neovim/.deps/usr/lib/lua/5.1/mason-registry.so' no file '/usr/local/lib/lua/5.1/loadall.so' [ERROR Sun 23 Oct 2022 12:46:46 PM EDT] ...pack/packer/start/mason.nvim/lua/mason-registry/init.lua:67: module 'mason-registry.glint-language-server' not found: no field package.preload['mason-registry.glint-language-server'] no file './mason-registry/glint-language-server.lua' no file '/__w/neovim/neovim/.deps/usr/share/luajit-2.1.0-beta3/mason-registry/glint-language-server.lua' no file '/usr/local/share/lua/5.1/mason-registry/glint-language-server.lua' no file '/usr/local/share/lua/5.1/mason-registry/glint-language-server/init.lua' no file '/__w/neovim/neovim/.deps/usr/share/lua/5.1/mason-registry/glint-language-server.lua' no file '/__w/neovim/neovim/.deps/usr/share/lua/5.1/mason-registry/glint-language-server/init.lua' no file './mason-registry/glint-language-server.so' no file '/usr/local/lib/lua/5.1/mason-registry/glint-language-server.so' no file '/__w/neovim/neovim/.deps/usr/lib/lua/5.1/mason-registry/glint-language-server.so' no file '/usr/local/lib/lua/5.1/loadall.so' no file './mason-registry.so' no file '/usr/local/lib/lua/5.1/mason-registry.so' no file '/__w/neovim/neovim/.deps/usr/lib/lua/5.1/mason-registry.so' no file '/usr/local/lib/lua/5.1/loadall.so'} ```Neovim version (>= 0.7)
Operating system/version
Linux hephaestus 5.15.0-58-generic #64-Ubuntu SMP Thu Jan 5 11:43:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Healthcheck
Screenshots
No response