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

Unable to load class 'kotlin.jvm.internal.Intrinsics' #1721

Open
braver-tool opened this issue Mar 30, 2021 · 4 comments
Open

Unable to load class 'kotlin.jvm.internal.Intrinsics' #1721

braver-tool opened this issue Mar 30, 2021 · 4 comments

Comments

@braver-tool
Copy link

braver-tool commented Mar 30, 2021

Showing below error while I updating the version from 4.2.4 to 5.0.0-alpha2

Unable to load class 'kotlin.jvm.internal.Intrinsics'. This is an unexpected error. Please file a bug containing the idea.log file.

I'm using java and Gradle version 3.5.3. How can I fix the above issue?

@sebastiande
Copy link

sebastiande commented Jul 6, 2021

Same for me. There is already a similar issue #1417
@agrosner can you please assist?

It is working in version 680b03a (11.2.2021) and is broken in the next version 88c0781 (13.2.2021)
So basically converting everything to Kotlin breaks the Java part:
88c0781

@sebastiande
Copy link

Adding the following code to the processors build.gradle.kts will fix the problem (even the jar file is then getting quite big for sure)

tasks.withType<Jar> {
    // To add all of the dependencies
    from(sourceSets.main.get().output)

    dependsOn(configurations.runtimeClasspath)
    from({
        configurations.runtimeClasspath.get().filter { it.name.endsWith("jar") }.map { zipTree(it) }
    })
}

@braver-tool
Copy link
Author

braver-tool commented Feb 9, 2022

@agrosner
Still, I've issued with this and am using Java for my project. Error while I updating the version from 4.2.4 to 5.0.0-alpha2,
Unable to load class 'kotlin.jvm.internal.Intrinsics'. This is an unexpected error. Please file a bug containing the idea.log file.

and also I added dependencies for kotlin support in my project. Please assist for the above.

@shilpidaswani
Copy link

@braver-tool were you able to fix this? I am facing the same 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

3 participants