KotlinParser does not get configured with the current runtime classpath #5188
-
|
At least in tests, the Kotlin parser is not configured with the runtime classpath as the Java parser is, so types are not resolved. I ended up having to this in my test for a Kotlin recipe test: A similar Java recipe test does not need that. Is that by design? I am assuming this is a test-time only issue, and when running the recipe via |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
Thanks for reaching out @abstratt ! I must admit I'm not fully up to date on our Kotlin support. Perhaps @knutwannheden can provide some more details about the expected usage & patterns here. From what you've shown it does make sense for Kotlin text blocks to be able to access types from both Kotlin and Java by default, with explicit classpath only necessary when additional libraries are used. |
Beta Was this translation helpful? Give feedback.
After a short discussion with Sam, we couldn't find any downsides of going ahead and bootstrapping the parsers (Groovy and Kotlin) with the current runtime classpath.
701f7b2
Next up will be to update the documentation as it was already out of alignment anyway.