This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-11-25
Channels
- # admin-announcements (3)
- # beginners (165)
- # boot (123)
- # cider (106)
- # clara (1)
- # cljsrn (20)
- # clojure (199)
- # clojure-canada (2)
- # clojure-dev (3)
- # clojure-poland (29)
- # clojure-russia (7)
- # clojure-taiwan (2)
- # clojurescript (487)
- # cursive (25)
- # datavis (89)
- # datomic (26)
- # gorilla (2)
- # hoplon (15)
- # ldnclj (12)
- # lein-figwheel (9)
- # leiningen (2)
- # liberator (1)
- # off-topic (25)
- # om (380)
- # onyx (26)
- # parinfer (52)
- # portland-or (12)
- # re-frame (28)
- # reagent (132)
I have a quandary! I can't seem to get clj-refactor 1.1.0
to install properly. http://take.ms/LH0RG
I've deleted ~/.emacs.d/elpa/cljr-refactor* directories and installed clj-refactor.el through melpa-stable multiple times. Inspected the .el file (which for sure says 1.1.0). However when I call cljr-version I get that string in the minibuffer.
I'm not sure where 1.0.5 can even be coming from.. Is there another directory I should checkout?
deleted that package thusly and all looks good! Thanks for making cider/clj-refactor.el
@waffletower: I just wished people discussed their issues with CIDER on the issue tracker /here/mailing list, instead of keeping them to themselves
@escherize: just restart emacs and repl server
Anyone seen this exception whilst hacking nrepl middleware? http://pastebin.com/Eq8JnD65
Hmm, so the session atom passed into nrepl middleware, if you add a key-pair, where the key is a keyword, then you generate the above error
next, I have a noob question: is it possible that cider-refresh is executed automatically?
I'm having an issue with a project that uses component library, and I think the code that sets the system is being accidentally executed
@jonschoning: Yes. The session bindings map is just for variable values
@fvaresi: Cider doesn't do that. But there are clojure plugins out there that eagerly load your entire project
If you verify that this is indeed being caused by refactor-nrepl, you can try asking them
I finally confirmed it was clj-refactor/refactor-nrepl, so I will keep debugging from there
the strangest thing is that despite editing the profiles.clj and my emacs config, I had to remove clj-package to get rid of any clj-refactor message
and after that everything behaved as expected... thanks for your help @malabarba
just to be specific @fvaresi refactor-nrepl
uses tools.analyzer
to analyze your namespaces and that also evals your first level forms
ASTs will be built on demand only (that will make certain clj-refactor features slow)
on an other note if you use the component framework you should not have a first level form which changes the state of the project I think… so what is being eval-ed which > sets the system ?
sometimes my nrepl middleware never gets called at all with ops such as 'eval'. I have a hunch my middleware only gets called for tooling operations, like it gets configured incorrectly at the start
is nrepl-connected-hook the place to hook off for messing around with nrepl sessions still?
@jonpither currently cider doesn't treat eval ops differently from other ops. What sort of messing around are you doing?
I've upgraded to CIDER 0.8.2, the message I get now is Please, install (or update) cider-nrepl 0.8.2 and restart CIDER. WARNING: CIDER's version (0.8.2) does not match cider-nrepl's version (0.9.1)
is 0.9.1 not recommended?
@malabarba: recording commands, and periodically sending analysis data back to a listener I create from nrepl-connected-hook
sometimes it works, sometimes it doesn't, depending on how the middleware starts up
@bozhidar we should either update the marmalade package or politely ask nic to remove it
what is the correct version of cider-nrepl? the docs say 0.9.1, the project.clj says "0.10.0-SNAPSHOT"
@jonpither so you have a custom middleware for the eval op, and it communicates with a listener you set up with nrepl-connected-hook? Can't see anything obviously wrong with that.
@malabarba: the last thing I need to sync now is CIDER requires nREPL 0.2.7 (or newer) to work properly
added 0.2.12 to my profiles.clj. It now says WARNING: CIDER requires nREPL 0.2.7 (or newer) to work properly
thanks for the reply @benedek . I still have to do some debugging but I had to move to a different task
no worries, you can still use the elisp only functions in clj-refactor even without the refactor-nrepl middleware
sure. I do want to spend some more time with it when I have a chance since it may help others.
might just be a problem of version compatibility since I was using melpa and nrepl snapshot with clojure 1.6
some of our dependencies use cljc files now so we have to use 1.7 to make sense of those