lua-lsp icon indicating copy to clipboard operation
lua-lsp copied to clipboard

Error running with Emacs lsp-mode on M1 macOS

Open stardiviner opened this issue 4 years ago • 0 comments

Here is the error output:

LSP :: Connected to [lsp-lua-lsp:83564].
LSP :: Error from the Language Server: .../stardiviner/.luarocks/share/lua/5.3/lua-lsp/methods.lua:703: attempt to get length of a nil value (field 'scopes')
stack traceback:
	.../stardiviner/.luarocks/share/lua/5.3/lua-lsp/methods.lua:703: in function 'lua-lsp.methods.textDocument/documentSymbol'
	/Users/stardiviner/.luarocks/share/lua/5.3/lua-lsp/loop.lua:57: in function </Users/stardiviner/.luarocks/share/lua/5.3/lua-lsp/loop.lua:56>
	[C]: in function 'xpcall'
	/Users/stardiviner/.luarocks/share/lua/5.3/lua-lsp/loop.lua:56: in function 'lua-lsp.loop'
	...uarocks/lib/luarocks/rocks-5.3/lua-lsp/scm-5/bin/lua-lsp:3: in main chunk
	[C]: in ? (Internal Error)
LSP :: Error from the Language Server: .../stardiviner/.luarocks/share/lua/5.3/lua-lsp/methods.lua:703: attempt to get length of a nil value (field 'scopes')

I use Homebrew installed Lua 5.3

  • macOS version: Big Sur
  • Lua version: 5.3, 5.4 (installed with Homebrew)

stardiviner avatar Aug 11 '21 10:08 stardiviner