Fork me on GitHub
#cursive
<
2019-07-30
>
octahedrion09:07:28

having upgraded from 2018.3 to 2019.2 then downgraded to 2019.1, I notice that matched-bracket highlighting is semi-broken: it now highlights the correct ) for a (, but if your cursor is to the right of a ) i.e. )| and there's an outer paren immediately after, )|), then it highlights the outer paren's ( not the inner one you're on

cfleming10:07:13

2018.3 is still the most stable IntelliJ version to use with Cursive - both the 2019.x releases have serious platform bugs affecting it.

cfleming10:07:17

I’m cautiously optimistic that 2019.2.1 will be better.

woodstock15:07:37

Does there happen to be a blog or newsletter of some sort where I can see things like "this is the best version of intellij to use" without having to bother you in the channel @U0567Q30W?

cfleming17:07:29

@U3BALC2HH I’ve written about it a bit on the mailing list, although I haven’t sent a summary email of the state of the problems - I should do that.

woodstock17:07:51

no worries, thank ya sir!

flowthing11:07:21

The "Resolve foo as..." feature seems to be broken for me. Is that a known issue (possibly related to other symbol resolution issues on 2019.x)?

flowthing11:07:48

Broken as in the menu item does not appear at all for me when I press Alt+Enter.

cfleming17:07:37

@U4ZDX466T The first thing to check there is that the intention is enabled: Preferences | Editor | Intentions | Clojure

flowthing05:07:59

That was it, thanks! I guess I must've accidentally disabled the intention at some point. :thinking_face:

tap16:07:50

Cursive 1.8.2-2019.2 maven central and .m2 are missing from this list. How to bring them back? (dependency autocomplete on project.clj isn't working)

Alex Miller (Clojure team)16:07:15

what version of clj do you have installed?

Alex Miller (Clojure team)16:07:08

if not 1.10.1.466, I would recommend getting latest

tap16:07:56

Updated, still don't see maven central and .m2. Curious, how do you see it could be related, leiningen and clj?

Alex Miller (Clojure team)17:07:40

oh, I missed the project.clj part of that question

Alex Miller (Clojure team)17:07:49

so, wouldn't be related (my bad!)

tap17:07:04

It's actually me was confused. You are right, this could be a problem related to clj as well

Alex Miller (Clojure team)17:07:10

similar problem could occur with a relatively recent clj

Alex Miller (Clojure team)17:07:13

I don't think you should expect to see .m2 there - that's the local cache, not a "repo" (unless that's something cursive integrates together)

Alex Miller (Clojure team)17:07:48

I don't know enough about the middle bits to suggest anything on central

cfleming17:07:56

@tap Does refreshing your lein project manually help?

tap17:07:52

No, it doesn't help.

cfleming17:07:05

I think .m2 did appear there previously as an option you could update the indexes for, but it doesn’t seem to now - that may have changed in recent IntelliJ versions.

SgtZdog17:07:59

Ok, so, getting a little more into this clojure project, and he's using the clojure.test framework for the actual running of the program (it is a testing tool, so it isn't as weird as it sounds). Does Cursive support running deftest functions outside of the leiningen generated test folder?

cfleming17:07:57

Yes, I think that should work.

SgtZdog17:07:02

ok, I'll keep playing around with it. Will it still use the (ns user) of the repl?

SgtZdog17:07:45

(if I get any terms or expressions wrong, let me know, I'm still pretty new to Clojure too. Cursive is helping make the transition much easier)

cfleming17:07:40

Great, glad it’s helping! Making Clojure more accessible is a major goal.

cfleming17:07:58

If you run tests in the REPL, they’ll be run in the ns they come from in the source, not the current REPL ns.

SgtZdog17:07:01

Ok, thanks, that was a very helpful read.

SgtZdog18:07:12

So, I tried running (require my.nested.file.ns) in the repl so that I could do my function calls and got this: UnsupportedOperationException nth not supported on this type: Class clojure.lang.RT.nthFrom (RT.java:947)

SgtZdog18:07:58

nvm, I am just good at making syntax errors.

SgtZdog19:07:03

I'm trying to run the unit test in my src folder and there is no option to run the test where the cursor is.

SgtZdog19:07:32

When I tried to run all tests in the NS I got ArityExceptions @U0567Q30W. Am I doing something wrong or is this a bug/missing feature?

SgtZdog19:07:57

nvm. The original author wrote this testing framework to use the same macro names as clojure.test but they are actually part of the utils of this project. Sorry to have wasted your time.

SgtZdog18:07:14

Is there a way to change the syntax highlighting for macros so that I (as a learner) can more easily differentiate them from functions?

SgtZdog23:07:32

Hey guys, I'm suddenly getting cursive Error running 'REPL': '11' is bad configured when I try to run my REPL debugger. Not sure what's wrong? I tried deleting and comparing against another one in a different project that's working and I have no idea what's wrong.

cfleming23:07:27

Sorry, this is a terrible message that comes back from IntelliJ. It’s referring to your SDK (i.e. the JDK you’re using).

SgtZdog23:07:49

ah, ok, thanks, I'll check that it is set properly

cfleming23:07:51

Usually the easiest fix is just to recreate it (File->Project Structure)

SgtZdog23:07:45

That did it! Thanks. Not sure how I lost my jdk 11, but w/e.

SgtZdog23:07:12

(I looked, and my other project which uses open jdk 8 also has a bad ref to 11, but oh well)