microsoft / vscode-java-dependency

Manage Java projects in Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-dependency
MIT License
140 stars 68 forks source link

Auto reveal in java project view sometimes don't work #806

Closed xzbdmw closed 6 months ago

xzbdmw commented 6 months ago

There need to be a mauanally open in java project view command, Only "go to definition" in my source code file can auto reveal current file in java project view, other command such as workspace symbols search and "go to definition" in jdk source code file failed to auto reveal.

https://github.com/microsoft/vscode-java-dependency/assets/97848247/8b5bd8d1-5c8f-443a-bbf2-8df88d8c77dc

jdneo commented 6 months ago

Is there any error in the server log? https://github.com/redhat-developer/vscode-java/wiki/Troubleshooting#get-the-java-language-servers-workspace-logs

xzbdmw commented 6 months ago

seems no problem when I do a symbol search and auto reveal don't work

!ENTRY org.eclipse.jdt.ls.core 1 0 2023-12-11 15:56:26.522 !MESSAGE >> java/validateDocument

!ENTRY org.eclipse.jdt.ls.core 1 0 2023-12-11 15:56:26.935 !MESSAGE begin problem for /MMain.java

!ENTRY org.eclipse.jdt.ls.core 1 0 2023-12-11 15:56:26.935 !MESSAGE 0 problems reported for /MMain.java

!ENTRY org.eclipse.jdt.ls.core 1 0 2023-12-11 15:56:26.936 !MESSAGE Validated 1. Took 9 ms

!ENTRY org.eclipse.jdt.ls.core 1 0 2023-12-11 15:56:29.398 !MESSAGE >> java/validateDocument

!ENTRY org.eclipse.jdt.ls.core 1 0 2023-12-11 15:56:29.809 !MESSAGE begin problem for /MMain.java

!ENTRY org.eclipse.jdt.ls.core 1 0 2023-12-11 15:56:29.809 !MESSAGE 0 problems reported for /MMain.java

!ENTRY org.eclipse.jdt.ls.core 1 0 2023-12-11 15:56:29.809 !MESSAGE Validated 1. Took 5 ms

!ENTRY org.eclipse.jdt.ls.core 1 0 2023-12-11 15:56:35.372 !MESSAGE >> java/validateDocument

!ENTRY org.eclipse.jdt.ls.core 1 0 2023-12-11 15:56:35.783 !MESSAGE begin problem for /MMain.java

!ENTRY org.eclipse.jdt.ls.core 1 0 2023-12-11 15:56:35.783 !MESSAGE 0 problems reported for /MMain.java

!ENTRY org.eclipse.jdt.ls.core 1 0 2023-12-11 15:56:35.784 !MESSAGE Validated 1. Took 6 ms

xzbdmw commented 6 months ago

After switching to JDK17 problem solved