org-brain icon indicating copy to clipboard operation
org-brain copied to clipboard

Symbol's value as variable is void: org-brain-poly-hostmode

Open erikc96 opened this issue 4 years ago • 11 comments

Hi,

I'm getting this error with the example config for using polymode in the docs.

erikc96 avatar Jun 07 '20 06:06 erikc96

Okay, that's strange. Could you try moving the polymode use-package declaration so that it is before the org-brain one? Also it would help me if you use M-x toggle-debug-on-error and report the result you get there.

Kungsgeten avatar Jun 07 '20 07:06 Kungsgeten

i got the same issue too, however, after deleting the polymode use-package statement, the issue disappeared.

hjtoh avatar Jun 07 '20 17:06 hjtoh

Deleting all your .elc files should resolve this. There was a bug in the previous version that was giving me this error with polymode installed, but updating and recompiling seemed to resolve it for me.

benjaminwd avatar Jun 07 '20 17:06 benjaminwd

I'm getting this error too. Where can I look? I'm not a emacs lisp expert. I had a functional debian emacs 26 installation and was working ok with org-brain. One week ago I tried guix package system. All is neat, but I tried to config my new emacs 27.1 and org-brain is guix packaged, polymode too, but it is not working. Gives me this error. I put the polymode use package declaration first, but doesn't solve it. I'm not a polymode user. Maybe polymode needs some other previous config?

This is the error: Error (use-package): org-brain/:catch: Symbol’s value as variable is void: org-brain-poly-hostmode

techapu avatar Nov 04 '20 11:11 techapu

Fixed by (package! org-brain :recipe (:no-byte-compile t))

GTrunSec avatar Jan 10 '21 23:01 GTrunSec

I guess this problem is caused by compiling autoload statements. Remove .elc works for me.

lczch avatar Jan 15 '21 12:01 lczch

I got the same problem. Any tips on how to solve this? Which .elc do I need to remove?

falematte avatar Mar 09 '21 12:03 falematte

M-x package-reinstall org-brain works for me.

hayashiya18 avatar May 07 '21 09:05 hayashiya18

Yeah had to manually delete .elc to get poly-org working again after today's commits.

@falematte Directory path should look something similar to ~/.emacs.d/elpa/27.1/develop/org-brain-20210507.658

BenedictHW avatar May 07 '21 15:05 BenedictHW

@falematte On system with a console that supports a unix find command, you could just delete them all, and it's pretty easy to do - find . -name "*.elc" -exec rm {} \;

{} stands in for the actual result from find, the one item to run the command on, and ; ends the -exec statement

epeters-jrmngndr avatar May 11 '21 18:05 epeters-jrmngndr

It's a byte-compilation error, likely the .elc compiled, adding no-compile fixes the issue.

If using straight with use-package just do: straight: (:build (:not compile))

fleurc avatar May 24 '23 12:05 fleurc