hasu / notdeft

NotDeft note manager for Emacs
https://tero.hasu.is/notdeft/
170 stars 14 forks source link

make gives this error #26

Open ghost opened 2 years ago

ghost commented 2 years ago

Hello, I use vertico insteady of ivy

rm notdeft-autoloads.el .elc extras/.elc rm: cannot remove 'extras/*.elc': No such file or directory make: [Makefile:15: clean] Error 1 (ignored) emacs --batch -L . -l notdeft-install -f notdeft-install-autoloads -f notdeft-install-bytecode INFO Scraping files for notdeft-autoloads.el... INFO Scraping files for notdeft-autoloads.el...done Loading /home/perrierjouet/.emacs.d/site-elisp/notdeft/notdeft-autoloads.el (source)... Compiling /home/perrierjouet/.emacs.d/site-elisp/notdeft/notdeft-global.el... Compiling /home/perrierjouet/.emacs.d/site-elisp/notdeft/notdeft-install.el... Compiling /home/perrierjouet/.emacs.d/site-elisp/notdeft/notdeft-org.el...

In notdeft-make-deft-link: notdeft-org.el:72:4:Warning: ‘org-make-link-string’ is an obsolete function (as of Org 9.3); use ‘org-link-make-string’ instead.

In notdeft-org-store-notdeft-link: notdeft-org.el:202:6:Warning: ‘org-store-link-props’ is an obsolete function (as of Org 9.3); use ‘org-link-store-props’ instead. Compiling /home/perrierjouet/.emacs.d/site-elisp/notdeft/notdeft-org8.el...

In toplevel form: notdeft-org8.el:19:2:Warning: ‘org-add-link-type’ is an obsolete function (as of Org 9.0); use ‘org-link-set-parameters’ instead. notdeft-org8.el:30:2:Warning: ‘org-add-link-type’ is an obsolete function (as of Org 9.0); use ‘org-link-set-parameters’ instead. Compiling /home/perrierjouet/.emacs.d/site-elisp/notdeft/notdeft-org9.el... Compiling /home/perrierjouet/.emacs.d/site-elisp/notdeft/notdeft-path.el... Compiling /home/perrierjouet/.emacs.d/site-elisp/notdeft/notdeft-xapian-make.el... Compiling /home/perrierjouet/.emacs.d/site-elisp/notdeft/notdeft-xapian.el... Compiling /home/perrierjouet/.emacs.d/site-elisp/notdeft/notdeft.el... Compiling /home/perrierjouet/.emacs.d/site-elisp/notdeft/extras/notdeft-global-hydra.el...

In toplevel form: extras/notdeft-global-hydra.el:24:1:Error: Cannot open load file: No such file or directory, hydra Compiling /home/perrierjouet/.emacs.d/site-elisp/notdeft/extras/notdeft-ivy.el...

In toplevel form: extras/notdeft-ivy.el:18:1:Error: Cannot open load file: No such file or directory, ivy Compiling /home/perrierjouet/.emacs.d/site-elisp/notdeft/extras/notdeft-mode-hydra.el...

In toplevel form: extras/notdeft-mode-hydra.el:22:1:Error: Cannot open load file: No such file or directory, hydra

hasu commented 2 years ago

I'm going to assume that you don't have the hydra' andivy' features in your Emacs installation, hence the errors in compiling some of the extra NotDeft features. That seems correct as long as the Make rule itself doesn't fail early, so that the Emacs Lisp sources that can be compiled for your Emacs environment do get compiled.

If you prefer to use Vertico then you probably don't care about these features not being available.

rdiaz02 commented 2 years ago

I did have both ivy and hydra installed (and, actually, I use and load them from my init.el file). I solved the issue by editing the Makefile as instructed: EMACS_BATCH := emacs --batch -l ~/.emacs.d/init.el.

(I wonder if this could be pointed out in the readme).

RampedIndent commented 2 years ago

I did have both ivy and hydra installed (and, actually, I use and load them from my init.el file). I solved the issue by editing the Makefile as instructed: EMACS_BATCH := emacs --batch -l ~/.emacs.d/init.el.

(I wonder if this could be pointed out in the readme).

I tried the above and got the following error:

make
rm notdeft-autoloads.el *.elc extras/*.elc
emacs --batch -l ~/.emacs.d/init.el -L . -l notdeft-install -f notdeft-install-autoloads -f notdeft-install-bytecode
Loading /etc/emacs/site-start.d/00debian.el (source)...
Loading /etc/emacs/site-start.d/50autoconf.el (source)...
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Loading debian-ispell...
Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...
Package cl is deprecated
[yas] Prepared just-in-time loading of snippets (but no snippets found).
Decrypting /home/rampedindent/.authinfo.gpg...0%
Decrypting /home/rampedindent/.authinfo.gpg...done
Eager macro-expansion failure: (wrong-type-argument characterp symbol-name)
Eager macro-expansion failure: (wrong-number-of-arguments (lambda (command dir &rest args) (list 'start-process "emacs-leftwm-windmove" nil "leftwm-comman" (concat command "window" dir))) 1)
  INFO     Scraping files for notdeft-autoloads.el...
  INFO     Scraping files for notdeft-autoloads.el...done
Loading /home/rampedindent/notdeft/notdeft-autoloads.el (source)...
Compiling /home/rampedindent/notdeft/notdeft-global.el...
Compiling /home/rampedindent/notdeft/notdeft-install.el...
Compiling /home/rampedindent/notdeft/notdeft-org.el...

In notdeft-make-deft-link:
notdeft-org.el:72:4:Warning: ‘org-make-link-string’ is an obsolete function
    (as of 9.3); use ‘org-link-make-string’ instead.

In notdeft-org-store-notdeft-link:
notdeft-org.el:202:6:Warning: ‘org-store-link-props’ is an obsolete function
    (as of 9.3); use ‘org-link-store-props’ instead.
Compiling /home/rampedindent/notdeft/notdeft-org8.el...

In toplevel form:
notdeft-org8.el:19:2:Warning: ‘org-add-link-type’ is an obsolete function (as
    of 9.0); use ‘org-link-set-parameters’ instead.
notdeft-org8.el:30:2:Warning: ‘org-add-link-type’ is an obsolete function (as
    of 9.0); use ‘org-link-set-parameters’ instead.
Compiling /home/rampedindent/notdeft/notdeft-org9.el...
Compiling /home/rampedindent/notdeft/notdeft-path.el...
Compiling /home/rampedindent/notdeft/notdeft-xapian-make.el...
Compiling /home/rampedindent/notdeft/notdeft-xapian.el...
Compiling /home/rampedindent/notdeft/notdeft.el...
Compiling /home/rampedindent/notdeft/extras/notdeft-global-hydra.el...
Compiling /home/rampedindent/notdeft/extras/notdeft-ivy.el...
Compiling /home/rampedindent/notdeft/extras/notdeft-mode-hydra.el...
*** Emacs loaded in 0.00 seconds with 9 garbage collections.
Value returned by ‘initial-buffer-choice’ is not a live buffer: nil
make: *** [Makefile:9: install] Error 255
rdiaz02 commented 2 years ago

I am sorry I cannot really help you: I am not using notdeft anymore, as I found other options that suit my workflow better.

hasu commented 2 years ago

From all the "Compiling" messages it looks like the installation has already completed, but then something happens that results in a non-zero exit code for the emacs process.

I don't know what that something would be, since notdeft-install-bytecode is the last specified function to call.

Is there perhaps something in your Emacs initialization that fails in --batch mode? Perhaps something to do with ‘initial-buffer-choice’?

If the installation already completed then perhaps there is nothing further to do.

Or you could try running emacs without the --batch option:

emacs -L . -l notdeft-install -f notdeft-install-autoloads -f notdeft-install-bytecode