jubnzv/virtual-types.nvim

module 'virtualtypes' not found

TornaxO7 opened this issue · 3 comments

Hello, I have the following packer setting:

    use {
        "neovim/nvim-lspconfig",
        opt = true,
        cmd = "LspStart",
        requires = {
            {"folke/lsp-colors.nvim"},
            {"jubnzv/virtual-types.nvim"},
            {"simrat39/rust-tools.nvim"},
            {"gfanto/fzf-lsp.nvim"},
            {"folke/lsp-colors.nvim"},
            {"j-hui/fidget.nvim", config = function() require("fidget_settings.settings") end},
            {
                "https://git.sr.ht/~whynothugo/lsp_lines.nvim",
                config = function() require("lsp_lines").setup() end
            },
        },
        config = function() require("lsp_settings.settings") end
    }

and this are the first four lines of ~/.config/nvim/lua/lsp_settings/settings.lua:

local nvim_lsp = require('lspconfig')
local cmp_nvim_lsp = require('cmp_nvim_lsp')
local lsp_keybinding_setter = require('lsp_settings.keybindings')
local virtual_types = require('virtualtypes')

I'm getting the following error:

packer.nvim: Error running config for nvim-lspconfig: /home/tornax/.config/nvim/lua/lsp_settings/settings.lua:4: module 'virtualtypes' not found:
	no field package.preload['virtualtypes']
	no file './virtualtypes.lua'
	no file '/usr/share/luajit-2.1.0-beta3/virtualtypes.lua'
	no file '/usr/local/share/lua/5.1/virtualtypes.lua'
	no file '/usr/local/share/lua/5.1/virtualtypes/init.lua'
	no file '/usr/share/lua/5.1/virtualtypes.lua'
	no file '/usr/share/lua/5.1/virtualtypes/init.lua'
	no file '/home/tornax/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/virtualtypes.lua'
	no file '/home/tornax/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/virtualtypes/init.lua'
	no file '/home/tornax/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/virtualtypes.lua'
	no file '/home/tornax/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/virtualtypes/init.lua'
	no file './virtualtypes.so'
	no file '/usr/local/lib/lua/5.1/virtualtypes.so'
	no file '/usr/lib/lua/5.1/virtualtypes.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'
	no file '/home/tornax/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/virtualtypes.so'

what am I doing wrong?

Hi @TornaxO7,

I don't use packer, but the problem is definitely with it.

What does this requires table mean? What does packer do with it?

Could you provide a minimal reproducible example for that case (including instructions on installing packer)?

Hi!

I don't use packer, but the problem is definitely with it.

You're right! I analyzed this a bit and found out that this is actually an issue from packer. I created an issue there as well. Thank you for the fast response :)

Thanks!

If the installation via packer requires additional steps, it would be very helpful, if you contribute to the documentation or to mention them here.