SuperBo / lsp-ai.nvim

LSP-AI plugin for Neovim
MIT License
13 stars 2 forks source link

fail to start due to some errors #4

Open 4t8dd opened 1 month ago

4t8dd commented 1 month ago

error:

Warning: Failed searching manifest: Failed downloading https://nvim-neorocks.github.io/rocks-binaries/dev/manifest-5.1 - failed downloading https://nvim-neorocks.github.io/rocks-binaries/dev/manifest-5.1

        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.
        Failed installing lsp-ai.nvim with `luarocks`.

        --------------------------------------------------------------------------------

        Trying to build from source.
        Missing dependencies for lsp-ai.nvim scm-1:
           nvim-lspconfig >= 0.1.6 (not installed)

        lsp-ai.nvim scm-1 depends on lua >= 5.1 (5.1-1 provided by VM: success)
        lsp-ai.nvim scm-1 depends on nvim-lspconfig >= 0.1.6 (not installed)
        Installing https://luarocks.org/nvim-lspconfig-0.1.8-1.src.rock

        nvim-lspconfig 0.1.8-1 depends on lua >= 5.1 (5.1-1 provided by VM: success)
        No existing manifest. Attempting to rebuild...

Looks like lua version is hardcoded to 5.1. But I use 5.4. And this link :https://nvim-neorocks.github.io/rocks-binaries/dev/manifest-5.1 is a 404 page.

Looks like you are using luarocks, a package manager. what benifits it brings?

nickdedekind commented 1 month ago

It does try build with lua 5.4 but I’ve found the failure is not actually related to lua, but that the .rockspec file refers to the ‘doc’ folder in the copy section which doesn’t exist. Removing this line (or creating the folder) sorts the build. You can do it manually from the downloaded package.

SuperBo commented 1 month ago

acknowledged, will add empty doc dir. thank @nickdedekind

https://github.com/SuperBo/lsp-ai.nvim/commit/165ce9757c75919ffac2a509c842562255516eb0 will fix problem.