intellism / vscode-comment-translate

vscode 注释翻译插件, 不干扰正常代码,方便快速阅读源码。
https://marketplace.visualstudio.com/items?itemName=intellsmi.comment-translate
MIT License
484 stars 77 forks source link

插件调试启动报错 , 恳求能够得到帮助 #231

Open Super1Windcloud opened 1 month ago

Super1Windcloud commented 1 month ago

Activating extension 'intellsmi.comment-translate' failed: Module build failed: Error: ENOENT: no such file or directory, open 'A:\Github_Learning_Project\comment_translate\node_modules\vscode-textmate\release\main.js'.


手动安装vscode-textmate 也报错

npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!

oniguruma@7.2.3 install A:\Github_Learning_Project\comment_translate\node_modules\oniguruma node-gyp rebuild

A:\Github_Learning_Project\comment_translate\node_modules\oniguruma>if not defined npm_config_node_gyp (node "A:\nvm_node_list\nvm\v12.22.12\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "A:\nvm_node_list\nvm\v12.22.12\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) gyp ERR! find VS gyp ERR! find VS msvs_version not set from command line or npm config gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt gyp ERR! find VS unknown version "undefined" found at "A:\VS2022" gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use gyp ERR! find VS looking for Visual Studio 2015 gyp ERR! find VS - not found gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8 gyp ERR! find VS gyp ERR! find VS ** gyp ERR! find VS You need to install the latest version of Visual Studio gyp ERR! find VS including the "Desktop development with C++" workload. gyp ERR! find VS For more information consult the documentation at: gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows gyp ERR! find VS ** gyp ERR! find VS gyp ERR! configure error gyp ERR! stack Error: Could not find any Visual Studio installation to use gyp ERR! stack at VisualStudioFinder.fail (A:\nvm_node_list\nvm\v12.22.12\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47) gyp ERR! stack at A:\nvm_node_list\nvm\v12.22.12\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:16 gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (A:\nvm_node_list\nvm\v12.22.12\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:351:14) gyp ERR! stack at A:\nvm_node_list\nvm\v12.22.12\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:70:14 gyp ERR! stack at A:\nvm_node_list\nvm\v12.22.12\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:372:16 gyp ERR! stack at A:\nvm_node_list\nvm\v12.22.12\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7 gyp ERR! stack at A:\nvm_node_list\nvm\v12.22.12\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16 gyp ERR! stack at ChildProcess.exithandler (child_process.js:315:5) gyp ERR! stack at ChildProcess.emit (events.js:314:20) gyp ERR! stack at maybeClose (internal/child_process.js:1022:16) gyp ERR! System Windows_NT 10.0.22631 gyp ERR! command "A:\nvm_node_list\nodejs\node.exe" "A:\nvm_node_list\nvm\v12.22.12\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd A:\Github_Learning_Project\comment_translate\node_modules\oniguruma gyp ERR! node -v v12.22.12 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! oniguruma@7.2.3 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the oniguruma@7.2.3 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\superuse\AppData\Roaming\npm-cache_logs\2024-08-06T16_24_20_615Z-debug.log

intellism commented 1 month ago

是如何启动调试的,在vscode里面已经配置过调试启动。 image

Super1Windcloud commented 1 month ago

我看你typescript Nodejs声明文件是 @type/node: "12.12 " 我才安装的Node12 版本

intellism commented 1 month ago

我看你typescript Nodejs声明文件是 @type/node: "12.12 " 我才安装的Node12 版本

嗯嗯。 这个是很早之前生成的了,内部api版本要求不高。wasm编译引入的时候比较晚了,没有测试过node v12是否编译的过。