Skip to content
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

Properties are not mapped to Kotlin sources #1362

Open
ttntrifork opened this issue Aug 2, 2024 · 2 comments
Open

Properties are not mapped to Kotlin sources #1362

ttntrifork opened this issue Aug 2, 2024 · 2 comments
Labels
enhancement New feature or request kotlin-support

Comments

@ttntrifork
Copy link

ttntrifork commented Aug 2, 2024

I installed the plugin after seing this blog post: https://quarkus.io/blog/intellij-quarkus-tools-1.11.0/#configs-all-the-way-down

However, while IDEA now recognizes the files application-dev.properties and application-test.properties as Quarkus properties, it does not recognize ANY properties used from Kotlin classes (not even in normal application.properties), and marks the properties with a warning: Unrecognized property 'my.properties.enabled', it is not referenced in any Java files

This works fine without the plugin using IDEAs default Quarkus integration (it maps properties in application.properties to Kotlin source files)

@ConfigMapping(prefix = "my.properties")
interface MyProperties {

    @WithDefault("false")
    fun enabled(): Boolean

If setting my.properties.enabled=true IDEA reports the property as not referenced in any Java files.

The properties are read and mapped correctly at runtime into the kotlin application code

@fbricon
Copy link
Contributor

fbricon commented Aug 2, 2024

Yeah Kotlin is not supported at the moment

@angelozerr angelozerr added enhancement New feature or request kotlin-support labels Aug 7, 2024
@angelozerr
Copy link
Contributor

Same issue than #482

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request kotlin-support
Projects
None yet
Development

No branches or pull requests

3 participants