Fork me on GitHub
#cursive
<
2017-07-05
>
cfleming02:07:44

@souenzzo So this is handled internally by having a list of forms which allow processing inside them when they’re encountered at top level - things like let and do. I can make that list extensible, so that you could add trace-forms to it.

cfleming02:07:34

(the actual answer to your question is no, currently)

souenzzo02:07:20

It's clairvoyant.core from [spellhouse/clairvoyant "0.0-72-g15e1e44"] Not sure, but it could be a metadata inside the macro?

miikka09:07:43

Is there a way to tell Cursive to stop suggesting a specific import?

miikka09:07:19

This suggestion is wrong and it makes the editor super-slow 😞

cfleming09:07:42

@miikka What is Inst in that example?

miikka09:07:57

the Inst protocol from clojure.core in 1.9

cfleming09:07:02

(i.e. I’d like to fix the actual problem as well as the import).

miikka09:07:47

(But Cursive wants to import the interface)

cfleming09:07:52

Interesting, I’ll try to reproduce that.

cfleming09:07:24

It should only try to import it if it can’t resolve the symbol - I wonder why it can’t.

cfleming09:07:59

@miikka Under Settings-&gt;Editor-&gt;General-&gt;Auto Import, there’s an Exclude from Import and Completion section - that should help.

cfleming09:07:37

Does (extend-protocol clojure.core/Inst ... help?

miikka09:07:23

Okay, that helps. It highlights it as unresolvable but that's fine. Thanks.

cfleming09:07:33

That’s weird, I don’t know why it can’t resolve that, it’s just a normal defprotocol.

miikka09:07:07

The protocols in clojure.core.protocols have the same problem, by the way.

cfleming10:07:56

@miikka Thanks, I must have broken something recently.

dealy15:07:14

I just upgraded to the latest version of intellij and all my run configs have a red X through them. Trying to solve the problem I moved my .idea dir to another location and re-imported everything. When I put my saved .idea/runConfigurations dir back into the newly created directory everything except my clojure/leiningen modules appeared. Where are the clojure runConfigs stored?

michaellindon20:07:27

@cfleming that worked, thank you 🙂