Skip to content

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

Closed

Description

@batobolg

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

Activity

  1. added
    for: eclipse
    for: vscode
    and removed on Aug 12, 2024
  2. added this to the 4.25.0.RELEASE milestone on Aug 12, 2024
  3. martinlippert commented on Aug 12, 2024

    @martinlippert
    Member

    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.

  4. added a commit that references this issue on Aug 30, 2024
  5. martinlippert commented on Aug 30, 2024

    @martinlippert
    Member

    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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

for: eclipsefor: vscodetheme: code completiontheme: xml-supporttype: bug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions