Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

supertypes returns empty list #3205

Open
nalbion opened this issue Jun 27, 2024 · 2 comments
Open

supertypes returns empty list #3205

nalbion opened this issue Jun 27, 2024 · 2 comments

Comments

@nalbion
Copy link

nalbion commented Jun 27, 2024

I'm able to get typeHierarchy/subtypes returning a subclass, but typeHierarchy/supertypes returns an empty list for package_a.Foo:

 package package_a;

public interface FooInterface {
    void foo(String bar);
}

public class BaseFoo implements FooInterface {
    public void foo(String bar) {
        System.out.println("BaseFoo " + bar);
    }
}

public class Foo extends BaseFoo {
	public Foo() {
		System.out.println("Foo() in package_a");	
	}

	public Foo(String bar) {
		System.out.println("Foo " + bar);
	}

	public void foo(String bar) {
		System.out.println("Foo " + bar);
	}
}
@nalbion
Copy link
Author

nalbion commented Jul 5, 2024

typeHierarchy/subtypes is also returning empty, even though textDocument/prepareTypeHierarchy works

@rgrunber
Copy link
Contributor

Do you have the exact protocol request/responses when you perform these actions ? Are there any errors emitted in the logs ?

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

No branches or pull requests

2 participants