cursive icon indicating copy to clipboard operation
cursive copied to clipboard

Sometimes unable to view diff on test failure

Open roberttaylor426 opened this issue 2 years ago • 1 comments

Hi,

The docs suggest that it should be possible to view the reason for a test assertion failing by hovering over the error line:

image

and then view a diff:

image

In previous versions this used to work as advertised, but recently I don't predictably see details of test errors. For example in this testing block titled 'some behaviour' I see:

no-test-error-diff

There's no option to compare the diff, and the error message is of no help understanding what the issue is.

I note that if I compare two strings then I do get the option to view the diff by hitting Alt-Shift-Enter:

test-error-diff

In short there are some unexpected values that can be diffed, and some that can't, and I'd love to be able to see an 'Expected' / 'Actual' for all test errors. What am I doing wrong please?

Cursive version: 1.12.4-2022.1 Intellij version: IC-221.5787.3

roberttaylor426 avatar Aug 10 '22 12:08 roberttaylor426

This feature was working for me great, but then just stopped working, and I have the same behavior as described above. I'm also on the same Cursive version: 1.12.4-2022.1, maybe I was auto-updated to a non-working version, not sure.

jtrunick avatar Aug 11 '22 02:08 jtrunick

I too used this feature a lot. Unfortunately working with tests without this context does make things more difficult than they need to be (see examples below). It have since rolled back to an older version of IntelliJ + Cursive to get this feature back as it does appear to be an issue with 1.12.4 (possible with the addition of https://github.com/cursive-ide/cursive/issues/2387 ?).

Intellij: 2022.2.3 Cursive: 1.12.4-2022.2 image

Intellij: 2021.3.3 Cursive: 1.12.3-2021.3 image

guess-burger avatar Oct 12 '22 11:10 guess-burger

I can confirm this was also previously working with Intellij: 2022.1.4, Cursive: 1.12.3-2022.1

guess-burger avatar Oct 12 '22 11:10 guess-burger

+1 to getting this fixed. I'm experiencing the behaviour describe above with Cursive version 1.12.4-2022.2 (Personal licence).

alinposho avatar Nov 28 '22 14:11 alinposho

@cursive-ide, would it be possible to create a 1.12.3-2022.2(.4) release which could be used in the meantime? Not being able to see the diff has a substantial workflow impact (at least for me). Thanks!

mustajarvi avatar Dec 01 '22 13:12 mustajarvi