https://kotlinlang.org logo
#korge
Title
# korge
p

Pablo Caviglia

07/14/2020, 3:19 PM
is it ok to apply this plugin version?
Copy code
korgePluginVersion=1.14.0.0
d

Deactivated User

07/14/2020, 5:22 PM
uhm
it should work
p

Pablo Caviglia

07/14/2020, 5:22 PM
i get korge plugin not found with the apply plugin 'korge' line
and using the class name?
p

Pablo Caviglia

07/14/2020, 5:23 PM
class name?
d

Deactivated User

07/14/2020, 5:23 PM
maybe I fucked the named plugin? because using the class seems to continue working at least
apply<com.soywiz.korge.gradle.KorgeGradlePlugin>()
p

Pablo Caviglia

07/14/2020, 5:23 PM
let me check
i'm using gradle, is that kotlin or gradle ?
d

Deactivated User

07/14/2020, 5:24 PM
if you are using groovy. maybe something like: "apply(com.soywiz.korge.gradle.KorgeGradlePlugin.class)"
p

Pablo Caviglia

07/14/2020, 5:24 PM
ok, let me try that
d

Deactivated User

07/14/2020, 5:24 PM
(untested)
I migrated all the samples to kotlin dsl so not tested in groovy
p

Pablo Caviglia

07/14/2020, 5:25 PM
nope...
the exact error when moving to 1.14.0.0 is this:
Copy code
A problem occurred evaluating root project 'tool_framework_multi_platform'.
> Plugin with id 'korge' not found.
d

Deactivated User

07/14/2020, 5:25 PM
?
where that "korge" comes from?
p

Pablo Caviglia

07/14/2020, 5:26 PM
Copy code
apply plugin: 'korge'
d

Deactivated User

07/14/2020, 5:26 PM
Copy code
apply plugin: com.soywiz.korge.gradle.KorgeGradlePlugin
p

Pablo Caviglia

07/14/2020, 5:26 PM
nope,
Plugin with id 'com.soywiz.korge.gradle.KorgeGradlePlugin' not found.
d

Deactivated User

07/14/2020, 5:26 PM
still I'll check with gradle
p

Pablo Caviglia

07/14/2020, 5:27 PM
👍
the latest working version is this one:
Copy code
korgePluginVersion=1.13.9.0
d

Deactivated User

07/14/2020, 5:27 PM
yeahj, I changed something related to the plugin in the latest one
which is your classpath?
classpath("com.soywiz.korlibs.korge.pluginskorge gradle plugin$korgePluginVersion")
p

Pablo Caviglia

07/14/2020, 5:28 PM
Copy code
classpath("com.soywiz.korlibs.korge.plugins:korge-gradle-plugin-android:$korgePluginVersion")
d

Deactivated User

07/14/2020, 5:28 PM
yeah
that's the problem
I merged both
p

Pablo Caviglia

07/14/2020, 5:28 PM
uhmm, which one should be used ?
d

Deactivated User

07/14/2020, 5:28 PM
should be:
classpath("com.soywiz.korlibs.korge.plugins:korge-gradle-plugin:$korgePluginVersion")
without -android
Then you can apply
korge
or
korge-android
p

Pablo Caviglia

07/14/2020, 5:29 PM
uhhhmm, ok, let me check
getting lot of compilation errors now... weird ones
Unresolved reference: ViewsDslMarker
d

Deactivated User

07/14/2020, 5:32 PM
it is not binary compatible with other stuff, do you have an intermediate library or something?
cleaned up?
p

Pablo Caviglia

07/14/2020, 5:32 PM
nope, cleaning
no... the same, actually getting lot of extra errors that werent there before, i think i'll stick to 1.13.9.0 for a while until i get some time to adjust my code to the changes
d

Deactivated User

07/14/2020, 5:34 PM
okay
were you using ViewsDslMarker in your own code?
p

Pablo Caviglia

07/14/2020, 5:35 PM
yeah, have this for example:
Copy code
inline fun GenericScene.image(
        texture: Bitmap, anchorX: Double = 0.0, anchorY: Double = 0.0, callback: @ViewsDslMarker Image.() -> Unit = {}
): Image = Image(texture, anchorX, anchorY).addTo(sceneContainer).apply(callback)
then got this error too:
Copy code
'var radius: Double' can't be called in this context by implicit receiver. Use the explicit one if necessary
for this circle:
Copy code
circle(radius, radius, radius)
d

Deactivated User

07/14/2020, 5:37 PM
okay, I'll investigate
5 Views