cursive

Issues at: https://git.io/cursive-issues
cfleming 2021-02-12T05:00:47.122400Z

Actually, I can’t reproduce that, never mind.

cfleming 2021-02-12T05:05:16.123200Z

@katox You reported in another thread: > Another thing that stopped working in the latest build is that kill stopped working on multi-line strings. The workaround is to to join the lines, then kill. I just checked the code, and nothing has changed here in forever. I think this has always worked like that.

katox 2021-02-12T19:43:02.140900Z

Bad memory then, sorry. I'd expect it to behave like in a sexp so likely projecting...

Shantanu Kumar 2021-02-12T06:56:42.123300Z

@ajarosinski I tried installing your plugin but it doesn’t turn up in plugin search. I’m on Ultimate 2020.3

1
jsyrjala 2021-02-12T09:25:29.127Z

Is this a known problem: REPL tabs are unnamed

jsyrjala 2021-02-15T08:55:08.161200Z

I just sent the email

jsyrjala 2021-02-12T09:26:44.127100Z

Here I have three REPLs running, but their tabs are empty. It would be nice to have some text e.g repl configuration name in them.

2021-02-12T10:07:15.127500Z

hmm, mines show names. Are you setting a name in the config?

2021-02-12T10:07:28.127900Z

jsyrjala 2021-02-12T10:10:01.128300Z

Yes

jsyrjala 2021-02-12T10:17:43.128500Z

Using now IDEA 2020.3.2 and latest Cursive, the issue has been some time now, I don’t remember when this started.

danm 2021-02-12T13:48:58.131200Z

Is there a way I can get Cursive to 'recognise' defspec forms (https://clojure.org/guides/test_check_beginner#_defspec) as tests that I can run with 'run test under caret in repl' and suchlike? At the moment I have to switch to the namespace and manually call the spec in question, which is not a massive hardship it's just I'm used to the shortcuts by now (also the manual run doesn't set the gutter icons on any (is ...) forms in the defspec like 'run test under caret' or 'run all tests in namespace' do (but that's slow when the namespace contains a lot of defspec tests)

Zak Singh 2021-02-19T09:11:07.194100Z

You can resolve it as `deftest`. The last option of `Resolve as` is `Specify...` and let you type the name of the var you want. Just type `deftest` and you’re good to go — https://cursive-ide.com/userguide/macros.html

danm 2021-02-19T12:17:33.195900Z

You know, I was going to say "That doesn't work", because I tried it before and it didn't seem to where it did for other macros I'd told Cursive to interpret as defn, but it looks like it now is working, without me having to re-specify. Fills the gutter icons and everything. All I've done is restart the IDE (which I didn't have to for the other ones), so :man-shrugging::skin-tone-2: , but it's working so hurrah! Ta both

🎉 1
danm 2021-02-12T13:49:44.132200Z

I tried to tell Cursive to recognise/treat defspec like deftest, and that didn't seem to work, and I have to admit beyond that is beyond my current Cursive-fu

2021-02-12T14:58:57.132900Z

Mine also show the correct names

verma 2021-02-12T17:11:25.133600Z

will cursive work with shadow-cljs style imports of npm modules? .. like in the sense jump to definition etc.?

2021-02-12T19:16:50.137100Z

I have “Prettify stacktrace elements with folding” checked in the Cursive settings but stacktraces in the REPL do not appear to be folded (I’m assuming that a folded stacktrace will show the full error and then a folded stacktrace). What should a “folded” stacktrace look like?

2021-02-12T19:18:06.138100Z

Here’s what I’m seeing with “Prettify stacktraces with folding” set to “on”:

2021-02-12T19:26:20.140500Z

Answering my own question here: I think I know what’s going on here. I have a REPL command which restarts my server and which calls tools-ns/refresh which is returning the error. Pressing the “print last stacktrace” button shows a prettified stacktrack with the error at the end as expected.

2021-02-12T19:27:04.140600Z

cfleming 2021-02-12T20:08:16.141100Z

Names should definitely be shown. @jsyrjala can you email me your log file to <mailto:cursive@cursive-ide.com|cursive@cursive-ide.com>?

cfleming 2021-02-12T20:09:58.141300Z

I’m not sure there is. I’ve been meaning to look at this for a while, I think this probably needs to work in a slightly different way due to the phases (running, shrinking etc)

1
cfleming 2021-02-12T20:10:57.141500Z

Not at the moment, but this is something I’m hoping to improve soon. It’ll be subject to the limitations of how insane JavaScript is though.

cfleming 2021-02-12T20:12:41.141700Z

What the prettifying does is fold the Java-y bits and replace them with more Clojurefied versions, e.g. replace package names with namespaces, class names with demunged fn names etc.

cfleming 2021-02-12T20:13:13.141900Z

It doesn’t work for the printed error objects at the moment unfortunately, since it’s regex based and they’re more subject to formatting.

verma 2021-02-12T20:26:08.142100Z

haha, thanks for letting me know and thanks for Cursive! 🍻

jsyrjala 2021-02-12T20:40:20.142300Z

Yes, but how/where to find it? The log file

2021-02-12T21:53:30.142600Z

@cfleming Thanks for the clarification!

2021-02-12T22:14:33.142800Z

I believe it’s Help/Show Log in … and it’s called idea.log