Fork me on GitHub
#cursive
<
2020-07-01
>
royalaid18:07:42

Hey @cfleming, is there any reason why someone would want to autocomplete a symbol when defining a def or defn?

cfleming21:07:51

There isn’t the way it works now, no. I’ve been planning to make a more general fix to this problem (general context sensitive completion) but perhaps I can hack something in the meantime. This is a problem for local bindings too, which is also annoying.

cfleming21:07:03

IntelliJ does actually provide some completion when writing variable declarations if you have unresolved symbols in the scope of the new var, on the theory that you’re probably defining something that’s missing in your code.

royalaid21:07:46

I wonder if there is a good in between, because getting a long.namespace.foo.bar.shaded/flip when I want flip is akward. Maybe just short names as completion?

royalaid21:07:21

(I might be mis-remember how this happens so I will try to capture the bad behavior next time it happens)

cfleming21:07:05

Thanks, if you have especially problematic cases that would be useful.

royalaid18:07:03

and if not would it be possible to have cursive disable symbol completion then?

dpsutton18:07:15

is it possible to rename repls? I'm getting lost which one is cljs, which is port 7000, which is on port 7001, etc

salam19:07:28

this feature appears to be implemented and be shipped with cursive 1.10: https://github.com/cursive-ide/cursive/issues/2282

dpsutton20:07:36

that issue was closed as a dupe of https://github.com/cursive-ide/cursive/issues/1974 which is listed as open. has cursive 1.10 shipped?

dpsutton20:07:23

apparently i'm on 1.9.2-eap8-2020.1 so this isn't "shipped" yet as far as i can tell

dpsutton20:07:30

but big thanks for finding the issue so i can follow along

3
salam20:07:34

ah, i see. no, i don’t think 1.10 has even eaps yet.

cfleming21:07:06

No, it’s not - I had planned to start the EAP for it earlier but 2020.2 threw a spanner in that. I’m going to release 1.9.2 stable shortly, and then I should be able to start the next EAP.

6