gcv / julia-snail

An Emacs development environment for Julia
GNU General Public License v3.0
236 stars 23 forks source link

Installing julia-snail with straight.el #38

Closed david-vicente closed 4 years ago

david-vicente commented 4 years ago

I'm having trouble using julia-snail with the straight.el package manager, but I don't know which package is giving me the error. After straight.el installs julia-snail and I try to start julia-snail-mode in a Julia buffer I get the following messages:

File mode specification error: (error Autoloading file /home/dav/.emacs.d/straight/build/julia-snail/julia-snail.elc failed to define function julia-snail-mode)
command-execute: Autoloading file /home/dav/.emacs.d/straight/build/julia-snail/julia-snail.elc failed to define function julia-snail-mode

This is how I install the packages:


(use-package vterm
   :straight t
   :defer t)

(use-package julia-snail
   :straight t
   :defer t
   :hook (julia-mode . julia-snail-mode))

My software versions are:

gcv commented 4 years ago

I think it's the problem where you have to install vterm first manually. It's noted in the README under Installation steps 3 and 4.

To fix, make sure you get vterm fully running first. Then you'll need to undo the result of the strange Emacs packaging bug. (The symptom is an abnormally small julia-snail.elc file, the compiler just didn't finish working or writing the file; I have no idea why.) The best and easiest thing is to delete the julia-snail package and reinstall it.

david-vicente commented 4 years ago

Thanks :+1:

david-vicente commented 4 years ago

I changed to this


(use-package vterm
   :straight t)

(use-package julia-snail
   :straight t
   :requires vterm
   :hook (julia-mode . julia-snail-mode))