cursive

Issues at: https://git.io/cursive-issues
steveb8n 2020-12-17T07:25:32.418200Z

Q: I have a couple of questions about the testing integrations in Cursive…

AJ Jaro 2020-12-17T16:57:35.419200Z

@steveb8n I have taken a look at the test runner but don’t use it as part of my workflow. Based on what I saw, this is independent of the REPL. No, to part 2. I don’t use Greenlight

steveb8n 2020-12-17T21:12:49.419400Z

@ajarosinski thanks for the reply. That’s what I suspected

cfleming 2020-12-17T21:52:29.419600Z

Right, the new test integration is independent of the REPL, at least for now. I would like to add a “Run tests in open REPL” option, but that’s tricky for intellij reasons which I haven’t had time to look at yet.

cfleming 2020-12-17T21:52:45.419800Z

I don’t know of anyone using Greenlight, no, sorry.

steveb8n 2020-12-18T08:52:49.438Z

Thanks for the clarification

steveb8n 2020-12-17T07:26:08.418300Z

1/ how does the new test runner feature work within the REPL? Or does it not?

steveb8n 2020-12-17T07:26:51.418500Z

I use “Run test in REPL” all the time. I can’t see how the new features add new capabilities

steveb8n 2020-12-17T07:27:20.418700Z

2/ is anyone using Greenlight integration tests with a Cursive integration?

steveb8n 2020-12-17T07:27:49.418900Z

I’ve created a simple project to show what I mean: https://github.com/stevebuik/cursive-testing-integrations/blob/master/src/various_tests.clj

wilkerlucio 2020-12-17T22:29:04.421Z

@cfleming hello, one idea I just had here for the deps window, would be nice if it could make separated groups for project vs global aliases, so its easier to understand what alias come from a project, makes sense?

kenny 2020-12-17T22:34:58.423100Z

Refactor > rename is broken in 1.10.0-2020.3. Take this code.

(s/def ::foo int?)
Right click on the keyword. Go to Refactor > Rename. This pops open the modal seen in screenshot 1. Changing "foo" to "foo2" results in a red message saying "'foo2' is not a valid identifier". If I add a double colon in from of "foo2" and click Refactor, the modal closes and nothing happens.

kenny 2020-12-23T21:44:12.466100Z

@cfleming Potentially related to this is usually when your cursor is on a keyword, it will highlight all keywords that are the same. That is not happening in the latest version.

kenny 2020-12-17T22:40:15.423400Z

Opened an issue. https://github.com/cursive-ide/cursive/issues/2473 This is a big issue for my workflow 😬

kenny 2020-12-17T22:40:37.423700Z

It's kinda like it's now treating s/def's as symbols.

cfleming 2020-12-17T23:13:25.423900Z

Ugh, this is probably a side effect of https://github.com/cursive-ide/cursive/issues/2457. There were a bunch of platform changes affecting navigation, I’ll get this fixed ASAP.

kenny 2020-12-17T23:14:02.424200Z

Thank you @cfleming!

cfleming 2020-12-17T23:14:35.424400Z

Sorry for the breakage, a lot of this stuff is really hard to test in automated tests since it’s quite tied to the UI.

kenny 2020-12-17T23:15:22.424600Z

Yeah, that's crossed my mind before. I have no idea how you do it 🙂

cfleming 2020-12-17T23:16:26.424800Z

There are actually some facilities for GUI testing now, but they’re still a pain to use. I actually use them for generating the screenshots in the documentation, so if I document something then as a side effect it gets tested when I regenerate the doc 🙂

cfleming 2020-12-17T23:37:17.425Z

Yes, definitely.