testforstephen / vscode-pde

VSCode extension to support Eclipse PDE
18 stars 4 forks source link

Sometimes failed to restart the unsaved VS Code workspace #27

Open testforstephen opened 3 years ago

testforstephen commented 3 years ago

log.txt

Below is a piece of logs when restarting the unsaved workspace again.

!ENTRY org.eclipse.core.resources 2 10035 2020-10-20 11:10:11.172
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

!ENTRY org.apache.felix.scr 4 0 2020-10-20 11:10:14.061
!MESSAGE bundle org.apache.felix.scr:2.1.16.v20200110-1820 (9)Error while disposing components of bundle org.eclipse.core.resources:3.13.800.v20200706-2152 (21)
!STACK 0
java.lang.IllegalStateException: BundleContext is no longer valid org.eclipse.core.resources_3.13.800.v20200706-2152 [21]
...

A workaround is to clean Java language server workspace, or manually clean the directory "redhat.java/jdt_ws/.metadata/.plugins/org.eclipse.core.resources".