Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mason installation in neovim does not seem to be working #39

Open
kprimice opened this issue Jan 2, 2025 · 0 comments
Open

mason installation in neovim does not seem to be working #39

kprimice opened this issue Jan 2, 2025 · 0 comments

Comments

@kprimice
Copy link

kprimice commented Jan 2, 2025

Here are the logs after a :MasonInstall teal-language-server

        Missing dependencies for teal-language-server dev-1:
           dkjson (not installed)
           luafilesystem (not installed)
           cyan (not installed)

        teal-language-server dev-1 depends on dkjson (not installed)
        Installing https://luarocks.org/dkjson-2.8-1.src.rock

        dkjson 2.8-1 depends on lua >= 5.1, < 5.5 (5.4-1 provided by VM: success)
        No existing manifest. Attempting to rebuild...
        Cloning into 'luafilesystem'...
        dkjson 2.8-1 is now installed in /home/kevin/.local/share/nvim/mason/packages/teal-language-server (license: MIT/X11)

        teal-language-server dev-1 depends on luafilesystem (not installed)
        Installing https://luarocks.org/dev/luafilesystem-scm-1.rockspec

        luafilesystem scm-1 depends on lua >= 5.1 (5.4-1 provided by VM: success)
        gcc -O2 -fPIC -I/usr/include -c src/lfs.c -o src/lfs.o
        gcc  -shared -o /tmp/luarocks_build-luafilesystem-scm-1-662737/lfs.so src/lfs.o
        Cloning into 'cyan'...
        luafilesystem scm-1 is now installed in /home/kevin/.local/share/nvim/mason/packages/teal-language-server (license: MIT/X11)

        teal-language-server dev-1 depends on cyan (not installed)
        Installing https://luarocks.org/dev/cyan-dev-1.rockspec
        Cloning into 'argparse'...
        Missing dependencies for cyan dev-1:
           argparse (not installed)
           tl ~> 0.15 (not installed)
           luasystem >= 0.3.0 (not installed)

        cyan dev-1 depends on argparse (not installed)
        Installing https://luarocks.org/dev/argparse-scm-2.rockspec

        argparse scm-2 depends on lua >= 5.1, < 5.5 (5.4-1 provided by VM: success)
        argparse scm-2 is now installed in /home/kevin/.local/share/nvim/mason/packages/teal-language-server (license: MIT)

        cyan dev-1 depends on luafilesystem (scm-1 installed: success)
        cyan dev-1 depends on tl ~> 0.15 (not installed)
        Installing https://luarocks.org/tl-0.15.3-1.src.rock
        Missing dependencies for tl 0.15.3-1:
           compat53 >= 0.11 (not installed)

        tl 0.15.3-1 depends on compat53 >= 0.11 (not installed)
        Installing https://luarocks.org/dev/compat53-scm-1.rockspec

        compat53 scm-1 depends on lua >= 5.1, < 5.5 (5.4-1 provided by VM: success)
        gcc -O2 -fPIC -I/usr/include -c lstrlib.c -o lstrlib.o
        gcc  -shared -o /tmp/luarocks_build-compat53-scm-1-3433404/compat53/string.so lstrlib.o
        gcc -O2 -fPIC -I/usr/include -c liolib.c -o liolib.o
        gcc  -shared -o /tmp/luarocks_build-compat53-scm-1-3433404/compat53/io.so liolib.o
        gcc -O2 -fPIC -I/usr/include -c ltablib.c -o ltablib.o
        gcc  -shared -o /tmp/luarocks_build-compat53-scm-1-3433404/compat53/table.so ltablib.o
        gcc -O2 -fPIC -I/usr/include -c lutf8lib.c -o lutf8lib.o
        gcc  -shared -o /tmp/luarocks_build-compat53-scm-1-3433404/compat53/utf8.so lutf8lib.o
        compat53 scm-1 is now installed in /home/kevin/.local/share/nvim/mason/packages/teal-language-server (license: MIT)

        tl 0.15.3-1 depends on argparse (scm-2 installed: success)
        tl 0.15.3-1 depends on luafilesystem (scm-1 installed: success)
        Cloning into 'luasystem'...
        tl 0.15.3-1 is now installed in /home/kevin/.local/share/nvim/mason/packages/teal-language-server (license: MIT)

        cyan dev-1 depends on luasystem >= 0.3.0 (not installed)
        Installing https://luarocks.org/dev/luasystem-scm-0.rockspec

        luasystem scm-0 depends on lua >= 5.1 (5.4-1 provided by VM: success)
        gcc -O2 -fPIC -I/usr/include -c src/core.c -o src/core.o -I/usr/include
        gcc -O2 -fPIC -I/usr/include -c src/compat.c -o src/compat.o -I/usr/include
        gcc -O2 -fPIC -I/usr/include -c src/time.c -o src/time.o -I/usr/include
        gcc -O2 -fPIC -I/usr/include -c src/environment.c -o src/environment.o -I/usr/include
        gcc -O2 -fPIC -I/usr/include -c src/random.c -o src/random.o -I/usr/include
        gcc -O2 -fPIC -I/usr/include -c src/term.c -o src/term.o -I/usr/include
        gcc -O2 -fPIC -I/usr/include -c src/bitflags.c -o src/bitflags.o -I/usr/include
        gcc -O2 -fPIC -I/usr/include -c src/wcwidth.c -o src/wcwidth.o -I/usr/include
        gcc  -shared -o /tmp/luarocks_build-luasystem-scm-0-1049039/system/core.so src/core.o src/compat.o src/time.o src/environment.o src/random.o src/term.o src/bitflags.o src/wcwidth.o -L/usr/lib64 -Wl,-rpath,/usr/lib64 -lrt
        luasystem scm-0 is now installed in /home/kevin/.local/share/nvim/mason/packages/teal-language-server (license: MIT <http://opensource.org/licenses/MIT>)


        Error: Build error: Failed installing build/tealls/document.lua in /home/kevin/.local/share/nvim/mason/packages/teal-language-server/lib/luarocks/rocks-5.4/teal-language-server/dev-1/lua/tealls/document.lua: build/tealls/document.lua: No such file or directory
        cyan dev-1 is now installed in /home/kevin/.local/share/nvim/mason/packages/teal-language-server (license: MIT)

        spawn: luarocks failed with exit code 1 and signal 0. 

My config:

return {
  {
    "neovim/nvim-lspconfig",
    opts = {
      servers = {
        teal_ls = {
          cmd = { "teal-language-server" },
          filetypes = { "teal" },
          root_dir = require("lspconfig.util").root_pattern("tlconfig.lua", ".git"),
          settings = {
            verbose = false,
          },
        },
      },
    },
  },
  {
    "nvim-treesitter/nvim-treesitter",
    opts = {
      ensure_installed = {
        "bash",
        "html",
        "javascript",
        "json",
        "lua",
        "teal",
        "markdown",
        "markdown_inline",
        "python",
        "query",
        "regex",
        "tsx",
        "typescript",
        "vim",
        "yaml",
      },
    },
  },
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant