vscode-leetcode
vscode-leetcode copied to clipboard
当我使用‘Remote-SSH’插件远程连接Ubuntu服务器时,无法正常启用Leetcode插件,即使安装node也提示找不到
🐛 Bug Report
如题,远程连接到我的服务器上,并通过VSCode在服务器装上Leetcode插件之后,插件无法正常使用,会提示Error: The Node.js executable does not exist on path nodejs。
此时我已经安装了node和npm,也加入了PATH,可以直接在命令行进行调用。修改工作区下.vscode文件夹中的launch.json,把node所在位置添加到runtimeExecutable这一项也是无法运行。
Ubuntu版本:18.04
Node版本:14.17.6
To Reproduce
- 安装Remote-SSH插件,远程连接到一个Ubuntu服务器
- 在服务器上安装Leetcode插件
- 在服务器上安装node
- 无法启用插件
Expected behavior
希望能提供一个能正常使用或配置的办法
Extension Output
Error: The Node.js executable does not exist on path nodejs
Your Environment
- os: Ubuntu 18.04
- extension settings: 无法打开设置
- nodejs version: 14.17.6
- vscode version: 1.60.1
- extension version: 0.18.0
问题已经解决了,我使用本机的Leetcode插件对比发现,需要在VSCode的settings.json设置node路径,要添加一条配置:"leetcode.nodePath": "node"
仍然存在bug,就是Leetcode只会读取我本地的settings.json,而非实际工作区(在服务器上)中的配置
仍然存在bug,就是Leetcode只会读取我本地的settings.json,而非实际工作区(在服务器上)中的配置
遇到同样的问题