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

config.lspconfig not found #6

Open
Olprog59 opened this issue Jun 27, 2024 · 1 comment
Open

config.lspconfig not found #6

Olprog59 opened this issue Jun 27, 2024 · 1 comment

Comments

@Olprog59
Copy link

Olprog59 commented Jun 27, 2024

Hi, I'm trying your plugin but it's not working,
I'm trying your plugin but it's not working.
I'm getting various errors.
I'm using Lazyvim.

My config :

return {
  "JavaHello/spring-boot.nvim",
  ft = "java",
  dependencies = {
    "mfussenegger/nvim-jdtls", -- or nvim-java, nvim-lspconfig
    "ibhagwan/fzf-lua", -- 可选
  },
}
Failed to run `config` for spring-boot.nvim

~/.config/nvim/lua/plugins/spring-boot.lua:13: module 'config.lspconfig' not found:
	no field package.preload['config.lspconfig']
cache_loader: module config.lspconfig not found
cache_loader_lib: module config.lspconfig not found
	no file './config/lspconfig.lua'
	no file '/usr/local/share/luajit-2.1/config/lspconfig.lua'
	no file '/usr/local/share/lua/5.1/config/lspconfig.lua'
	no file '/usr/local/share/lua/5.1/config/lspconfig/init.lua'
	no file './config/lspconfig.so'
	no file '/usr/local/lib/lua/5.1/config/lspconfig.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'
	no file './config.so'
	no file '/usr/local/lib/lua/5.1/config.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'

# stacktrace:
  - ~/.config/nvim/lua/plugins/spring-boot.lua:13 _in_ **values**
  - /usr/local/Cellar/neovim/0.10.0/share/nvim/runtime/filetype.lua:36
  - /usr/local/Cellar/neovim/0.10.0/share/nvim/runtime/filetype.lua:35
  - vim/_editor.lua:0
  - /neo-tree.nvim/lua/neo-tree/utils/init.lua:741 _in_ **open_file**
  - /neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:733 _in_ **open**
  - /neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:755 _in_ **open_with_cmd**
  - /neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:764 _in_ **open**
  - /neo-tree.nvim/lua/neo-tree/sources/filesystem/commands.lua:184
[Neo-tree ERROR] Error opening file: vim/_editor.lua:0: nvim_exec2()..BufReadPost Autocommands for "*": Vim(append):Error executing lua callback: ...cal/Cellar/neovim/0.10.0/share/nvim/runtime/filetype.lua:35: Error executing lua: ...cal/Cellar/neovim/0.10.0/share/nvim/runtime/filetype.lua:36: nvim_exec2()..BufReadPost Autocommands for "*"..FileType Autocommands for "java": Vim(append):Error executing lua callback: ...am/.local/share/nvim/lazy/nvim-jdtls/lua/jdtls/setup.lua:270: config is required
stack traceback:
	[C]: in function 'assert'
	...am/.local/share/nvim/lazy/nvim-jdtls/lua/jdtls/setup.lua:270: in function 'start_or_attach'
	~/.config/nvim/init.lua:7: in function <~/.config/nvim/init.lua:6>
	[C]: in function 'nvim_cmd'
	...cal/Cellar/neovim/0.10.0/share/nvim/runtime/filetype.lua:36: in function <...cal/Cellar/neovim/0.10.0/share/nvim/runtime/filetype.lua:35>
	[C]: in function 'nvim_buf_call'
	...cal/Cellar/neovim/0.10.0/share/nvim/runtime/filetype.lua:35: in function <...cal/Cellar/neovim/0.10.0/share/nvim/runtime/filetype.lua:10>
	[C]: in function 'nvim_exec2'
	vim/_editor.lua: in function <vim/_editor.lua:0>
	[C]: in function 'pcall'
	...hare/nvim/lazy/neo-tree.nvim/lua/neo-tree/utils/init.lua:741: in function 'open_file'
	...y/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:733: in function 'open'
	...y/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:755: in function 'open_with_cmd'
	...y/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:764: in function 'open'
	...o-tree.nvim/lua/neo-tree/sources/filesystem/commands.lua:184: in function <...o-tree.nvim/lua/neo-tree/sources/filesystem/commands.lua:183>
stack traceback:
	[C]: in function 'nvim_cmd'
	...cal/Cellar/neovim/0.10.0/share/nvim/runtime/filetype.lua:36: in function <...cal/Cellar/neovim/0.10.0/share/nvim/runtime/filetype.lua:35>
	[C]: in function 'nvim_buf_call'
	...cal/Cellar/neovim/0.10.0/share/nvim/runtime/filetype.lua:35: in function <...cal/Cellar/neovim/0.10.0/share/nvim/runtime/filetype.lua:10>
	[C]: in function 'nvim_exec2'
	vim/_editor.lua: in function <vim/_editor.lua:0>
	[C]: in function 'pcall'
	...hare/nvim/lazy/neo-tree.nvim/lua/neo-tree/utils/init.lua:741: in function 'open_file'
	...y/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:733: in function 'open'
	...y/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:755: in function 'open_with_cmd'
	...y/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:764: in function 'open'
	...o-tree.nvim/lua/neo-tree/sources/filesystem/commands.lua:184: in function <...o-tree.nvim/lua/neo-tree/sources/filesystem/commands.lua:183>
stack traceback:
	[C]: in function 'nvim_buf_call'
	...cal/Cellar/neovim/0.10.0/share/nvim/runtime/filetype.lua:35: in function <...cal/Cellar/neovim/0.10.0/share/nvim/runtime/filetype.lua:10>
	[C]: in function 'nvim_exec2'
	vim/_editor.lua: in function <vim/_editor.lua:0>
	[C]: in function 'pcall'
	...hare/nvim/lazy/neo-tree.nvim/lua/neo-tree/utils/init.lua:741: in function 'open_file'
	...y/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:733: in function 'open'
	...y/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:755: in function 'open_with_cmd'
	...y/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:764: in function 'open'
	...o-tree.nvim/lua/neo-tree/sources/filesystem/commands.lua:184: in function <...o-tree.nvim/lua/neo-tree/sources/filesystem/commands.lua:183>
@JavaHello
Copy link
Owner

It seems that the 'config.lspconfig' module cannot be found. Check the configuration here in ~/.config/nvim/lua/plugins/spring-boot.lua:13

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

2 participants