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

Julia LSP Wrong type argument

Open rishisubramanian opened this issue 5 years ago • 1 comments

I know other people have had this error, but looking at those issues didn't help. When I try using LSP with Julia mode and Company, I get the error Company: backend company-lsp error "Wrong type argument: lsp--workspace, nil" with args (prefix).

Here's my LSP config:

(use-package lsp-mode
  :defer t
  :ensure t)

(require 'lsp-mode)

(lsp-define-stdio-client lsp-julia
                         "julia"
                         (lambda () default-directory)
                         '("julia" "--startup-file=no --history-file=no -e using LanguageServer; using SymbolServer; server = LanguageServer.LanguageServerInstance(stdin, stdout, false, \"/home/rishi/.julia/environments/v1.0\", \"\", Dict()); server.runlinter = true; run(server);"))

(add-hook 'julia-mode-hook 'lsp-mode)

(use-package company-lsp
  :after company lsp-mode
  :defer t
  :ensure t
  :init
  (add-to-list 'company-backends 'company-lsp))

rishisubramanian avatar Nov 23 '18 08:11 rishisubramanian

Hi, can you turn on debug-on-error by running M-x set-variable <RET> debug-on-error <RET> t <RET>, trigger the error and paste the backtrace here? Thanks

tigersoldier avatar Dec 03 '18 09:12 tigersoldier