cursive

Issues at: https://git.io/cursive-issues
2020-08-09T01:50:20.115300Z

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 :)

cfleming 2020-08-09T02:06:21.115700Z

@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

šŸ‘ 1
šŸ™‚ 1
2020-08-09T02:55:38.116200Z

works a treat!

2020-08-09T04:58:11.119600Z

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,

jdhollis 2020-08-09T16:01:02.125200Z

I’m running into the same issue this morning.

jdhollis 2020-08-09T16:01:40.125400Z

The only thing I can think of is I just updated my Homebrew install of Clojure. Could that have an impact?

jdhollis 2020-08-09T17:56:50.125600Z

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.

jdhollis 2020-08-09T18:03:44.125800Z

Fixed it.

jdhollis 2020-08-09T18:04:41.126Z

I uninstalled the default Homebrew clojure formula (1.10.1.636) and replaced it with the Clojure tap.

jdhollis 2020-08-09T18:05:37.126400Z

https://clojure.org/news/2020/02/28/clojure-tap

jdhollis 2020-08-09T18:08:10.126600Z

1.10.1.561

jdhollis 2020-08-09T18:25:52.127100Z

641 fails similar to 636.

jdhollis 2020-08-09T18:32:29.127300Z

The issue seems to crop up starting with 624.

jdhollis 2020-08-09T18:32:41.127500Z

619 works fine.

jdhollis 2020-08-09T18:33:03.127700Z

I haven’t tested everything between 561 and 619, but I spot checked a few, and they work fine.

šŸ‘ 1
cfleming 2020-08-09T22:41:05.129600Z

@jd537 Thanks for the investigation! There must have been an API change in that version, I’ll fix that up today.

šŸ‘ 1
cfleming 2020-08-09T23:33:33.130Z

Actually this looks like a bug in deps, -Stree on the command line is broken too, which Cursive relies on.

cfleming 2020-08-09T23:46:15.130200Z

https://clojure.atlassian.net/browse/TDEPS-161

jdhollis 2020-08-10T00:51:14.130400Z

No worries. Happy to help! Took a couple of hours, but hopefully that’ll save everyone else.

jdhollis 2020-08-10T00:51:33.130600Z

(And took so long mostly because I’m on an abysmally slow internet connection at the moment.)

cfleming 2020-08-10T01:04:58.131100Z

The workaround for this is out now in 1.9.4-eap2.

2020-08-09T04:59:39.119900Z

these are my deps settings :

2020-08-09T04:59:43.120100Z

cfleming 2020-08-09T04:59:44.120500Z

If you hit refresh in the toolwindow toolbar, do you get an error message about problems resolving the project?

2020-08-09T05:00:16.120700Z

yeah no… šŸ˜•

cfleming 2020-08-09T05:04:38.120900Z

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?

2020-08-09T05:06:16.121100Z

just looks that way:

2020-08-09T05:06:51.121600Z

incidentally creating a new lein project doesn’t have this issue - ns resolves just fine

cfleming 2020-08-09T05:07:01.121800Z

How did you create this project?

2020-08-09T05:08:14.122Z

using the new project wizard -> deps

2020-08-09T05:08:23.122200Z

I’ll try again fresh šŸ™‚

2020-08-09T05:10:05.122400Z

yeah same problem - i’ve added a couple of dependencies, then update when prompted, but nothing in the dependencies list:

cfleming 2020-08-09T05:11:20.122800Z

What happens if you get rid of those deps?

cfleming 2020-08-09T05:11:36.123Z

i.e. just use {:deps {}}?

2020-08-09T05:11:50.123200Z

same thing šŸ˜•

cfleming 2020-08-09T05:12:22.123400Z

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>?

šŸ‘ 1
2020-08-09T05:12:34.123600Z

sure thing - thanks šŸ™‚

cfleming 2020-08-09T05:26:44.123900Z

@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.

cfleming 2020-08-09T05:27:03.124100Z

I have to go cook dinner for the family, sorry - sorry I don’t have a better answer šŸ˜ž

2020-08-09T05:27:30.124300Z

I’m going to do a fresh intellij / cursive install - thanks anyway @cfleming šŸ™‚ might be something to do with my corporate laptop

cfleming 2020-08-09T05:28:06.124500Z

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.

cfleming 2020-08-09T05:28:17.124700Z

If you can’t get it working let me know and we can investigate further tomorrow.

2020-08-09T05:28:27.124900Z

no wukkas!

jaime 2020-08-09T21:04:16.129400Z

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