Fork me on GitHub
#cursive
<
2016-01-20
>
bplatz13:01:28

I've run into an updated project.clj not loading the updated dependencies in cursive's "External Libraries". This is after performing a lein clean and lein deps (at the terminal, not in cursive). Is this a known problem or is it possible I have something else messed up in my project(s)?

bplatz13:01:25

This results in when I do a CLJS build in cursive the old dependency shows up, but when doing the build from the command line all is fine.

james15:01:49

@cfleming: Is there any news about support for inline REPL results? Before you’ve said that you’re waiting for JetBrains to add better support for in-editor pop-up widgets, so I was wondering if there has there been any progress in that area with IDEA 16?

timgilbert15:01:14

@bplatz: not sure this will help you, but I usually need to go to the leiningen tab on the right side of intellij and hit the "refresh" button to pick up new library dependencies

hugesandwich15:01:26

@bplatz I've had this same problem as well. Restarting IntelliJ seems to be the only fix for me most of the time. Also for some reason in IntelliJ 14 this would happen to me when somehow lein would get disassociated with intellij. On restart, it would ask me to restore the association. I haven't seen it happen in IntelliJ 15/since I updated cursive last, but I'm still having problems picking up new dependencies even with a refresh on project.clj, repl stop/start, etc. I'm on OSX latest and I think I've had the problem on my other linux work machine as well.

cfleming20:01:03

@bplatz: @hugesandwich: Is this always with CLJS deps? I’ve never seen it, but I only use CLJS for testing. Does it happen with particular deps or randomly for all deps?

cfleming20:01:46

@james: Sadly, nothing changed in v15 on that front. I was planning to do the work myself and send them a PR, but I never got time.

cfleming20:01:02

@bplatz: You mention a problem when you do a CLJS build in Cursive, but Cursive doesn’t provide any CLJS build functionality. How exactly does the problem manifest?

bplatz20:01:30

I've only noticed it with cljs. I run a repl script, clojure.main.

bplatz20:01:25

But if you open up the External Libraries you see the old versions there. Restarting does fix it.

bplatz20:01:28

Running the same script from a terminal window does build correctly, only when it is run from inside IntelliJ does it still include the old dependency versions.

cfleming20:01:58

@bplatz: Ok, and refreshing in the leiningen toolwindow doesn’t help?

james21:01:37

@cfleming: and nothing in v16 EAP either?

cfleming21:01:36

@james: I haven’t checked that yet

cfleming21:01:58

I actually spoke to the JetBrains guy responsible for it, I’ll check with him.

bplatz22:01:33

@cfleming: I need to try the refresh, I think I tried it the first time it happened but I can't recall. I'll give it a shot next time I can reproduce it and let you know.

cfleming22:01:36

@bplatz: Thanks - I believe that should work, and it’s definitely a bug if it doesn’t. Note that you’ll need to restart your REPL too.