Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第三方node依赖,路径错误 #590

Closed
Axe-hyx opened this issue Jul 1, 2020 · 4 comments
Closed

第三方node依赖,路径错误 #590

Axe-hyx opened this issue Jul 1, 2020 · 4 comments

Comments

@Axe-hyx
Copy link

Axe-hyx commented Jul 1, 2020

🐛 Bug Report

开启插件后,会读取.vscode-insiders目录下extensions/leetcode.vscode-leetcode-0.17.0/node_modules/vsc-leetcode-cli/lib/config.js文件更新js文件,该文件中plugin字段路径错误,导致无法正常启动插件

To Reproduce

code vs使用1.47.0,vscode-leetcode使用0.17.0,默认配置,会出现如下错误

$ proxychains node "/home/switch/.vscode-insiders/extensions/leetcode.vscode-leetcode-0.17.0/node_modules/vsc-leetcode-cli/bin/leetcode"
[WARN] Installing missing plugins, might take a while ...
(node:10727) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
⠋ Downloading https://raw.githubusercontent.com/leetcode-tools/leetcode-cli-plugins/tree/master/plugins/cpp.lint.js[proxychains] Strict chain  ...  127.0.0.1:1088  ...  raw.githubusercontent.com:443  ...  OK
⠋ Downloading https://raw.githubusercontent.com/leetcode-tools/leetcode-cli-plugins/tree/master/plugins/cpp.run.js[proxychains] Strict chain  ...  127.0.0.1:1088  ...  raw.githubusercontent.com:443  ...  OK
⠋ Downloading https://raw.githubusercontent.com/leetcode-tools/leetcode-cli-plugins/tree/master/plugins/github.js[proxychains] Strict chain  ...  127.0.0.1:1088  ...  raw.githubusercontent.com:443  ...  OK
⠋ Downloading https://raw.githubusercontent.com/leetcode-tools/leetcode-cli-plugins/tree/master/plugins/lintcode.js[proxychains] Strict chain  ...  127.0.0.1:1088  ...  raw.githubusercontent.com:443  ...  OK
⠋ Downloading https://raw.githubusercontent.com/leetcode-tools/leetcode-cli-plugins/tree/master/plugins/cookie.chrome.js[proxychains] Strict chain  ...  127.0.0.1:1088  ...  raw.githubusercontent.com:443  ...  OK
⠋ Downloading https://raw.githubusercontent.com/leetcode-tools/leetcode-cli-plugins/tree/master/plugins/cookie.firefox.js[proxychains] Strict chain  ...  127.0.0.1:1088  ...  raw.githubusercontent.com:443  ...  OK
[ERROR] HTTP Error: 404

Expected behavior

插件应该正常更新

Extension Output

我修改了extensions/leetcode.vscode-leetcode-0.17.0/node_modules/vsc-leetcode-cli/lib/config.js中的plugin字段为'https://raw.githubusercontent.com/leetcode-tools/leetcode-cli-plugins/master/plugins/$name.js',
之后用proxy更新,回复到正常状态

Your Environment

  • os: archlinux, [majaro distro]
  • extension settings: default
  • nodejs version: v14.3.0
  • vscode version: v1.47.0
  • extension version: v0.17.0
@Axe-hyx
Copy link
Author

Axe-hyx commented Jul 1, 2020

默认的配置字段是'https://raw.githubusercontent.com/leetcode-tools/leetcode-cli/master/lib/plugins/$name.js',
上面的报错是我已经修改了plugin地址,但没修改正确的输出。

@jdneo
Copy link
Member

jdneo commented Jul 1, 2020

https://raw.githubusercontent.com/leetcode-tools/leetcode-cli-plugins/master/plugins/xxx.js 并没有这样的文件存在,为什么要这样改呢?

@yihong0618
Copy link
Contributor

@jdneo
我之前发现这块更新不了了,这个pr顺便改了。因为之前的路径404了,plugin无法更新。
leetcode-tools/leetcode-cli@4a27102

@yihong0618
Copy link
Contributor

@woofhyx clean your cache see #593

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants