non-Jedi / eglot-jl

Wrapper for using Julia LanguageServer.jl with emacs eglot
Creative Commons Zero v1.0 Universal
62 stars 11 forks source link

Need to force "eglot-jl-depot"? #24

Closed xgqt closed 1 year ago

xgqt commented 3 years ago

I'm getting following warnings from eglot:

...
 (:range
  (:start
  (:line 21 :character 9)
   :end
   (:line 21 :character 18))
   :severity 2 :code "Julia" :source "Julia" :message "Missing reference: GtkButton")
 (:range
  (:start
  (:line 24 :character 0)
  :end
 (:line 24 :character 14))
 :severity 2 :code "Julia" :source "Julia" :message "Missing reference: signal_connect")
 ...

The file in question: https://gitlab.com/xgqt/gtkdemos/-/blob/master/GTK3/julia/helloworld/HelloworldGtk.jl Running the file from terminal works (as I have "Gtk" package dependency installed).

xgqt commented 3 years ago

Ok, I see the problem, Eglot-Jl uses the wrong depot path, my depot path is: image

After I exported JULIA_DEPOT_PATH=~/.julia and installed Gtk the warnings are gone, so Eglot-Jl picked wrong depot path

xgqt commented 3 years ago

After forcing eglot-jl-depot to be set to my JULIA_DEPOT_PATH it appears t work

:config (setq eglot-jl-depot (getenv "JULIA_DEPOT_PATH"))

If this is not a bug then docs are misleading https://github.com/non-Jedi/eglot-jl/blob/master/eglot-jl.el#L54

non-Jedi commented 1 year ago

Just pushed a commit that should fix this. Sorry about the long delay in replying.