Hi all š Thanks for making cursive - great tool! š Iām just getting started with clojure & cursive, iām trying to get into the swing of the development workflow. Just wondering if cursive can do code completion when editing deps.edn files for resolving package names and versions. Iām thinking along the line of the npm package tools for intellij. thanks :)
@ashk Yes it can, but there have been bugs in that recently due to IntelliJ API changes. Itās fixed in the latest EAP, 1.9.4-eap1. Thereās some doc about how to switch to EAP versions here; https://cursive-ide.com/userguide/index.html#eap
works a treat!
Just having some difficulties with creating a new deps project Cursive doesnāt seem to be indexing the clojure library so iām getting warning such as āns cannot be resolvedā Also the Dependencies in the Clojure Deps view arenāt being populated Iām I doing something dumb? Please see attached screenshot Cursive: 1.9.4-eap1-2020.2 IntelliJ IDEA 2020.2 (Ultimate Edition) Build #IU-202.6397.94,
Iām running into the same issue this morning.
The only thing I can think of is I just updated my Homebrew install of Clojure. Could that have an impact?
Ok. Hereās a list of things Iāve tried that havenāt workedārebuilt IntelliJās caches via āInvalidate Caches / Restartā, manually removed IntelliJās caches, killed .cpcache both in the project and ~/.clojure, and killed the .idea and did a fresh import from existing sources.
Fixed it.
I uninstalled the default Homebrew clojure
formula (1.10.1.636) and replaced it with the Clojure tap.
1.10.1.561
641 fails similar to 636.
The issue seems to crop up starting with 624.
619 works fine.
I havenāt tested everything between 561 and 619, but I spot checked a few, and they work fine.
@jd537 Thanks for the investigation! There must have been an API change in that version, Iāll fix that up today.
Actually this looks like a bug in deps, -Stree
on the command line is broken too, which Cursive relies on.
No worries. Happy to help! Took a couple of hours, but hopefully thatāll save everyone else.
(And took so long mostly because Iām on an abysmally slow internet connection at the moment.)
The workaround for this is out now in 1.9.4-eap2.
these are my deps settings :
If you hit refresh in the toolwindow toolbar, do you get an error message about problems resolving the project?
yeah noā¦ š
One thing thatās weird is it looks to me like your deps.edn is in your src folder - is that just me seeing it wrong in the screenshot?
just looks that way:
incidentally creating a new lein project doesnāt have this issue - ns resolves just fine
How did you create this project?
using the new project wizard -> deps
Iāll try again fresh š
yeah same problem - iāve added a couple of dependencies, then update when prompted, but nothing in the dependencies list:
What happens if you get rid of those deps?
i.e. just use {:deps {}}
?
same thing š
Thatās really bizarre. Can you email me your log file? Help->Show log in Finder, to <mailto:cursive@cursive-ide.com|cursive@cursive-ide.com>?
sure thing - thanks š
@ashk That is totally bizarre. I donāt know what to suggest, sorry. The stacktrace you mailed isnāt it, I donāt think, because itās at INFO level - I think itās just IntelliJ logging whatās going on.
I have to go cook dinner for the family, sorry - sorry I donāt have a better answer š
Iām going to do a fresh intellij / cursive install - thanks anyway @cfleming š might be something to do with my corporate laptop
The only thing I can suggest if it if were a problem with your deps install, but a) Iād expect you to have problems on the command line, and b) Iād also expect exceptions in Cursive.
If you canāt get it working let me know and we can investigate further tomorrow.
no wukkas!
Hello, previously when I run failing tests using cursive, it will show a pop-up and there is a link "show difference". Right now I don't see it anymore Cursive Version: 1.9.2-2020.1 IntelliJ IDEA 2020.1.3 (Community Edition) Build #IC-201.8538.31, built on July 7, 2020 Runtime version: 11.0.7+10-b765.64 x86_64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 10.15.4 GC: ParNew, ConcurrentMarkSweep Memory: 2014M Cores: 4 Registry: ide.balloon.shadow.size=0 Non-Bundled Plugins: com.alicannklc.tailwind, com.chrisrm.idea.MaterialThemeUI, SQL Query Plugin, com.intellij.plugins.watcher, com.cursiveclojure.cursive