Fork me on GitHub
#cursive
<
2018-07-27
>
kenny02:07:20

Does the REPL not use the aliases you select in the Deps panel?

cfleming03:07:27

@kenny Well, it uses the classpath of the project, which should match those aliases since that’s what’s synced to the project. But the REPLs don’t use deps directly for calculating their classpath yet - that’s coming soon.

Schpaa08:07:48

On another tangent, is it possible to have the awesome rebel-readline repl in cursive?

cfleming11:07:45

@schpaencoder That’s really weird - the ESC-goes-to-editor thing is really ingrained in IntelliJ, to the point where it actually can’t be changed for e.g. IdeaVim.

Schpaa11:07:37

Guess it’s my setup then, since I can escape away from every other tool window.

cfleming11:07:32

Re: rebel-readline, no, it’s not, but I think the Cursive REPL should already offer pretty much everything it does. If there are specific things you’re missing, let me know.

Schpaa12:07:12

The thing that bug me the most is that tab is not code completion in the repl (but indent). I have to control space and I fail at that every single time :-). Also, I would think completion trumps indentation (of importance when in the repl) although I see that a lot of allowance (of screen estate) has been given the prompt, so I might be in a minority here.

biscuitpants11:07:43

can cursive not automatically change the repl type when changing files?

onetom11:07:04

you mean between clojure and clojurescript? what would it do in case of .cljc files?

biscuitpants11:07:41

even in the case of plain clj and cljs?

cfleming22:07:15

@U0HJ7CX6H The issue is that the type of the editor you’re using doesn’t determine how your REPL functions. Cursive doesn’t do anything to actually make your REPL be a CLJS one, the dropdown just tells Cursive what sort of REPL it actually is, which affects some operations.

cfleming22:07:37

Cursive tries to autodetect that but doesn’t always do it right. I’m going to fix some more cases soon.

Schpaa12:07:12

The thing that bug me the most is that tab is not code completion in the repl (but indent). I have to control space and I fail at that every single time :-). Also, I would think completion trumps indentation (of importance when in the repl) although I see that a lot of allowance (of screen estate) has been given the prompt, so I might be in a minority here.

kenny17:07:27

It'd be nice if the user level aliases were somehow marked or separated from the project level ones.

☝️ 4
cfleming21:07:20

@kenny You mean from the ones coming from the system or user deps.edn?

cfleming22:07:07

@schpaencoder If you just want to use tab to complete, you should be able to remap that in the keybindings, although I’ve never tried it.

😐 4
cfleming22:07:44

But that will change that everywhere in the IDE obviously.