hey! after plugin upgrade to 1.1 version can't mak...
# announcements
p
hey! after plugin upgrade to 1.1 version can't make a project in IDEA with the following error: ErrorKotlin [Internal Error] org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: wrong code generated org.jetbrains.kotlin.codegen.CompilationException Back-end (JVM) Internal error: Couldn't transform method node: next ()Lkotlin/Pair;: has anyone seen it? any workaround? maybe there is a way to downgrade the plugin in IDEA?
m
ptashcka: Could you provide full stack trace?
and code sample where it fails
p
in a minute
we can speak russian btw πŸ™‚
sorry for the delay submitted through IDEA: Error report: 1376101
m
ΠΏΡ€ΠΈΠ²Π΅Ρ‚, моТСшь Π΄Π°Ρ‚ΡŒ Ρ‚Π΅Π»ΠΎ tryProcessingQueue?
p
private fun tryProcessingQueue(): Pair<T, () -> Unit>? { do { val poll = processingQueue.poll()?.queue if (poll == null) { return null } else { if (poll.currentElement == null) { val firstElement = poll.queue.poll() if (firstElement != null) { try { blockedQueues[firstElement.id]!!.currentElement = firstElement } catch(e: Exception) { e.printStackTrace() throw e } if (unblockPeriodSeconds > 0) { poll.nextCall = System.nanoTime() + TimeUnit.NANOSECONDS.convert(unblockPeriodSeconds, SECONDS) delayedQueue.add(poll) } firstElement.timer?.stop() return firstElement.element to { blockQueue.add(firstElement).let { } } } } } } while (true) }
ΠΏΠΎΠΉΠ΄Π΅Ρ‚?
m
Π΄Π°, супСр
Π²Ρ‹Π΄Π΅Π»ΠΈΠ» ΠΌΠΈΠ½ΠΈΠΌΠ°Π»ΡŒΠ½Ρ‹ΠΉ сэмпл https://youtrack.jetbrains.com/issue/KT-16713
p
ΠΊΡ€ΡƒΡ‚ΠΎ! Π° Π΅ΡΡ‚ΡŒ ΠΏΠΎΠ½ΠΈΠΌΠ°Π½ΠΈΠ΅ ΠΏΠΎ Π²Ρ€Π΅ΠΌΠ΅Π½ΠΈ фикса ΠΏΡ€ΠΈΠΌΠ΅Ρ€Π½ΠΎΠ΅?
m
Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎ, ΠΏΠΎΠΏΠ°Π΄Π΅Ρ‚ Π² 1.1.1
фикс Π±ΡƒΠ΄Π΅Ρ‚ Π² 1.1.2 (ΡƒΠΆΠ΅ доступСн Π² snapshotΠ°Ρ…), для 1.1[.1] Π² качСствС воркэраунда ΠΌΠΎΠΆΠ½ΠΎ Π·Π°ΠΌΠ΅Π½ΠΈΡ‚ΡŒ while (true) Π½Π° do ..while(true) ΠΈΠ»ΠΈ вынСсти константу Π² ΠΏΠΎΠ»Π΅/ΠΏΠ΅Ρ€Π΅ΠΌΠ΅Π½Π½ΡƒΡŽ