Fork me on GitHub
#cursive
<
2019-04-05
>
mhcat00:04:33

does cursive collide with the clojure-kit plugin that jetbrains is offering me in the plugins menu?

cfleming00:04:06

@j0ni Yes, it’s a bad idea to have two language plugins for the same language installed.

Kamuela11:04:29

Any reason why on a mac the keyboard shortcuts might not be working after a fresh install?

flowthing12:04:57

I think IDEA lets you choose between two keyboard layouts in the wizard that runs after installation. Is it possible you chose the one where the shortcut for “Load file in REPL” is Ctrl + Alt + L? (I think.)

Kamuela13:04:16

I've tried every combination I can think of, but nothing seems to work 😕

flowthing13:04:54

Does it have a key binding assigned in Settings > Keymap?

Kamuela13:04:42

Yeah, just checked, it's command shift L

Kamuela11:04:40

Cmd + shift + L I'm looking at specifically

manutter5112:04:37

It works for me, provided that I have the cursor inside the editor window, and I have a matching REPL open. By “matching,” I mean I’m editing a .clj file and the active REPL is a Clojure REPL, or I’m editing a .cljs file and the active REPL is a CLJS REPL. It does not work if you have the cursor inside the REPL; you have to click in the file you want to load first.

Kamuela13:04:11

@manutter51 how would I have a matching REPL open? If I click REPL, it's just an empty window/pane

manutter5113:04:58

Ok, you probably haven’t started one yet.

manutter5113:04:36

At the top right of the window you should see a button to configure a build configuration, which is where you set up the REPL to run. If you don’t have any build configurations, it will look like this.

manutter5113:04:01

Click the “Add Configuration…” button to open up the Run/Debug Configurations window, then click the plus sign at the top left corner and select Clojure REPL -> Local from the menu

manutter5113:04:29

Change the Name from “Unnamed” to “CLJ REPL,” and the default values should be good for the rest of the stuff. Click OK to add it as a new build config. Now at the top right, where it used to say “Add Configuration,” you should see “CLJ REPL”. It’s a menu, so if you don’t see “CLJ REPL”, you can drop it down and it should be one of the menu options.

manutter5113:04:19

This is a once-per-project setup step, so you’ll do this every time you create a new project. Once you have it set up, you’ll see a green arrow to the right of where it says “CLJ REPL”, and you can click that to start your REPL.

Kamuela13:04:56

@manutter51 absolute bingo. Thank you very much for that. Everything working as intended, incl. key combos

manutter5113:04:40

One caveat for future reference (because I kept making this mistake) — in the Edit Configurations window at the top left, there’s a “Templates” line right underneath the plus sign, with a disclosure triangle next to it. If you pop that open, you’ll see a list just like when you click on the plus sign, but those do not create REPL configurations for you. You have to click the plus sign.

🙏 4