sts4 icon indicating copy to clipboard operation
sts4 copied to clipboard

When editing a Spring XML configuration file, the package names and class names do not appear accurately

Open batobolg opened this issue 2 years ago • 2 comments

When editing a Spring XML configuration file, the package names and class names do not appear accurately.

To Reproduce My test project is simple, I have just one package test.java and one Class TestMain.java when I make a Spring XML configuration file, and edit it like below , it not show up my class name at the top

Sample image

the error log is image

batobolg avatar Aug 08 '24 04:08 batobolg

Looks like the auto completion proposals that show up while trying test.java. or somewhat weird and don't fit well. When you invoke auto-completion manually after typing test.java., the proposals are are a much better fit here. Let me investigate this so see what is going on here and how we could improve this.

martinlippert avatar Aug 12 '24 11:08 martinlippert

I made some changes to the underlying mechanism that produces better results than before. It is still not optimal, for example it doesn't show up class proposals for types that are not public (whereas having a non-public class as bean is totally fine in Spring). But reworking that part requires us to change the way we identify the proposals altogether, so a lot more work.

@batobolg Feel free to give this improved version a try. The snapshot builds will be published here sometime soon: https://cdn.spring.io/spring-tools/snapshot/STS4/nightly-distributions.html

(make sure you grab a build that is older than 4.25.0.202408300825)

martinlippert avatar Aug 30 '24 13:08 martinlippert