Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code: Another instance of Code is running but not responding

Can't run Visual Studio Code (Windows). This happend a few times now.

I suddenly can't save files while coding and VS Code hanging. When stopping the task by Task Manager

enter image description here

and start VS Code again I get the message:

Another instance of Code is running but not responding. Please close all other instances and try again.

enter image description here

But there is no VS Code Window open. Instead the Task Manager shows more running instances:

enter image description here

Restarting windows helps but is really annoying. Has anyone else this problem and/or an idea to fix this issue?

Thanks in advance.

like image 353
ztom Avatar asked Nov 16 '22 01:11

ztom


2 Answers

I tried everything: restarting Windows, uninstalling and reinstalling VSC, nothing helped. There should be something in the "memory of the last session". And I found it:

Finally, I renamed / deleted the following file to make it not available:

  • Folder %AppData%\Code
  • File storage.json

Now I was able to restart VSC, forcing a clean startup. The file was recreated. Now I could search which content of this file was the reason.

like image 67
Germo Görtz Avatar answered Jun 15 '23 11:06

Germo Görtz


Solution

Restart OS fixed the issue for me.

like image 26
Muhammad Numan Avatar answered Jun 15 '23 11:06

Muhammad Numan