Fork me on GitHub
#cursive
<
2016-06-07
>
ckarlsen02:06:35

when I've required [clojure.spec.gen :as gen] in a namespace, cursive suggests constantly that I can require 'clojure.test.check.generators :as gen'

cfleming02:06:12

@ckarlsen: Which function is it reporting that on?

ckarlsen02:06:12

gimme two min. will show

cfleming02:06:23

IIRC there might be a bug in Cursive where it doesn’t check if the alias exists before proposing that require.

ckarlsen02:06:45

basicly every time I type something in this namespace the popup shows. 2016.2 EAP and latest cursive EAP btw

ckarlsen02:06:40

when I hover over gen/fmap and gen/tuple it says "gen/tuple can be required"

cfleming02:06:43

Do clojure.spec.gen/fmap and clojure.spec.gen/tuple exist?

ckarlsen02:06:39

clojure.spec.gen/tuple => #object[clojure.spec.gen$fn__12968$tuple__12971 0x338a2da4 "clojure.spec.gen$fn__12968$tuple__12971@338a2da4"]

ckarlsen02:06:47

I can even autocomplete it 😉

cfleming02:06:57

Ok, one sec

cfleming02:06:50

The problem is that clojure.spec.gen is generating things with macros.

cfleming02:06:57

I’ll fix that for the next build.

cfleming02:06:22

In the meantime, to prevent the popups you could create a clojure.spec.gen namespace somewhere, and (declare hash-map list map not-empty set vector fmap elements bind choose fmap one-of such-that tuple sample return any any-printable boolean char char-alpha char-alphanumeric char-ascii double int keyword keyword-ns large-integer ratio simple-type simple-type-printable string string-ascii string-alphanumeric symbol symbol-ns uuid) in it.

ckarlsen02:06:46

thanks! 🙂

cfleming03:06:02

@ckarlsen: That’s fixed for the next build.

danielcompton04:06:26

Did the new build of Cursive change CLJS indexing?

danielcompton04:06:38

I’m seeing a bunch of cljs internal functions showing up now

danielcompton04:06:19

the ones I don’t want to see are the cljs$core ones

cfleming04:06:49

@danielcompton: I don’t think so, no - that’s very strange.

moizsj04:06:45

@cfleming: running into an issue where Load file in REPL simply does not work. Tried restarting IntelliJ. What could it be?

cfleming05:06:24

@moizsj: It just doesn’t do anything, or you get an error?

moizsj05:06:35

doesn't do anything

cfleming05:06:52

Any errors in your log? Help-&gt;Show log in Finder/Explorer

cfleming05:06:19

That’s unrelated I think

cfleming05:06:15

@moizsj: Does your project have a single module, or multiple modules?

moizsj05:06:28

single module

moizsj05:06:37

used to work fine for this project

cfleming05:06:11

That’s very strange.

cfleming05:06:27

Leiningen project?

cfleming05:06:28

If you re-import the project, does that fix it?

cfleming05:06:14

Give that a go, then we’ll know if it’s something in the project itself or something random getting screwy, though I have no idea what that might be

moizsj05:06:35

so i dint reimport (to avoid losing all the run configs I have). just did a sync and that fixed it. @cfleming

cfleming05:06:54

@moizsj: That is really strange

cfleming05:06:04

Well, let me know if the problem comes back

cfleming05:06:47

Can you share the project?

cfleming05:06:34

I actually have to go and look after my daughter, I’ll think about the best way to diagnose this, and get back to you.

cfleming05:06:01

To test the reimport, you could copy the whole project dir and import the copy, and see if that exhibits the problem too.

cfleming05:06:16

So you don’t lose run configs etc from the original.

cfleming05:06:47

I have to shoot, but drop me a message either here or by email and let me know if that worked.

moizsj05:06:45

@cfleming: its fixed. disabling load out-of-date deps transitively fixed it. I used to have it disabled, must have forgotten that i turned it on. thanks.

darwin11:06:49

@cfleming: thanks, now it works for me as well, don’t know what was the issue

imre13:06:26

intellij question: is there a command to show the tooltip for a gutter icon? I would like to bind a key to it so I don't have to reach for the mouse to view why a test failed

wasser14:06:19

@cfleming I did the Intelli-J update and the corresponding Cursive (I think), but now REPLs are broken. I set one up, but when I go to run it the configuration is set back to blanks and the REPL fails. Much like @darwin, I’m seeing the v1.3.0-eap2-2016.1 build, not the .2 that you showed. I tried removing the EAP repo and re-adding it (as you showed), opening and closing Intelli-J multiple times (CDN issue maybe?), flushing the caches: still no REPLs. I suppose I could remove and re-add Cursive, but I’m afraid I’ll lose my settings and still only see the .1 build. Any thoughts on what to try next?

manutter5115:06:11

@wasser: what platform/OS?

wasser16:06:19

OS X. El Capitan, specifically.