Fork me on GitHub
#cursive
<
2020-09-15
>
cfleming05:09:01

@U083D6HK9 This includes the protocol name resolution fix.

3
salam05:09:38

does “structural selection in let” mean semantic highlighting in let binding vector? ah, never mind. it’s what i thought it is, which is awesome! 🎉 i noticed the github issue has a comment that has a request for the same behavior for map literals. will this work there as well?

stijn09:09:17

> When extending selection in maps or let-binding or similar forms (e.g. cond, assoc pairs etc) the pairs of forms will now be selected as an intermediate step. Nice!!

salam15:09:55

as a heavy user of “extend/shrink selection”, this is a huge quality of life improvement! thanks!

Empperi05:09:24

Cheers @cfleming, stub generation works now! :thumbsup:

cfleming07:09:50

Nice, thanks for letting me know!

vmarcinko05:09:42

Just asking is this even possible in IDEA/Cursive (not implemented yet, I'm aware) - to customize IDEA to pretty print various content types (say application/edn) in HTTP responses.... Currently JSON gets pretty printed, but EDN not:

GET 

HTTP/1.1 400 Bad Request
Date: Tue, 15 Sep 2020 05:57:27 GMT
Content-Type: application/edn; charset=utf-8
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: *
Access-Control-Allow-Headers: *
Content-Length: 456
Server: Jetty(9.4.28.v20200408)

{:spec "(spec-tools.core/spec {:spec (clojure.spec.alpha/keys :req-un [:spec$6285/s1 :spec$6285/s2]), :type :map, :leaf? false})", :problems [{:path [:s2], :pred "(clojure.core/fn [%] (clojure.core/re-matches #\"[a-z]*\" %))", :val "worldz123", :via [:spec$6285/s2 :my-clojure-demo.api/only-small-letters-spec], :in [:s2]}], :type :reitit.coercion/request-coercion, :coercion :spec, :value {:s1 "abcorldwbh", :s2 "worldz123"}, :in [:request :query-params]}

cfleming08:09:37

I don’t know, could you file an issue to look into it?

vmarcinko06:09:39

I find using IDEA's HTTP request support nice - similar to curl/httpie/postman, probably weaker than some, but nice to have everything in one place, no context switching

salam15:09:14

yes, this is one of those “easter egg” features that i use to impress my colleagues. 😉

vmarcinko06:09:15

(btw, also found that most of IDEA users are barely aware of it existing)

cmdrdats09:09:38

@cfleming has the matching paren highlighting changed? I've upgraded from a goodness-knows-how-old version of cursive to the latest, and keep hitting newline on the wrong paren now - it's like it used to match on the paren before the caret, and now it highlights based on the current paren?

cfleming10:09:23

@U050CLJ53 Can you show a screenshot of what you mean? I’m not seeing what I think you mean here, but I might be wrong.

cmdrdats10:09:14

So, in this case, I (think I) expected the highlight on the paren by the + instead of fn

cmdrdats10:09:07

the only reason I noticed this is because I'm suddenly getting it wrong very consistently

cmdrdats10:09:12

if I change away from block caret, it acts correctly :mindblown:

cfleming10:09:26

I was just going to ask where your caret was 🙂

cmdrdats10:09:52

must be an intellij weirdness?

cfleming10:09:30

Maybe, I’ve never used the block caret, so it’s not clear to me exactly where the caret is. I would assume that screenshot is the equivalent of having the caret before the final paren, but you’re right that that highlighting makes it look like it’s after it.

cmdrdats10:09:21

ye, the actual 'position' of the caret on block caret is to the left of the block - I assumed this was just a display thing :rolling_on_the_floor_laughing:

cmdrdats10:09:25

but cool - I'm happy to just switch to pipe caret - it sorts the issue out!

cfleming10:09:15

Yes, my official recommendation is Don’t Do That.

cmdrdats10:09:11

:rolling_on_the_floor_laughing:

cmdrdats10:09:57

thanks for the feedback 🙂

helios10:09:32

After updating cursive a few minutes ago, datomic stuff looks a little weirder (i have generated stubs):

helios10:09:59

although i can imagine that those things can't be resolved by cursive, it makes all my queries look like something is wrong

helios10:09:48

(intelij 2020.2, latest cursive 1.9.4-eap4, JDK 11 through Graal)

imre11:09:19

Have you your stubs generated?

imre11:09:51

Ah ai see you do, nvm

imre11:09:31

Invalidate caches?

helios11:09:12

done both, no avail

stijn15:09:37

I can confirm I see the same issue

cfleming06:09:46

@U0AD3JSHL Thanks, yes, I’ll fix that and probably release the fix tomorrow.

🙏 6
kenny15:09:45

After updating to the latest Cursive (1.9.4-eap4-2020.2), my monorepo style project will continuously ask me to generate stubs for a project. It appears to want to generate stubs for many of the modules in this project. If I keep clicking "Generate now," it'll eventually stop asking. It seems like instead it should ask me to generate stubs for all projects.

kenny15:09:05

Also, after updating to the latest, all (defs in a comment block are now marked as cannot be resolved. Example in the below screenshot.

kenny15:09:57

Also Datomic queries all are marked as unresolved even though they are quoted.

kenny15:09:36

Another one. I assume these are probably all the same issue.

kenny15:09:48

Applying Cursive's auto-format will move the commented out datomic.client.api require too far to the left. Previously it would keep it indented to align with the first datomic.client.api require.

potetm15:09:44

Yeah same here^.

potetm15:09:01

All quoted/commented symbols are now marked as “unresolved.”

Joe R. Smith15:09:57

At some point Cursive changed how Parinfer works w.r.t. to opening a new form. It used to be the case that opening a new parenthesis would add a matching paren at the end of the parent form, e.g., given:

(+ 1 2 3)
If I were to add an opening paren right before 1 I'd get:
(+ (1 2 3))
But at some point the behavior became this:
(+ () 1 2 3)
Is this configurable? I found the former behavior nicer bc if I did want a closing paren anywhere but the end of the current parent form I'd just explicitly place one (and it'd move).

cfleming21:09:34

Yes, I think I’ll need to make this configurable. I’ll do that for the next release.

👍 6
Joe R. Smith12:09:23

Thanks– in the meantime, is it something I can change in a config file or something?

cfleming04:09:11

That’s in eap5, out now.

❤️ 3
cfleming21:09:09

Sorry about the quoted highlighting folks, I’ll fix that today.