Skip to content

当我使用‘Remote-SSH’插件远程连接Ubuntu服务器时,无法正常启用Leetcode插件,即使安装node也提示找不到 #737

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

Open
WangGossip opened this issue Sep 16, 2021 · 3 comments

Comments

@WangGossip
Copy link

🐛 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

  1. 安装Remote-SSH插件,远程连接到一个Ubuntu服务器
  2. 在服务器上安装Leetcode插件
  3. 在服务器上安装node
  4. 无法启用插件

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
@WangGossip
Copy link
Author

问题已经解决了,我使用本机的Leetcode插件对比发现,需要在VSCode的settings.json设置node路径,要添加一条配置:"leetcode.nodePath": "node"

@WangGossip
Copy link
Author

仍然存在bug,就是Leetcode只会读取我本地的settings.json,而非实际工作区(在服务器上)中的配置

@jrovis
Copy link

jrovis commented Nov 12, 2021

仍然存在bug,就是Leetcode只会读取我本地的settings.json,而非实际工作区(在服务器上)中的配置

遇到同样的问题

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

2 participants