https://kotlinlang.org logo
#kotest
Title
# kotest
r

Richard Gomez

03/29/2022, 1:17 PM
I recently upgraded to Kotest 5.2.2 + the latest IntelliJ plugin and have started seeing this error when running tests from IDEA. The tests run fine from terminal. The fact that I updated the runner and IDE plugin could be a red herring. Any idea how I can debug this or at least get a stracktrace?
I used the tried-and-true method of commenting everything out to isolate the failure to a helper I'd defined:
Copy code
companion object {
    private val SCANS = listOf(
        Scan(
            1,
            ...
            OffsetDateTime.parse("2022-02-12 00:02:59.036-05"),
        )
    )
Apparently the lack of
T
makes IntelliJ very angry, and it being in the companion object would explain the sudden failure. That said, could the plugin catch this and provide a more helpful error, or would this happen before the plugin has a chance to intervene?
17 Views