Coder Social home page Coder Social logo

`*window` is `nil` after `cider-connect-clj` and middleware is `cider.nrepl/cider-middleware,refactor-nrepl.middleware/wrap-refactor` about humbleui HOT 2 OPEN

rgkirch avatar rgkirch commented on June 16, 2024
`*window` is `nil` after `cider-connect-clj` and middleware is `cider.nrepl/cider-middleware,refactor-nrepl.middleware/wrap-refactor`

from humbleui.

Comments (2)

rgkirch avatar rgkirch commented on June 16, 2024

Umm. I the problem goes away if I don't set (setq cljr-warn-on-eval nil).

https://github.com/clojure-emacs/clj-refactor.el#in-case-refactor-nrepl-is-used-for-advanced-ast-based-refactorings

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.

from humbleui.

tonsky avatar tonsky commented on June 16, 2024

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

from humbleui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.