Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

loading namespace in cursive REPL

I have loaded up Intellij and Cursive on my computer, all appears to work well except for the fact that I can not load a namespace in to the REPL nor can I run with Leinigen.

When I load the code into the REPL the REPL loads up but nothing is loaded into the REPL. I can then use the REPL though.

when I edit configurations I can only select normal processes and I can not run with Leiningen.

any help would be appreciated.

like image 792
Beau Della Morte Avatar asked Dec 28 '14 12:12

Beau Della Morte


1 Answers

Cursive, like most Clojure environments, doesn't load anything into your REPL by default. You can load code into the REPL using Tools→REPL→Load file in REPL. Note that this will not, by default, switch your REPL namespace to that of the loaded file - you'll need to use Tools→REPL→Switch REPL NS to current file for that, or you can require the loaded namespace into user as usual.

You should be able to create Leiningen Run Configurations, there is an option there to run specific tasks with Lein - if this doesn't work, please provide more information about exactly what you tried and what happened.

like image 165
Colin Avatar answered Sep 29 '22 13:09

Colin