vscode不再在mac上打开了

时间:2018-05-21 08:27:20

标签: visual-studio-code

我已经使用了vscode一段时间了,并且正在以root身份使用它 - 我知道我不应该但直到最近才知道原因。

一段时间后代码会启动并打开一个空白页面。运行代码--disable-extensions工作了几次,所以我继续使用它。

现在似乎没有什么能让它运转起来。我运行了代码--verbose并获得了以下输出。

[main 10:19:03 AM] Resolving machine identifier...
[main 10:19:03 AM] Resolved machine identifier: f83dc69140adei345i567ijbusv9676bfgsf35b1fb49bac751ab456542fba
[main 10:19:03 AM] update#setState idle
2018-05-21 10:19:04.025 Electron[14154:178705] *** WARNING: Textured window <AtomNSWindow: 0x7ff0b9836c30> is getting an implicitly transparent titlebar. This will break when linking against newer SDKs. Use NSWindow's -titlebarAppearsTransparent=YES instead.
¢[14154:0521/101914.882321:INFO:CONSOLE(7)] "Loading "vs/workbench/workbench.main" failed", source: /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js (7)
[14154:0521/101914.882424:INFO:CONSOLE(7)] "Detail: ", source: /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js (7)
[14154:0521/101914.882478:INFO:CONSOLE(7)] "Error: EACCES: permission denied, open '/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js'", source: /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js (7)
[14154:0521/101914.882528:INFO:CONSOLE(7)] "Here are the modules that depend on it:", source: /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js (7)
[14154:0521/101914.882572:INFO:CONSOLE(7)] "===anonymous1===", source: /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js (7)
¢›3434[main 10:19:33 AM] update#checkForUpdates, state =  idle
[main 10:19:33 AM] update#setState checking for updates
[main 10:19:35 AM] update#setState idle
[14154:0521/101945.768309:INFO:CONSOLE(80)] "Uncaught Error: ENOENT: no such file or directory, scandir '/Users/user/Library/Application Support/Code/clp'

Error: ENOENT: no such file or directory, scandir '/Users/user/Library/Application Support/Code/clp'", source: file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js (80)`

此外,当我运行上述操作时,我会得到一个占用大量CPU的进程 - 有时高达250%。

enter image description here

代码由我的本地用户帐户运行。

我尝试通过在应用程序中删除它,从我的用户目录中删除.vscode并从〜/ Library / Application Support /中删除代码然后重新安装来卸载vscode。重新安装后也出现同样的问题。

有关修复的任何解决方案甚至想法吗?

0 个答案:

没有答案