cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
2021-06-09T14:04:34.135300Z

Hi. Assume that I want to send some information to the CIDER REPL before every evaluation. More concretely, I want to extend CIDER so that it will send to the REPL process the whole contents of the currently edited buffer (as a String), just before any piece of code is evaluated. • Is it a bad idea for some reason? • Is there a hook for doing something before every evaluation? (couldn't find one)

2021-06-10T07:28:20.142300Z

Oh, I need to create an up-to-date html page that shows the code of the whole namespace, every time we the user evaluates anything (working on the next version of the Notespace tool).

bozhidar 2021-06-09T18:25:28.137700Z

I don't think there's a hook for this, but there's some functionality that auto-evals the ns form before eval, that you can potentially copy/extend for your purposes.

jumar 2021-06-09T18:35:58.139400Z

That sounds like you’re typing into the repl buffer instead of typing into the file buffer which is usually recommended

2021-06-09T21:56:49.139600Z

Thanks @jumar! I'm typing into the file, but want the REPL to know about the exact file contents.

2021-06-09T21:57:21.140Z

Thanks @bozhidar! I'll look.