Question

I am getting an error when I compile js2-mode.el using byte-compile-file command in emacs.

js2-mode.el:6778:21:Error: Lisp nesting exceeds `max-lisp-eval-depth'

How do I get rid of this?

Was it helpful?

Solution

You can try to increase max-lisp-eval-depth: it's usually large enough as it is, but byte-compilation can occasionally recurse fairly deep. So try M-: (setq max-lisp-eval-depth (* max-lisp-eval-depth 2)) RET. If that doesn't solve the problem, there might be some more serious issue, such as an infinite recursion.

OTHER TIPS

This has been a common problem with byte-compile-file and some older versions of js2-mode. As far as I can tell, it's been fixed for a while now, and the repository at emacsmirror includes the fix.

See if you have an older version of js2-mode installed somewhere, and if it might be loaded during byte compilation.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top