Open rgkirch opened 2 years ago
Umm. I the problem goes away if I don't set (setq cljr-warn-on-eval nil)
.
The analyzer refactor-nrepl uses needs to eval the code too in order to be able to build the AST we can work with. If that causes side effects like writing files, opening connections to servers, modifying databases, etc. performing certain refactoring functions on your code will do that, too.
By default the user is warned about this when an AST dependent feature is invoked. If this warning is an annoyance and the project can be evalled without any risks set cljr-warn-on-eval to nil so cljr-eagerly-build-asts-on-startup can take effect.
We create ASTs for all the namespaces at REPL start up if cljr-warn-on-eval is set to nil.
I was reading the docs on clj-refactor since I haven't used it before and I added that to my emacs config today. Interesting.
Interesting! I have no idea what clj-refactor is or how does it work. If you ever figure out that the problem is or how example should be adjusted to avoid this, let me know
The demo ui with 4 rotating boxes comes up but about a second after I connect with emacs, the app visibly freezes (the boxes stop rotating). I can deref
*window
and see that it'snil
.