Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Error running with Emacs lsp-mode on M1 macOS #42

@stardiviner

Description

@stardiviner

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions