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

[Bug] Autocompletion/Importing not working in 3 scenarios #3585

Open
mamilic opened this issue Apr 21, 2024 · 3 comments
Open

[Bug] Autocompletion/Importing not working in 3 scenarios #3585

mamilic opened this issue Apr 21, 2024 · 3 comments
Labels

Comments

@mamilic
Copy link

mamilic commented Apr 21, 2024

There are 3 scenarions where autocompletion/importing does not work.

  1. @NamedQueries({ @NamedQuery(name = InnerClass, query = "SELECT t FROM Test t WHERE t.id = :id") })
    The InnerClass is recognized, but can not be imported into java class. The ineer class is defined within same class where annotation is present.
  2. @NamedQueries({ @NamedQuery(name = "test", query = "SELECT t FROM Test t WHERE t.id = :id"), @NamedQuery(name = "testOne", query = "SELECT t FROM Test t WHERE t.id = :id") })
    @NamedQueries can not be autocompleted and imported. The only way it is working is when there is only one item in array.
  3. `public @interface Test {
    Class<?>[] groups() default {};

List
}`
The List can not be autocompleted, the only way it is working is when Class<?>[] groups() default {}; is commented.

Also, all scenarios are within project attached and well documented. Please take a look.
vs-code-test.zip

Environment
  • Operating System: Arch Linux
  • JDK version: 21
  • Visual Studio Code version: 1.88
  • Java extension version: 1.29
@snjeza
Copy link
Contributor

snjeza commented Apr 24, 2024

This is an upstream jdt.core issue. I can reproduce it in the jdt.core master.

@mamilic Could you, please, create a new issue at https://github.com/eclipse-jdt/eclipse.jdt.core/issues/new

@mamilic
Copy link
Author

mamilic commented Apr 25, 2024

@snjeza The issue has been opened. This is the URL, eclipse-jdt/eclipse.jdt.core#2384. Should we close this issue?

@snjeza
Copy link
Contributor

snjeza commented Apr 25, 2024

@mamilic Thanks. We will close it when eclipse-jdt/eclipse.jdt.core#2384 is fixed.

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

No branches or pull requests

2 participants