The plugin was updated today to 1.1.34-IC-202, kot...
# kotest
j
The plugin was updated today to 1.1.34-IC-202, kotest_version=4.4.3
s
What spec style are you using ?
j
StringSpec.
s
It's possible something broke in the latest plugin - can you rollback and I'll fix and re-release
j
This is an example:
Copy code
class BookBuilderTest : StringSpec( {
        val book = Book(
            isbn = "1234"
        )
        "Canary test should pass" {
            true shouldBe true
        }
        "Instantiating Book should work" {
            book.isbn shouldBe  "1234"
        }
        "Updating a book with another book should work" {
            val builder = BookBuilder()
            builder.data.author should beEmpty()
            val update = Book(author = "Feynstein")
            builder.updateData(update)
            builder.data.author shouldBe "Feynstein"
        }
})
You mean roll back the plugin to the version before Apr 28?
s
yep
1.1.31 I think
j
I just noticed that I have a plugin named kotlintest installed that seems to be abandoned. Could that be the cause?
s
kotlintest was the previous name of the project, but it was changed last april
so you should uninstall the kotlintest plugin and install the kotest one
j
I had both installed somehow. I've just removed the old one.
s
ok let me know if it's fixed
j
Testing right now
👍🏻 1
s
I get this on latest plugin FYI
j
That's how it used to look in my installation, too.
Ok, I've uninstalled the kotlintest plugin.
Gutter icons still missing, and I get an error on Startup. Root cause seems to be
Caused by: java.lang.IllegalStateException: KotlinExactPackageIndex seems corrupted.
I've got the full stacktrace if you're interested.
s
try file menu -> invalidate caches
(or whatever menu it might be on a mac)
seems like the cache for that project is corrupt
j
I'm on Linux.
s
ok same as me
file -> invalidate caches
j
Ok, that helped with the error on startup. Thanks.
s
restart intellij, and intellij will rebuild its local cache
j
Still no luck with the icons.
s
and if that doesn't work, I'll take a look at the stack trace
is intellij recaching? It should take a minute
also what version of intellij are you on
j
Seems to be idle. I'll try to rebuild my gradle project.
s
did you check both boxes btw on the invalidate
j
Yes, both boxes checked. The error on startup is gone.
Intellij version is 2021.1 Ultimate. The build from April 6. Sorry, I seem to dumb to take a screenshot of the dialog box.
I'll try to downgrade the kotest plugin now
s
🙂
one min
before you do that
Copy code
class BookBuilderTest2 : FunSpec({
   test("Canary test should pass") {
      true shouldBe true
   }
})
can you paste this in
so we can see if it's just string spec
or any test suite
j
Sure. One sec.
Oh. The icons are back.
s
heh
on string spec too ?
j
Seems like it was still indexing in the background.
s
yeah the invalidate does take a few minutes usually
j
Yes, I see them for both StringSpec and FunSpec now.
s
awesome
j
Yep, everything seems to work again. Awesome, thanks for your help!
👍 1
👍🏻 1