Loading namespace in cursive REPL

I downloaded Intellij and Cursive to my computer, everything seems to work fine, except that I cannot load the namespace in REPL and I cannot work with Leinigen.

When I load the code in the REPL, the REPL is loaded, but nothing is loaded in the REPL. Then I can use REPL.

when I edit the configurations, I can only select normal processes, and I cannot work with Leiningen.

Any help would be appreciated.

+5
source share
2 answers

Italic, like most Clojure environments, does not load anything into your REPL by default. You can load the code into REPL using Tools -> REPL -> Load file into REPL. Note that this by default will not replace your REPL namespace with the download file — you will need to use Tools → REPL → Switch REPL NS for the current file, or you can require the loaded namespace to be as usual.

You should be able to create Leiningen Run Configurations, there is the ability to run certain tasks with Lein - if this does not work, provide additional information about what you tried and what happened.

+7
source

Extending the answer above helped me:

  • File → Settings → Binding Keys

  • Enter REPL in the search field (to easily find the appropriate bindings).

  • Find the bindings associated with the two necessary menu options ("upload file to REPL" and "switch REPL NS to current file").

  • Give them simple, similar bindings. I use ctrl + shift + L and ctrl + shift + M

I tried to give them the same keys, and then ignored the conflict warning, trying to activate them right away, but it seems to ignore the second one related.

This is the best solution I've found so far.

0
source

Source: https://habr.com/ru/post/1209986/


All Articles