Want some fun? Compile the following code and watc...
# announcements
k
Want some fun? Compile the following code and watch your 1.5.0 compiler burn and crash 😄 (already created an issue)
Copy code
interface A {
    fun a(): String = bu
        "test ${unresolved}"
    }
}
Don’t try it in Intellij though. It will crash too.
c
theres tons of youtrack issues about that and 1.5.10 will hopefully come soon and fix it. in the meantime i use 1.4
m
some of them even target 1.5.20 as their fix
c
oh. are there different issues? I’m talking about the issue that freezes idea
j
I just tried to copy paste this code to an Android Studio project running 1.3.72 and it crashes
I guess it is not just a 1.5.0 thingy 😄
Or perhaps android studio uses the 1.5.0 compiler already
m
Could you send us the error
j
it just hangs
on pasting it
there is no error
completely freezes
on restarting android studio it is not pasted in 🙂
c
i pasted it into my project with 1.4.32 and it did not crash.
it does not matter what your project uses it just matters what plugin you have installed
j
@christophsturm what is your kotlin plugin version?
mine is 202-1.5.0-release-764-AS8194.7
I guess it uses that one on the code I try to paste
even if my project uses 1.3
c
211-1.4.32-release-IJ7142.27.
it keeps offering to update to 1.5.0 which i don’t do
d
This issue is known and already fixed. The problem is in kotlin parser which is same for all language version, so issue depends only on plugin version, not on your project settings https://youtrack.jetbrains.com/issue/KT-46455
j
for me I have no issues with plugin 1.5 other than pasting this specific code block 😄
works like a charm
c
i used 1.5 for a day until i just accidentaly triggered the bug while editing code. so now back to 1.4.32
d
As for workaround you can downgrade to 1.4.xx plugin or download preview plugin for 1.5.10: https://youtrack.jetbrains.com/issue/KT-46455#focus=Comments-27-4893755.0-0
for me I have no issues with plugin 1.5 other than pasting this specific code block
This bug was introduced in December. Compiler team uses dev plugins for everyday works which we update to fresh master every two weeks, and the strange (and sad) thing that for all this time no one from us not faced this issue
c
if the last intellij eap cycle would have used 1.5 instead of 1.4.20 it would have been found then
j
@dmitriy.novozhilov I released an app last week that almost brought down our backend as it got stuck in a loop under very specific circumstances and effectively triggered an unwanted load test. Shit happens 🙂 The only thing we can do is learn from it 🙂
❤️ 3
d
@christophsturm true story. But recently kotlin IDE plugin codebase was moved from kotlin repo to intellij repo, and it brings some problems with building plugins from unstable idea branch and unstable kotlin branch in the same time
c
ok i guess in the long run it will make exactly that easier, so it will probably not happen again
k
These things most certainly happen eventually. I actually find these rare occasional bugs somewhat entertaining. Had fun watching Intellij crash several times as I was trying to narrow the cause down.