Skip to content

CTRL-click navigation does not handle properties on super class correctly #326

Closed
@wilkinsona

Description

@wilkinsona

I've seen two variations of this problem in two different workspaces. In one, I get numerous Unknown property errors. In the other, I don't get any errors but command-click navigation for those same properties does not work.

You should be able to reproduce the problem using STS 4.3.1.RELEASE, a fresh workspace, importing a clone of https://github.com/spring-io/start.spring.io as existing Maven projects, and ignoring the Maven lifecycle problems reported during import. If you open application.yml in start-site you should either see tens of errors, or you should see that command-click (assuming macOS) navigation doesn't work. A good way to see the latter is to scroll to the bottom of the file, hold down command, and mouse of the list of languages. You should see that only default is navigable and that name and id properties are not. The languages property itself is known to be a List<io.spring.initializr.metadata.DefaultMetadataElement>. The default property is on that class but name and id are on its superclass.

You can see a similar problem a little bit further up the file with types property. There you should see that action, tags, and description are all navigable but default, name, and id are not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions