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

Use JVM-IR compiler in scripts #131

Closed
altavir opened this issue Mar 2, 2021 · 2 comments
Closed

Use JVM-IR compiler in scripts #131

altavir opened this issue Mar 2, 2021 · 2 comments

Comments

@altavir
Copy link
Contributor

altavir commented Mar 2, 2021

I get java.lang.NoSuchMethodError: 'boolean kotlinx.serialization.descriptors.SerialDescriptor.isInline()' when using JVM-IR-based serialization inside the notebook. I think the problem arises because scripting does not support IR so far.

@altavir
Copy link
Contributor Author

altavir commented Mar 9, 2021

Here is the reproducer: https://gist.github.com/altavir/ffc4c2fc938cef312e8031a24d968e0c

My theory is that scripting runtime substitutes serialization runtime with the one not containing function only available on IR. I think that the simplest solution is to move the scripting engine to IR since it is backward compatible. IR already is default on Kotlin 1.5.

@altavir
Copy link
Contributor Author

altavir commented Mar 10, 2021

I've localized the problem, it is not actually IR-related (at least it is not the main problem), so I am creating the new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant