-
Notifications
You must be signed in to change notification settings - Fork 442
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
Symbol lookup in Java shows duplicates #3854
Comments
@rajinder-yadav Could you try VS Code 1.95.x ? |
Should have been fixed in #3452 , unless this is a different case. Can you share the sample project for which this occurs ? Is it managed by Maven, Gradle, or is it just an unmanaged project (folders and source files, no build tool). Does your project configure 2 different Java versions ? You could try following the instructions at #3452 (comment) . Basically that would help us confirm that it is in fact 2 separate JDKs that are being picked up (based on the URI). Update: One way I can reproduce this behaviour is by taking a Maven multi-module project, where two modules configure different compiler/source versions. You'll end up getting what appears to be duplicate classes when in fact they're just coming from different JDKs. More generally, in #3452 (comment) , I left a note that where a project depends on different versions of the same library, we should probably modify the workspace symbol entry to list the version so it's more clear what's going on. |
Well it's somewhat fixed, still seeing double entries for some symbols. Is the 2nd one really necessary? I believe I was using a nobuild project, but I also tried maven no architype project. Version info
|
|
@rgrunber thanks for clearing that up. I am going to close this bug. |
Type: Bug
When I try to look up a Symbol in a Java project, I am seeing duplicate.
For example, type: CTRL+p to bring up the command field, then type, "#ArrayList".
Extension version: 1.36.0
VS Code version: Code - Insiders 1.96.0-insider (4a98be2738be4ad8647feb52d1e6845e06515dea, 2024-11-08T09:56:49.748Z)
OS version: Linux x64 6.11.6-2-default
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
webnn: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: