Fork me on GitHub
#cider
<
2017-12-15
>
bozhidar08:12:19

> Why does refactor do it differently?

bozhidar08:12:41

@dominicm It’s basically part of the overall approach of cljr - most of the functionality there depends on parsing the entire project code on operating on the resulting AST. swank-clojure and CIDER generally rely on just analyzing the state of the running application.

bozhidar08:12:48

Meaning we never build an AST and just inspect whatever we can from interactions with the nREPL server. For find and replace the problem with this approach is that obviously this works only for loaded namespaces, but you can easily load all namespaces if you want to do this.

bozhidar08:12:21

Building the AST up front is pretty slow for big projects and you obviously have to keep rebuilding it all the time.

bozhidar08:12:00

The old SLIME approach worked pretty well even though it was pretty primitive. I was just about to port (and enhance it a bit), when my CIDER time dropped to close to 0.

dominicm08:12:40

I've taken two weeks off work. I'm mostly playing VR, but I might have a go at seeing how that works out.

bozhidar08:12:02

I haven’t played anything in while, so I’m not sure what’s VR is. 😄 I doubt it’s Virtual Reality. 🙂

dominicm09:12:00

It's virtual reality

dominicm09:12:07

It's amazing

dominicm09:12:34

The horror of being stabbed. The isolation of being in the cinema. The immersion. The looking around. It's all amazing.

benedek08:12:40

@ghsgd2 should have been more specific

benedek08:12:02

type , in your cider repl

benedek08:12:15

you get a list of commands to choose from

benedek08:12:25

pick refresh

New To Clojure09:12:44

@benedek

1. Caused by clojure.lang.Compiler$CompilerException

benedek09:12:53

seems to be a compilation error

benedek09:12:32

anagram_test line 7 col 10

New To Clojure10:12:43

@benedek Thank you! Yeah, this time it was a compilation error (I've done a refactoring and then undo'ed it but undo reverted to previous state only one of files). Sorry for that.