gdkrmr / lsp-julia

MIT License
70 stars 19 forks source link

[noob] can you give me the completed configure code ? #47

Closed nesteiner closed 2 years ago

nesteiner commented 3 years ago

I don't know which part is wrong,

  1. I install the LanguageServer from REPL
  2. write the configure code in init.el

after evaluate them

(use-package lsp-julia
  :config
  (setq lsp-julia-default-environment "~/.julia/environments/v1.5"))

I was told that,

Error (use-package): Cannot load lsp-julia

I have been confused now, can you give me some help.

gdkrmr commented 3 years ago

what version of julia do you have installed?

nesteiner commented 3 years ago

1.5

gdkrmr commented 3 years ago

Not sure, have you tried reinstalling?

fvanmaele commented 2 years ago

I can't get the instructions to work either. I've installed lsp-julia from MELPA, compiled a languageserver.so with PackageCompiler:

julia> create_sysimage(:LanguageServer, sysimage_path="/home/fvanmaele/.julia/languageserver.so")
[ Info: PackageCompiler: creating system image object file, this might take a while...

My ~/.emacs


(setq lsp-julia-package-dir nil)
(setq lsp-julia-flags `("-J/home/fvanmaele/.julia/languageserver.so"))
(require 'lsp-julia)

Enabling lsp-mode in a julia-mode buffer only gives Julia LSP[Disconnected]. I use Julia version 1.7.

edit: I solved by running lsp and then importing the directory of my .jl file with ..