A couple of confused newbie questions... how do I compile or reload after source changes? I see tools.namespace can be used - where is the place to put that so that Chlorine finds it? And how would I do it the old fashioned way, without tools?
If you're using lein, you can put it on your ~/.lein/profiles.clj file, so lein will add this library on every project you start. I think there's an equivalent file for clj CLI too...
If you don't want to use any tool, there's a config on Chlorine that's the way you want to refresh. The option "simple" will just issue a (require [your.namespace :reload :all])
The "simple" configuration will not remove protocols nor multimethods, so if you use these simple will not reload then
There's also a command called "Chlorine: load file" that will load the current file on the REPL
Perfect, thanks so much. I learn, slowly. 😊
I have setup clj / socket / rebl, but when I use Chlorine to connect to the socket repl, the evaluations don't automatically show up in rebl. However the command line repl does. What is the easiest way to do this?
@mattias504 don't worry, any problems please post here. I'm trying to aggregate all the issues that people are having here to write a better documentation 🙂
@sjharms There are two commands to evaluate things, one is chlorine:inspect-block
or chlorine:inspect-top-block
or others are evaluate-block
or evaluate-top-block
. Only inspect-*
send the results to REBL, are you using these functions?
@sjharms use the key bindings etc from my atom Chlorine setup repo
It adds extra REBL functions in the init file too
Thank you I was following along with the youtube video and copying the configs, it is really helpful
Thanks! I was using the evaluate functions, that explains it!