cursive

Issues at: https://git.io/cursive-issues
onetom 2021-03-23T00:23:20.069Z

doesn't :extra-paths [:clj-paths] mean :extra-paths [["src/clj"]]?

2021-03-23T07:01:21.069700Z

If it is replaced as-is, yes, but the tool probably treats it differently. According to https://clojure.org/reference/deps_and_cli, that’s the syntax for using alias names in paths. It works fine from CLI.

borkdude 2021-03-23T13:07:44.070100Z

Just curious, is cursive running with a modified version of tools-deps internally?

sb 2021-03-23T13:29:51.071900Z

I have a prep task `

"yarn-install" ["shell" "yarn" "install"]
in the project.clj.. with
[lein-shell "0.5.0"]
but that isn’t run as in repl.. try to find packages.json from root.. (if I understand good) any idea how to fix it?

cfleming 2021-03-24T07:15:53.081900Z

The problem here is that the CWD of the IntelliJ process is not the same as when running lein from the command line. You’d probably need a way to help shell to find the yarn command since the path will probably be wrong, and also a way to specify to yarn which directory it should install in - I don’t know if that’s possible.

1👍
sb 2021-03-24T09:42:12.083300Z

Ok, thank you!

sb 2021-03-23T13:32:39.073Z

I understand I can add in Cursive setup at “Before launch” NPM script (install). My question is, is that possible run the original project.clj w/ lein shell?

sb 2021-03-23T13:35:12.073100Z

<http://java.io|java.io>.IOException: Cannot run program "yarn" (in directory "/"): error=2, No such file or directory at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128) at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071) at java.base/java.lang.Runtime.exec(Runtime.java:592) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:167) at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:102)

octahedrion 2021-03-23T16:39:29.073300Z

English

octahedrion 2021-03-23T16:40:36.073500Z

actually I found it's the same for any form inside a (comment) block. I can't work out how to stop it indenting forms

octahedrion 2021-03-23T16:41:17.073700Z

I don't want Cursive to help me with formatting unless I explicitly ask it to

denik 2021-03-23T21:58:09.074800Z

@cfleming could cursive get a tap> UI? I’ve been falling back on shadow-cljs inspect but some of my projects don’t require CLJS, even http so it feels a little extra

thheller 2021-03-24T09:37:46.083100Z

yeah its a data inspector

denik 2021-03-31T14:35:59.130300Z

yes!

caleb.macdonaldblack 2021-03-23T23:25:31.076400Z

Any idea why a second double quote is not being automatically inserted when editing a CLJS file in parinfer mode?

cfleming 2021-03-24T08:16:10.082100Z

I’ve never experienced this, and while I don’t do it a lot I do edit CLJS from time to time, always using parinfer.

cfleming 2021-03-24T08:16:50.082300Z

I’m not sure what to try, I’ll have a look at the code tomorrow to see if there’s anything I can think of.

eraserhd 2021-03-24T16:06:08.086400Z

Parinfer shouldn't be doing anything, AFAIK. When quotes are unbalanced, parinfer will leave the file untouched until the user fixes quotes.

caleb.macdonaldblack 2021-03-23T23:25:41.076700Z

CLJ files in parinfer mode work.

caleb.macdonaldblack 2021-03-23T23:25:58.077100Z

Also a CLJS file in paredit or structural off works too

caleb.macdonaldblack 2021-03-23T23:26:07.077400Z

It’s just CLJS with parinfer causing issues

caleb.macdonaldblack 2021-03-23T23:27:28.079Z

This is frustrating because as soon as brackets or quotes are mismatched in parinfer, there is heaps for lag in the editor. So if type one quote, I’m lagging until I close it. So I have to type to quotes and then move my cursor back one space to be inside the quotes.

Azzurite 2021-03-23T23:34:49.079100Z

There is no difference for me between CLJ and CLJS, both work and insert a second " when I type only one

Azzurite 2021-03-23T23:36:15.079300Z

Maybe check the "Editor->General->Smart Keys" section in the intellij settings

cfleming 2021-03-23T23:54:39.079500Z

No, Cursive has two options - use the CLI tools (which really just runs -Sdescribe to get the version and install location, then grabs the uberjar and uses that) or use tools.deps directly, in which case it downloads it from Maven.

cfleming 2021-03-23T23:57:06.079700Z

You mean like a data inspector?