This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-11-13
Channels
- # admin-announcements (6)
- # beginners (19)
- # boot (1)
- # cbus (2)
- # cider (3)
- # clara (24)
- # cljs-dev (4)
- # cljsrn (18)
- # clojure (168)
- # clojure-boston (1)
- # clojure-dev (55)
- # clojure-russia (199)
- # clojure-sg (2)
- # clojurescript (38)
- # clojurex (1)
- # core-async (15)
- # css (16)
- # cursive (62)
- # datomic (23)
- # editors-rus (17)
- # events (3)
- # funcool (1)
- # hoplon (360)
- # ldnclj (37)
- # lein-figwheel (11)
- # leiningen (1)
- # nginx (1)
- # off-topic (13)
- # om (361)
- # onyx (1)
- # re-frame (56)
- # reagent (24)
- # robots (1)
- # spacemacs (46)
- # yada (9)
I keep running into this weird bug in Cursive - increasing the version number of a dependency does not make Cursive aware of it. It can't see the newer dependency and will insist on using the old one.
What's worse is that when I finally do manage to convince Cursive to use the newer version (through manual editing of the project's .iml file) it will still start any REPL sessions with the old dependency.
You can do it in the leiningen toolwindow (refresh button) or by executing the “Refresh Leiningen Projects” action from Cmd-Shift-A
Editor is picking the new version up just fine, but REPL is still being started with the old version.
So if you look at the project structure view, you see the new version added to the module, right?
Interestingly, the Project view lists both versions in the 'External Libraries' tree.
Ok, and in the classpath, it’s definitely picking up the wrong version? You can see that by unfolding the first line in the REPL window.
Yes I do, and that's another bug - if I remove them they'll be added eventually automatically when I restart the IDE.
Although to be fair that sounds more like a bug in IDEA rather than the plugin itself.
If you modify the module file, those changes will be overwritten the next time the Lein project is synced (opening your project, manually refreshing etc)
The idea is your module should reflect what is in the project.clj
, and Cursive will make it like that every time.
Although like I said, delete-item! can be clicked through to its definition from here. And it's using the download deps for that.
And if you click to delete-item!, you can … right. What does its definition look like?
Re. modules - I was referring to other Clojure projects that I have merely added as 'new modules from existing sources'.
I may be missing sth but I can't see anything in project.clj that would refer to them.
I add them as modules, but cannot remove them permanently - they'll be added back the next time I restart the IDE.
Ok, then you have to delete them from the leiningen toolwindow. Select the project, and remove it from there. It’ll ask if you want to remove the associated module, say “yes"
I’m not sure if I can catch the deletion of a module in IntelliJ and remove the lein part automatically.
Ah, that seems to have worked. It's a bit quirky, since normally I interact with the Project view so I'd like to remove it from there, but as long as there's a reliable way of doing it it's ok.