Groovy-Emacs-Modes / groovy-emacs-modes

A groovy major mode, grails minor mode, and a groovy inferior mode.
84 stars 39 forks source link

Error with elc file #116

Closed bomgar closed 6 years ago

bomgar commented 6 years ago

Error (use-package): groovy-mode/:catch: Symbol’s value as variable is void: groovy-postfix-operator-regex

I get this error when I start emacs. If I remove groovy-mode.elc it fixes the problem. Any ideas?

ajsquared commented 6 years ago

I'm seeing the same thing with Emacs 25.3.1 on OS X.

marc0s commented 6 years ago

I'm also having the same issue and the same workaround fixes it.

GNU Emacs 25.1.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.11) of 2017-09-15, modified by Debian

Wilfred commented 6 years ago

Sounds like groovy--ends-with-token-p is getting called, without having groovy-expression-end-regexp loaded. I'm not sure why Emacs is using old, stale, .elc files.

I think any of these will fix it:

carlosgeos commented 6 years ago

Yes, I have the same issue since commit a1c45fa0aec64024aeb45ce752bc790b0af53225 I think

Removing the byte-compiled file is the only solution. Recompiling it does not work.

djlindstr commented 6 years ago

I am pretty sure I introduced the error here: https://github.com/Groovy-Emacs-Modes/groovy-emacs-modes/pull/115

I think that putting

  (defconst groovy-postfix-operator-regex
    (rx (or "++" "--")))

outside the eval-and-compile fixes the problem.