-
Notifications
You must be signed in to change notification settings - Fork 173
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
Integrate existing Kotlin support to Buildship and let people try it out #222
Comments
Comment by donat Here's how to try it:
What to expect:
|
Comment by oehme I gave it a first spin. I could open a Kotlin script and write some very basic stuff, yay :) However, there seem to be a lot of problems atm (or maybe my install is broken somehow):
I didn't get further than that, since the general slowness and the many error markers make it hard to write something. |
Comment by donat Thanks for sparing time for the evaluation. No, it's not broken, it's just a prototype :) |
The Kotlin build script support is now functional (e.g. loads the correct classpath). It's time to give it another spin and see what's missing/not working. |
Hello, |
Hi @Golvanig, Thanks for the offer! The timing is rather good as a blocking issue in the Kotlin tooling was resolved recently. If you want to try the Kotlin build script support, the steps above are still up-to-date. If you have any feedback or need some help with the setup, feel free to ping us here. |
Hello, I just tried with a new clean neon.3 instance (J2EE package) OK: -- "kt" files are opened as usual java.lang.AbstractMethodError: org.eclipse.buildship.kotlin.GradleKotlinScriptTemplateProvider.getTemplateClasspath(Ljava/util/Map;)Ljava/lang/Iterable; cf attachment |
And
|
I think I found the problem. Buildship is using an experimental interface from Kotlin-Eclipse which hasn't been merged into the main branch. To make it work, you should install Kotlin-Eclipse from the following update site: https://teamcity.jetbrains.com/guestAuth/repository/download/Kotlin_EclipsePlugin/1079489:id/ I'll adjust the link in my post above. |
Hello,
|
Is this project dead? Our users are flocking to IntelliJ. Should I wait on buildship to move all of our build scripts to Kotlin, or is this never gonna happen? |
We're still alive, but there is not much that Buildship actually does - all the work happens in the Kotlin Eclipse plugin. @donat gave me a nice demo some time ago which worked properly, so I'm not sure if something got broken again or if there is some difference in your setup. @donat does it still work for you? |
It's been a while since we worked on the Kotlin integration. The main functionality is there, but there were a couple of rough edges. We reported the problems to JetBrains, but so far they didn't prioritize them. Besides, the project is largely undocumented so It's really hard to contribute fixes. In any case, we could publish the Kotlin integration as an optional, incubating feature. This way users could give us and JetBrains more feedback. @oehme WDYT? |
Hey @donat! I'm back... XD. Would you mind publishing that incubating version? I'd like to play around with it and see where we're at. Dying to switch our Gradle scripts to Kotlin. |
@calvertdw You can install a snapshot version from this update site (credentials: guest/guest). Frankly, there's a lot of room for improvement in Kotlin-Eclipse. The tooling loads things synchronously when the editor is opened. Also, you have to open and close the editor when you apply a plugin to see proper completion. Nonetheless, if you find another problem you can report it here or at the JetBrains issue tracker. |
Thanks @donat! I'll try to get some issues submitted to them. |
Hi guys, I've also put this question into their discourse instance. Let's see what they will answer: https://discuss.kotlinlang.org/t/youtrack-kotlin-eclipse-project-gone/8161 If you've any information, it would be nice to know them. |
Not much has moved ever since. Last time I've checked the state of Kotlin-Eclipse it was still kind of unusable in production. |
It seems the Kotlin team is looking into this: |
@fwgreen Thanks for the update. I'm looking forward to have a stable Eclipse plugin for Kotlin. |
@fwgreen @donat I've opened this ticket a few month ago and I don't think that JetBrains is working on it (see stage "backlog"). I also don't expect that they start working on this soonish, as it's basically an unique selling point of IntelliJ IDEA to have proper Gradle Kotlin support only in this IDE. So if nobody from the "community" starts working on it, it may takes some time (or forever) until it's done. |
@GFriedrich I understand why Jetbrains might not want to contribute this feature, but why not Gradle? Surely they want to decouple themselves from being an IntelliJ exclusive product. For instance, my team decided to use Gradle because it supports both IDEs. |
We're not in the business of building language support for IDEs ;) Plus, JetBrains is in a much better position to provide support for their own language. We hold the same position with Groovy btw.
We do, to the extent that the IDEs allow us. We are in close contact with JetBrains and will make sure that the Kotlin scripting situation improves. |
Are there any updates? |
Not really. The existing Kotlin integration in Eclipse is simply too unstable to work with Gradle DSL. We'll coordinate with JetBrains how can we improve the situation. I'll close this issue for the time being and reopen when we have an update. |
I totally appreciate the great work the gradle also kotlin developers are doing. But the situation is quite frustrating for the normal users: One of the main motivations to develop gradle kotlin, was to have better IDE support for gradle. Current situation: Gradle Kotlin not usable with Eclipse, Gradle Groovy is the way better option. |
Any update? -- And why is this issue closed? @oehme Your stance is understandable, but 3 years later IntelliJ is still the only IDE with proper support for Kotlin DSL. So if Gradle Kotlin DSL is the future™️ ... |
And another 3hree years gone, maybe my grandchildren will enjoy gradle kotlin dsl in eclipse :P |
https://blog.gradle.org/kotlin-dsl-is-now-the-default-for-new-gradle-builds
|
I understand your frustration, the situation with regards to Buildship's build script support is less than ideal. We have limited resources for supporting the Gradle ecosystem and providing a custom Kotlin language integration is very challenging. At the same time, we do have something that you can check out. In Buildship 3.1.8, we added an incubating Kotlin DSL editor support. This was a result of a Google Summer of Code project completed in 2023. It is most probably not production-ready but has a potential to become one. For more details, check the release announcement: https://discuss.gradle.org/t/buildship-3-1-8-is-now-available/47036. Also, any community help for improving the integration would be greatly appreciated. |
Rest assured that I do feel bad for complaining without offering solutions 😅 |
Issue by donat
Friday Jan 13, 2017 at 10:35 GMT
Motivation
Proposed Change
Code review
See also the full checklist.
The text was updated successfully, but these errors were encountered: