'. '

Kotlin

From APIDesign

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
[[wikipedia:Kotlin_(programming_language)|Kotlin]] is the [[Java]] 2.0 people were always asking for. However it comes with own glitches:
[[wikipedia:Kotlin_(programming_language)|Kotlin]] is the [[Java]] 2.0 people were always asking for. However it comes with own glitches:
-
Try to debug annotation processors in [[Gradle]] (which is the default build tool for [[Android]]) and **Kapt** isn't easy. One has to:
+
Try to debug annotation processors in [[Gradle]] (which is the default build tool for [[Android]]) and '''Kapt''' isn't easy. One has to:
<source lang="bash">
<source lang="bash">
./gradlew --no-daemon clean build -Dkotlin.daemon.jvm.options="-Xdebug,-Xrunjdwp:transport=dt_socket\,address=5006\,server=n\,suspend=n"
./gradlew --no-daemon clean build -Dkotlin.daemon.jvm.options="-Xdebug,-Xrunjdwp:transport=dt_socket\,address=5006\,server=n\,suspend=n"
</source>
</source>
I wish it was as easy as debugging the [[Maven]] in [[NetBeans]] as explained in [[debugger|Use the Debugger. Stupid]] article! Here is the [https://medium.com/@daptronic/annotation-processing-with-kapt-and-gradle-237793f2be57 page that helped], at the end.
I wish it was as easy as debugging the [[Maven]] in [[NetBeans]] as explained in [[debugger|Use the Debugger. Stupid]] article! Here is the [https://medium.com/@daptronic/annotation-processing-with-kapt-and-gradle-237793f2be57 page that helped], at the end.

Revision as of 10:24, 30 November 2018

Kotlin is the Java 2.0 people were always asking for. However it comes with own glitches:

Try to debug annotation processors in Gradle (which is the default build tool for Android) and Kapt isn't easy. One has to:

./gradlew --no-daemon clean build -Dkotlin.daemon.jvm.options="-Xdebug,-Xrunjdwp:transport=dt_socket\,address=5006\,server=n\,suspend=n"

I wish it was as easy as debugging the Maven in NetBeans as explained in Use the Debugger. Stupid article! Here is the page that helped, at the end.

buy