unloggedio / intellij-java-plugin

IntelliJ plugin with java language support
https://unlogged.io
Apache License 2.0
12 stars 1 forks source link

No Stack trace assertion options for methods that throw exceptions #16

Open TheAmg opened 5 months ago

TheAmg commented 5 months ago

Describe the bug

On trying to save a candidate that throws an exception, stack trace can't be asserted. The actual trace is serialized on candidate hover, but on save assertions aren't created. Return type seems to be considered void.

Screenshot 2024-06-20 at 3 16 12 PM

Reproduction steps

  1. DirectInvoke a method that throws an exception.
  2. Try to save it as a replay, there will be no assertion options on save ...

Expected behavior

An assertion for the stack trace or part of it to be possible.

Additional context

No response