-
Notifications
You must be signed in to change notification settings - Fork 461
Troubleshooting
Fred Bricon edited this page Mar 30, 2017
·
13 revisions
Here are a few instructions to help troubleshoot vscode-java.
In some occasions, deleting the Java Language Server workspace directory is helpful to go back to a clean slate. Generally speaking, on the different platforms, the VS Code user workspace storage area can be found under these locations :
- Windows :
%APPDATA%\Code[ - Variant]\User\workspaceStorage\
- MacOS :
$HOME/Library/Application Support/Code[ - Variant]/User/workspaceStorage/
- Linux :
$HOME/.config/Code[ - Variant]/User/workspaceStorage/
Now, if you open the vscode-java logs, you'll see something like:
Executing /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=1044 --add-modules=ALL-SYSTEM
--add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED
-Declipse.application=org.eclipse.jdt.ls.core.id1 -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Dlog.protocol=true -Dlog.level=ALL
-noverify -Xmx1G -jar /Users/fbricon/Dev/projects/vscode-java/server/plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
-configuration /Users/fbricon/Dev/projects/vscode-java/server/config_mac
-data /Users/fbricon/Library/Application Support/Code/User/workspaceStorage/bdea6df99b92680f795ba5759e96cfc4/redhat.java/jdt_ws
The -data
option here gives you the workspace directory, that is /Users/coolusername/Library/Application Support/Code/User/workspaceStorage/bdea6df99b92680f795ba5759e96cfc4/redhat.java/jdt_ws
In case a standalone Java file is open, the workspace directory will be different than the default VS Code one, so make sure you verify the value of data