Stackoverflow on startup in Eclipse plugin

I updated the kotlin plugin and buildship plugin today for my eclipse 2019-09 R (4.13.0) installation and now i am getting the following error during “Initializing Java Tooling”. I have the exact same unmodified kotlin gradle project open as before i updated the plugins and did not have this problem before.

java.lang.StackOverflowError
at java.base/java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936)
at com.intellij.util.pico.DefaultPicoContainer.getService(DefaultPicoContainer.java:201)
at com.intellij.mock.MockComponentManager.getService(MockComponentManager.java:99)
at com.intellij.openapi.components.ServiceManager.getService(ServiceManager.java:22)
at org.jetbrains.kotlin.load.kotlin.VirtualFileFinderFactory$SERVICE.getInstance(VirtualFileFinderFactory.kt:30)
at org.jetbrains.kotlin.core.resolve.lang.kotlin.EclipseVirtualFileFinderFactory.create(EclipseVirtualFileFinder.kt:139)
at org.jetbrains.kotlin.core.resolve.lang.kotlin.EclipseVirtualFileFinderFactory.create(EclipseVirtualFileFinder.kt:139)
at org.jetbrains.kotlin.core.resolve.lang.kotlin.EclipseVirtualFileFinderFactory.create(EclipseVirtualFileFinder.kt:139)
at
And a few hundred more of the same line.

I get a similar error if i try to rebuild the project:
Background Indexer Crash Recovery
java.lang.StackOverflowError
at java.base/java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936)
at com.intellij.util.pico.DefaultPicoContainer.getService(DefaultPicoContainer.java:201)
at com.intellij.mock.MockComponentManager.getService(MockComponentManager.java:99)
at com.intellij.openapi.components.ServiceManager.getService(ServiceManager.java:22)
at org.jetbrains.kotlin.load.kotlin.VirtualFileFinderFactory$SERVICE.getInstance(VirtualFileFinderFactory.kt:30)
at org.jetbrains.kotlin.core.resolve.lang.kotlin.EclipseVirtualFileFinderFactory.create(EclipseVirtualFileFinder.kt:139)
at org.jetbrains.kotlin.core.resolve.lang.kotlin.EclipseVirtualFileFinderFactory.create(EclipseVirtualFileFinder.kt:139)

The project in question can be found at https://github.com/exuvo/Aurora-J .

-Edit-
I reverted the plugin back to 0.8.19 (from 0.8.20) and now it works again so it is not the project itself that is wrong.

Its too bad to disappoint you. But i don’t think anyone here will be able to help you. Because the eclipse plugin development is not more active. And from the kotlin slack channel the question i got is “Who use Eclipse anymore”, which implies all kotlin developers are IntelliJ users and kotlin promote IntelliJ Idea for the language development unfortunately. so you only option is to switch to IntelliJ CE version for your kotlin development.

Unfortunately IntelliJ does not support a src directory with mixed code and resources anymore so I can’t use it and I refuse to change my project layout to what in my opinion is an unnecessary obfuscation for no good reason. My second reason is that i program in a lot more languages than just JVM ones and last time i checked IntelliJ did not support them.

Thanks for the reply, but i guess i will have to take up eclipse plugin programming if i want this fixed then :(.

If you are willing to contribute into the plugin i will be more than happy to help you out. I have being going after many JB members in issues and slack channel, but no one seems to be interested in replying on this topic. @pawel.marks mentioned he is working on some experiments on improving kotlin script support for eclipse, but i didn’t here from him after that as well :frowning:. i really like to see a group of remarkable people (qouting marvel :slight_smile: ) getting together to work on improving eclipse plugin for kotlin. May be it would have been better if the plugin was not part of JB infra at all like yourtrack and teamcity.

I would like to take a stab of fixing this stack overflow. How can I get access to the plugin sources?

Should be this https://github.com/JetBrains/kotlin-eclipse