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

Auto open throws nil self error #7

Closed
akinsho opened this issue Apr 23, 2021 · 1 comment · Fixed by #244
Closed

Auto open throws nil self error #7

akinsho opened this issue Apr 23, 2021 · 1 comment · Fixed by #244

Comments

@akinsho
Copy link

akinsho commented Apr 23, 2021

Hi, thanks for your work on this plugin 🚀 , it's very swanky which I'm a big fan of.

I just hit an issue I thought I'd mention. When setting auto open to true I see the following error

executing vim.schedule lua callback: /usr/share/nvim/runtime/lua/vim/lsp/diagnostic.lua:1078: Vim(lua):E5108: Error executing lua .../pack/packer/start/lsp-trouble.nvim
/lua/trouble/view.lua:230: attempt to index local 'self' (a nil value)

LspInfo shows

Configured servers: graphql, lua, diagnosticls, vim
Neovim logs at: /home/akin/.cache/nvim/lsp.log

2 client(s) attached to this buffer: diagnosticls, lua

  Client: diagnosticls (id 1)
  	root:      /home/akin/.dotfiles/.config/nvim/lua/as/plugins
  	filetypes: yaml, json, html, css, markdown, lua, graphql
  	cmd:       /home/akin/.local/share/nvim/lspinstall/diagnosticls/./node_modules/.bin/diagnostic-languageserver --stdio
  	


  Client: lua (id 2)
  	root:      /home/akin/.dotfiles
  	filetypes: lua
  	cmd:       /home/akin/.local/share/nvim/lspinstall/lua/./sumneko-lua-language-server
  	


3 active client(s): 

  Client: diagnosticls (id 1)
  	root:      /home/akin/.dotfiles/.config/nvim/lua/as/plugins
  	filetypes: yaml, json, html, css, markdown, lua, graphql
  	cmd:       /home/akin/.local/share/nvim/lspinstall/diagnosticls/./node_modules/.bin/diagnostic-languageserver --stdio
  	


  Client: lua (id 2)
  	root:      /home/akin/.dotfiles
  	filetypes: lua
  	cmd:       /home/akin/.local/share/nvim/lspinstall/lua/./sumneko-lua-language-server
  	


  Client: diagnosticls (id 3)
  	root:      /home/akin/.dotfiles/.config/nvim/lua/as/globals
  	filetypes: yaml, json, html, css, markdown, lua, graphql
  	cmd:       /home/akin/.local/share/nvim/lspinstall/diagnosticls/./node_modules/.bin/diagnostic-languageserver --stdio
  	


Clients that match the filetype lua:
  
  Config: lua
  	cmd:               /home/akin/.local/share/nvim/lspinstall/lua/./sumneko-lua-language-server
  	cmd is executable: True
  	identified root:   /home/akin/.dotfiles
  	custom handlers:   
  
  Config: diagnosticls
  	cmd:               /home/akin/.local/share/nvim/lspinstall/diagnosticls/./node_modules/.bin/diagnostic-languageserver --stdio
  	cmd is executable: True
  	identified root:   /home/akin/.dotfiles/.config/nvim/lua/as
  	custom handlers:   

Lemme know if you need anymore info.

@folke folke closed this as completed in 7cf1aa1 Apr 23, 2021
@folke
Copy link
Owner

folke commented Apr 23, 2021

Should be fixed now. Thank you for reporting!

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

Successfully merging a pull request may close this issue.

2 participants