Fork me on GitHub
#cursive
<
2019-12-20
>
helios08:12:39

I'm running a old-ish version of IntelliJ and cursive (2018.3.6 + cursive v1.8.1-eap3-2018.3) with deps.edn (as for some time this version was the most stable with deps.edn). It seems that something is wrong with resolving the vars in cljs files

cfleming09:12:44

Is clojurescript added to the module as a dependency? You can check that under File-&gt;Project Structure-&gt;Modules-&gt;&lt;your module&gt;-&gt;Dependencies

helios09:12:24

Yes, Deps: org.clojure/clojurescript:fc66a5

cfleming09:12:44

I see you’re using a git dep. Do things work if you switch to a standard Maven dep?

helios10:12:54

yep, that makes it work

cfleming10:12:30

Interesting. Ok, so if you switch back to the git dep, what does the library look like? When you select the library in File-&gt;Project Structure-&gt;Libraries, what do you see in the right hand panel?

helios10:12:15

nothing to show

helios10:12:40

sorry when taking the screenshot i hovered over another lib, but cljs is selected

cfleming20:12:52

Hmm. And does your application work with CLJS from a git lib?

helios14:12:41

Yeah, it seems so

cfleming18:12:23

Ok, I’ll take a look at that.

helios08:12:12

even defn cannot be resolved. Whereas in clj files it all works fine. i tried to invalidate the cache and restart multiple times, to no avail

pez09:12:22

@cfleming: Will b 11 be moved up as in out of the binding box, or up a line, or up as in front of whatever pair is before it? (Or something else? 😃 )

cfleming09:12:58

It works basically like “Move form up/down”, so if you move it up, you’ll get:

(let [|b 11
      a 10])
Then trying to move it up again will do nothing - it doesn’t work like slurp/barf.

imre10:12:42

Mind if I ask what conversation this thread forked from? I saw your reply to @UFHE11C83 yesterday and I'd be interested in the context.

imre11:12:33

Indeed, thank you!

pez20:12:14

I’ve filed that this behaviour should be added to Calva as a feature request: https://github.com/BetterThanTomorrow/calva/issues/529

pez20:12:36

If there are related behaviours that Calva could take inspiration from, please comment on that issue, @cfleming