Describe the bug
Lsp-Lua prevents lsp from starting when java is not present on the system. Removing lsp-lua from lsp-client-packages fixes the error.
To Reproduce
Try on a system where java is not installed. I donot have java on my system.
Expected behavior
Lsp to start when non lua buffers are opened.
Which Language Server did you use
lsp-python, lsp-clangd
OS
Ubuntu 20.04 lts, emacs 28.0.50
Error callstack
Debugger entered--Lisp error: (wrong-type-argument (or string function (and list (satisfies (lambda (l) (seq-every-p (lambda (el) (stringp el)) l))))) (nil "-jar" "/home/samrat/.emacs.d/.cache/lsp/EmmyLua-LS-all.ja...") command)
signal(wrong-type-argument ((or string function (and list (satisfies (lambda (l) (seq-every-p (lambda ... ...) l))))) (nil "-jar" "/home/samrat/.emacs.d/.cache/lsp/EmmyLua-LS-all.ja...") command))
lsp-stdio-connection((nil "-jar" "/home/samrat/.emacs.d/.cache/lsp/EmmyLua-LS-all.ja...") lsp-clients-emmy-lua-test)
byte-code("\301\302\303\304\10\305\"\306\307\310\311\312\313\314\315\316\317\2\206\26\0\320\"\262\1\211\321\322\323\2\2\5#\210\315\266\4\211\262\1&\n!\210\324\325\315\326\327\330..." [lsp-clients-emmy-lua-command lsp-register-client make-lsp-client :new-connection lsp-stdio-connection lsp-clients-emmy-lua-test :major-modes (lua-mode) :server-id emmy-lua :priority -1 :notification-handlers nil make-hash-table :test equal "emmy/progressReport" ignore puthash custom-declare-group lsp-lua-language-server "Lua LSP client, provided by the Lua Language Serve..." :group lsp-mode :version "7.1" :link (url-link "https://github.com/sumneko/lua-language-server") custom-declare-variable lsp-clients-lua-language-server-install-dir funcall function #f(compiled-function () #<bytecode 0x78c9ac6e0f3fc4c>) "Installation directory for Lua Language Server." :risky t :type directory lsp-clients-lua-language-server-bin #f(compiled-function () #<bytecode -0x8c0091fc5dac46f>) "Location of Lua Language Server." file lsp-clients-lua-language-server-main-location #f(compiled-function () #<bytecode 0x1e734a4220cb>) "Location of Lua Language Server main.lua." lsp-clients-lua-language-server-args #f(compiled-function () #<bytecode 0x1e0000112cf5>) "Arguments to run the Lua Language server." (repeat string) ...] 19)
require(lsp-lua nil t)
#f(compiled-function (package) #<bytecode -0x87451c72205cdb9>)(lsp-lua)
mapc(#f(compiled-function (package) #<bytecode -0x87451c72205cdb9>) (ccls lsp-clients lsp-clojure lsp-csharp lsp-css lsp-dart lsp-elm lsp-erlang lsp-eslint lsp-fsharp lsp-gdscript lsp-go lsp-haskell lsp-haxe lsp-intelephense lsp-java lsp-json lsp-lua lsp-metals lsp-perl lsp-pwsh lsp-pyls lsp-python-ms lsp-rust lsp-serenata lsp-solargraph lsp-terraform lsp-verilog lsp-vetur lsp-vhdl lsp-xml lsp-yaml lsp-sqls lsp-svelte))
seq-do(#f(compiled-function (package) #<bytecode -0x87451c72205cdb9>) (ccls lsp-clients lsp-clojure lsp-csharp lsp-css lsp-dart lsp-elm lsp-erlang lsp-eslint lsp-fsharp lsp-gdscript lsp-go lsp-haskell lsp-haxe lsp-intelephense lsp-java lsp-json lsp-lua lsp-metals lsp-perl lsp-pwsh lsp-pyls lsp-python-ms lsp-rust lsp-serenata lsp-solargraph lsp-terraform lsp-verilog lsp-vetur lsp-vhdl lsp-xml lsp-yaml lsp-sqls lsp-svelte))
lsp(nil)
funcall-interactively(lsp nil)
call-interactively(lsp record nil)
command-execute(lsp record)
execute-extended-command(nil "lsp" "lsp")
funcall-interactively(execute-extended-command nil "lsp" "lsp")
call-interactively(execute-extended-command nil nil)
command-execute(execute-extended-command)
Thank you for the report. Sorry about that - apparently maintainers and CI have java.
Most helpful comment
Thank you for the report. Sorry about that - apparently maintainers and CI have java.