Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backend Internal error: Exception during file facade code generation #356

Closed
holgerbrandl opened this issue Jan 16, 2022 · 2 comments
Closed
Labels
bug Installation and functionality issues REPL involved

Comments

@holgerbrandl
Copy link
Contributor

Consider the following example:

sealed class ShiftID

object WeekEnd : ShiftID()

val shiftModel = sequence {
   yield(WeekEnd)
}


open class ShiftManager {
    val shiftIt = shiftModel.iterator()
}


class InterruptingShiftManager: ShiftManager() {
   
}

Expected: It's legit kotlin , so it should run in a jupyter notebook.

Observed: It fails with

Backend Internal error: Exception during file facade code generation
File being compiled: mock://Line_49.jupyter-kts
The root cause java.lang.RuntimeException was thrown at: org.jetbrains.kotlin.codegen.ImplementationBodyCodegen.generateConstructors(ImplementationBodyCodegen.java:472)

kernel version: Kotlin kernel v. 0.11.0.45, Kotlin v. 1.6.20-dev-6372

@ileasile ileasile added bug Installation and functionality issues REPL involved labels Jan 18, 2022
@ileasile
Copy link
Contributor

This specific issue was fixed in recent versions of Kotlin. However, InterruptingShiftManager still cannot be instantiated due to #355 :(

@holgerbrandl
Copy link
Contributor Author

Thanks for the quick fix and the thorough analysis. I keep my fingers crossed regarding top-level variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Installation and functionality issues REPL involved
Projects
None yet
Development

No branches or pull requests

2 participants