Fork me on GitHub
#cursive
<
2021-08-11
>
salam02:08:40

Colin, since you’re around, i’m curious whether there’s any progress on this issue: https://github.com/cursive-ide/cursive/issues/1403 also, the built-in rule map is missing a few core symbols such as cond-> and cond->> .

cfleming02:08:37

I’m not sure about the possibility of keeping the format config in the cljfmt file, I haven’t had a chance to investigate that. I’ll try to look at that soon.

salam20:08:07

the current approach for adding/changing indentation rules for symbols, in my humble opinion, is not quite user-friendly. we need to rely on [Option/Alt + Enter] to add a rule. in order to change one, we need to hunt it down among the long list of symbol+rule pairs in the Preferences/Settings dialog, which becomes a tedious and laborious process if you want to make Cursive's formatting match others' (e.g., cljfmt.) this in turn makes sharing and enforcing indentation rules another headache as you would have to change the rules manually for every one who is using Cursive. an alternative approach with a better developer ergonomics, in my humble opinion again, would be keeping indentation rules in a text file on disk (e.g., indents.edn) and point Cursive at it. and adding/changing rules would be a matter of editing that text file. with this approach, Cursive can keep its internal, default rule set immutable (e.g., no GUI to change it) and the only way to override it would be by editing that file (manually or via GUI). i don't know how difficult this is to implement but it would for sure fix a lot of problems that we have with current approach.

cfleming09:08:14

IntelliJ doesn’t provide a very nice way to do that, unfortunately. There are some similar solutions in IntelliJ now, for things like EditorConfig, so I’ll take a look to see what their solutions look like.

thanks3 3
imre16:08:50

Hmm. It seems I became unable to navigate to namespaces/symbols/files from deps.edn git dependencies. Has anyone experienced this? On 2021.1.3, tried with both latest eap and latest stable cursive.

Alex Miller (Clojure team)16:08:43

If you’re using the new git dep coord format, cursive may need updating to understand it (not sure if it is doing anything there or just using tools.deps)

imre16:08:14

We use the old one actually

Alex Miller (Clojure team)16:08:55

Ok, was just a stab in the dark!

imre16:08:56

Not sure what's wrong really. I've gone all the way back to 1.10.2 but nothing's changed. Tried the invalidate caches dance at each downgrade as well

imre16:08:08

np, thanks for the tip!

imre16:08:04

What's even stranger is that it appears navigation works for some of the git deps but not for others

imre08:08:31

@U0567Q30W any ideas what could be wrong here or how I could find out more?

imre11:08:46

one trouble I'm experiencing is now all the symbols that are defined in those git deps come up undefined, messing up formatting etc.

imre14:08:43

upgraded to 2021.2 and latest cursive EAP, reimported the project, but no luck unfortunately

cfleming08:08:28

I haven’t had a chance to try to repro this, sorry, I can’t think of anything obvious that should be different for git deps.

imre09:08:51

Is there anything I could collect locally that might help?

cfleming09:08:03

I’m not sure, I’ll try to look at this over the weekend and see if I can reproduce it. I’m not really sure what I would be looking for.

imre09:08:27

Thanks. What I haven't tried so far is nuking all of the idea project settings from the repo and trying again, but I'll do that next

imre13:08:09

Okay, I did that but it didn't help

imre13:08:58

But, when I downgraded clojure tools from 1.10.3.933 to 1.10.3.855 it started to work again

imre13:08:26

okay, I did some more investigation: snatched the classpath value being passed to java when I start the repl from cursive

imre13:08:45

and when my system has clojure 1.10.3.933 - several git deps are missing from that classpath value

imre13:08:15

clojure -Srepro -Spath -Sforce gives me the same classpath no matter which version of clojure I'm using

imre13:08:31

so I'm guessing the problem is between Cursive and the cli

cfleming20:08:57

Ok, perhaps it is what Alex suggested then, some change in the git deps handling.

imre20:08:34

Note that I don't use any new-style git dep coordinates. All of them are given as

groupid/libname {:git/url   "full-url"
                 :sha       "full-sha"
                 :deps/root "folder-name"}

cfleming21:08:16

Ok, it looks like others are having similar problems though, so something must have changed there. I’ll try to repro this ASAP

cfleming03:08:38

The fix for this is out now in the latest EAP.

imre16:08:14

in a seemingly random pattern

David Caudill20:08:27

hello! I'm trying to set up a viable build target for Cursive on Windows and really struggling...is there any step by step documentation for windows?

cfleming20:08:46

Hi David, what are the problems you’re experiencing? Cursive should work in basically the same way on Windows as it does on other platforms.

David Caudill20:08:58

So it's a little tough for me to figure out what "layer" my problem exists at right now - i'm totally new to this.

David Caudill20:08:49

I have cursive installed in IntelliJ CE, 2021.1.13

David Caudill20:08:06

I have no build/run configurations and it's unclear to me what should be configured here

cfleming20:08:41

Did that not work for getting a project running and a REPL?

David Caudill20:08:45

my problem is that i see no "Run REPL for new-project"

cfleming20:08:17

Ok. That has been happening recently and may be due to a platform problem, JetBrains have a bug logged about it.

cfleming20:08:41

You can create one manually using the steps here: https://cursive-ide.com/userguide/repl.html

David Caudill20:08:13

thanks, I'll check this out

cfleming20:08:38

I have to step away for a bit, if you’re still having problems drop them here and I’ll reply when I get back.

David Caudill20:08:05

much appreciated!

emccue21:08:14

Ive also done cursive on windows

emccue21:08:31

so if you have more general questions that aren't bugs i can help

David Caudill21:08:03

Thanks! I definitely will!