Fork me on GitHub
#cursive
<
2018-08-21
>
sooheon01:08:49

Alternative is just to start the REPL with the aliases and flags you want, and connect to it as a remote repl

đź‘Ť 1
Petrus Theron08:08:06

IntelliJ with Cursive does not seem to be indexing deps.edn dependencies, e.g. (:require [datomic.api]) via com.datomic/datomic-free {:mvn/version "0.9.5697"} in deps.edn. Auto-import is enabled and IntelliJ prompts to refresh dependencies when I touch deps.edn. What am I doing wrong?

cfleming10:08:01

@petrus What’s the behaviour you’re seeing? Are the symbols not being resolved? I can’t think of anything that should cause that. It’s definitely working for dependencies in general, I don’t know why datomic would be different.

Petrus Theron10:08:13

where :deps in deps.edn contains this

Petrus Theron10:08:41

@U0567Q30W not sure if you can see my image uploads due to Slack limits?

cfleming11:08:51

@petrus Yes, I can - Slack complains, but does show them.

Petrus Theron11:08:10

no, I don't get a prompt for stubs

cfleming11:08:00

If you open the Deps toolwindow and press the refresh button, do you see it then?

cfleming11:08:12

When it’s done refreshing, I mean?

cfleming11:08:28

It’ll come up as a notification, bottom right.

Petrus Theron11:08:04

cool, didn't know about the deps tool window. I can see datomic-free is listed as a recognized dependency of my project

Petrus Theron11:08:42

so this shows up, which looks like stubs

cfleming11:08:15

No, that’s IntelliJ autocompleting from classes - those are the compiled class names.

Petrus Theron11:08:33

but no suggestions come up for a known function

cfleming11:08:48

So after refreshing, still no stubs prompt?

cfleming11:08:22

Can you check the Event Log, View-&gt;Tool Windows-&gt;Event Log for anything relating to stubs?

cfleming11:08:07

@petrus ^^ (pinging because I’m off to bed shortly)

Petrus Theron11:08:39

ahhh, I see stub prompt now. I always ignored this

Petrus Theron11:08:09

Great 🙂 It works after generating stubs. I didn't know I needed to do that for suggestions to work

cfleming11:08:34

Yeah, that’s because Cursive indexes source, and Datomic doesn’t have any.

cfleming11:08:15

So that will create function stubs introspected from the namespaces which Cursive can work with.

cfleming11:08:27

@petrus Do you get a prompt to create stubs? Did you do that?

jhughes13:08:58

Hi, clojure noob and intellij noob here? I can get the Clojure REPL to work in Intellij, but can't seem to get Clojurescript REPL to. Can't someone give me steps to make this happen?

lloydshark13:08:03

If you are targeting node and want a clojurescript repl in Cursive then I have some instructions in this project.

jhughes17:08:05

thanks, it looks very helpful đź‘Ť