Hi, recently my intellij idea stopped seeing my jv...
# multiplatform
b
Hi, recently my intellij idea stopped seeing my jvmMain correctly. It doesn't recognize any main functions and Run/Debug configuration does not see any classes. It was working before, and I am not sure what changed to break it. Any help would be appreciated.
g
I had a similar issue recently, while renaming the module but not the directory. You could also remove your .idea and re-import the gradle project.
b
Thanks for the suggestion. I tried deleting .idea folder and reimporting it and it seems I am running into an exception now.
An exception occurred applying plugin request [id: 'org.jetbrains.kotlin.multiplatform', version: '1.6.0-RC']
Caused by: org.gradle.api.plugins.InvalidPluginException: An exception occurred applying plugin request [id: 'org.jetbrains.kotlin.multiplatform', version: '1.6.0-RC']
Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin 'org.jetbrains.kotlin.multiplatform'
Caused by: org.gradle.internal.operations.BuildOperationInvocationException: Unknown hardware platform: x86
g
Invalidate cache & restart maybe ? Not sure how it's setup on gradle on your side to understand the issue.
Unknown hardware platform: x86 blob thinking upside down
b
Yeah I am not sure... Found someone with a similar problem but unfortunately no one answered https://discuss.kotlinlang.org/t/unknown-hardware-platform-x86-when-upgrading-mpp-plugin-to-1-5-31-from-1-5-10/23332
Invalidating cache and restarting now breaking the kotlin plugin somehow ``4:28 AM Gradle sync failed: Please initialize at least one Kotlin target in 'project1 (:)'.`
Read more <https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#setting-up-targets> (3 s 166 ms)
4:28 AM	Unable to save plugin settings: The plugin org.jetbrains.kotlin failed to save settings and has been disabled. Please restart IntelliJ IDEA
I think I will just make a new project and move over the code. I have no idea how to resolve this.