sts4 icon indicating copy to clipboard operation
sts4 copied to clipboard

Spring properties editor doesn't work on properties files with unusual names (Eclipse)

Open kdvolder opened this issue 3 years ago • 1 comments

Describe the bug

I created a properties file called 'extra.properties'. I am loading this properties file via an entry in application.properties like:

spring.config.import=classpath:extra.properties

This works as expected at runtime.

However the Spring properties editor doesn't work at all on this file. I get no content assist and no error markers. Not even if I explictly open it using 'Open With' context menu and select 'Other >> Generic Editor - Spring Properties'.

It looks like we are using the right editor, because the icon on the file is changed in the editor window, but regardless the editor doesn't provide any kind of spring-specific support in the way of completions or validations.

kdvolder avatar Jan 26 '22 22:01 kdvolder

Try to add an explicit "file association" in the Eclipse settings. This works for me since years.

PatrickGotthard avatar May 15 '22 17:05 PatrickGotthard