Possible bug on auto complete for application.properties and application.yml | IntelliJ Ultimate


Messing around with a newly created spring api, I've stumbled on something that I ain't sure if it's a bug or if I'm just lacking some specific setting on my project or IDEA.

While trying to use the @ConfigurationPro annotation, I've noticed that the IDEA wasn't suggesting an auto completion of any properties declared on my application.yml. I then changed the file to application.properties to test things out - making sure to correct the format - and the IDEA managed to find the properties without fail.

Just to clarify, I'm using IntelliJ IDEA Ultimate 2022.3.2 which already comes with the Spring Boot plugin. On the plugin overview, it says that it should be able to auto complete YAML files. I've also added the spring-boot-configuration-processor dependency and the annotation processor path, so I doubt that would be the issue.

评论操作 固定链接

Please report at https://youtrack.jetbrains.com/newIssue?project=IDEA. Attach a sample project to reproduce and the logs (Help | Collect Logs and Diagnostic Data). Also share `options/filetypes.xml` file from the Configuration directory: https://www.jetbrains.com/help/idea/directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html#config-directory.