Emacs julia-mode doesn't know packages?

The julia-mode of emacs very often flags package names as “Missing Reference”. A simple

using StrFormat

triggers the warning. I may be hallucinating, but I seem to remember that that wasn’t the case not so long ago . . .

So, how do you tell the language server (or something) to refer to the packages that are already installed to the julia REPL ?

I have these lines in my ~/.emacs.d/init.el

(use-package julia-mode
  :ensure t
  :config
  (add-hook 'julia-mode-hook 'eglot-jl-init)
  (add-hook 'julia-mode-hook 'eglot-ensure)
  (setq julia-indent-offset 2)
  )

(use-package eglot-jl
  :ensure t
  :config
  (setq eglot-sync-connect    1
        eglot-connect-timeout 120))

(use-package julia-repl
  :ensure t
)

and

(use-package company
  :ensure   t
  :config
  (global-company-mode 1)
  ;; Require more characters before completion triggers
  (setq company-minimum-prefix-length 3)
  ;; Never automatically accept a completion
  ;;   just because completion was active.
  (setq company-require-match 'never)
  )

if it has something to do with julia-mode . . .

1 Like