在我公司的笔记本电脑上,他们对vscode版本进行了集中更新,从一天到另一天,我的代码甚至没有开始。 (通过公司的笔记本电脑意味着我实际上没有管理员权限,只能尝试一些操作来调试它)
我想知道如何调试此问题,因为可能是某些其他插件或我可能拥有的某些插件可能导致了此问题。 似乎并没有影响其他用户,所以他们并不真正知道会有多少。
无论如何,这是我从终端或启动器启动它时的堆栈跟踪。
Z:\>code
Error: Cannot find module 'iconv-lite'
Require stack:
- C:\Program Files\Microsoft VS Code\resources\app\out\bootstrap-amd.js
- C:\Program Files\Microsoft VS Code\resources\app\out\cli.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:844:17)
at Module._load (internal/modules/cjs/loader.js:737:27)
at Function.Module._load (electron/js2c/asar.js:769:28)
at Module.require (internal/modules/cjs/loader.js:899:19)
at require (internal/modules/cjs/helpers.js:74:18)
at t.load (C:\Program Files\Microsoft VS Code\resources\app\out\vs\loader.js:16:119)
at e.load (C:\Program Files\Microsoft VS Code\resources\app\out\vs\loader.js:13:586)
at i (C:\Program Files\Microsoft VS Code\resources\app\out\vs\loader.js:29:189)
at Object.errorback (C:\Program Files\Microsoft VS Code\resources\app\out\vs\loader.js:29:313)
at e.triggerErrorback (C:\Program Files\Microsoft VS Code\resources\app\out\vs\loader.js:13:955)
at C:\Program Files\Microsoft VS Code\resources\app\out\vs\loader.js:13:659
at ReadFileContext.callback (C:\Program Files\Microsoft VS Code\resources\app\out\vs\loader.js:16:494)
at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:239:13) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Program Files\\Microsoft VS Code\\resources\\app\\out\\bootstrap-amd.js',
'C:\\Program Files\\Microsoft VS Code\\resources\\app\\out\\cli.js'
],
phase: 'loading',
moduleId: 'iconv-lite',
neededBy: [ 'vs/base/node/encoding' ]
}
Error: Cannot find module 'vscode-minimist'
Require stack:
- C:\Program Files\Microsoft VS Code\resources\app\out\bootstrap-amd.js
- C:\Program Files\Microsoft VS Code\resources\app\out\cli.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:844:17)
at Module._load (internal/modules/cjs/loader.js:737:27)
at Function.Module._load (electron/js2c/asar.js:769:28)
at Module.require (internal/modules/cjs/loader.js:899:19)
at require (internal/modules/cjs/helpers.js:74:18)
at t.load (C:\Program Files\Microsoft VS Code\resources\app\out\vs\loader.js:16:119)
at e.load (C:\Program Files\Microsoft VS Code\resources\app\out\vs\loader.js:13:586)
at i (C:\Program Files\Microsoft VS Code\resources\app\out\vs\loader.js:29:189)
at Object.errorback (C:\Program Files\Microsoft VS Code\resources\app\out\vs\loader.js:29:313)
at e.triggerErrorback (C:\Program Files\Microsoft VS Code\resources\app\out\vs\loader.js:13:955)
at C:\Program Files\Microsoft VS Code\resources\app\out\vs\loader.js:13:659
at ReadFileContext.callback (C:\Program Files\Microsoft VS Code\resources\app\out\vs\loader.js:16:494)
at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:239:13) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Program Files\\Microsoft VS Code\\resources\\app\\out\\bootstrap-amd.js',
'C:\\Program Files\\Microsoft VS Code\\resources\\app\\out\\cli.js'
],
phase: 'loading',
moduleId: 'vscode-minimist',
neededBy: [ 'vs/platform/environment/node/argv' ]
}
知道我可以尝试什么吗?这可能是我这方面的一些配置问题。 我相信这是最新更新的版本: https://code.visualstudio.com/updates/v1_49
我现在正在尝试运行不带插件的vscode的便携式版本,以尝试找出问题所在,如果有趣的话,这是我在用户配置文件文件夹中找到的扩展名:
ms-azuretools.vscode-docker-1.1.0
ms-vscode.vscode-typescript-tslint-plugin-1.2.3
naco-siren.gradle-language-0.2.3
richardwillis.vscode-gradle-2.4.14
shd101wyy.markdown-preview-enhanced-0.5.13
tht13.html-preview-vscode-0.2.5
zxh404.vscode-proto3-0.4.2
abusaidm.html-snippets-0.2.1
angular.ng-template-0.1001.0
dbaeumer.jshint-0.10.21
dbaeumer.vscode-eslint-2.1.1
eamodio.gitlens-10.2.2
ecmel.vscode-html-css-0.2.3
esbenp.prettier-vscode-5.5.0
hookyqr.beautify-1.5.0
marlon407.code-groovy-0.1.2