2024-02-27 18:10:06.705 [error] Activating extension tboox.xmake-vscode failed due to an error:
2024-02-27 18:10:06.705 [error] Error: spawn xmake ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:283:19)
at onErrorNT (node:internal/child_process:476:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Xmake 版本
2.8.7
操作系统版本和架构
Windows 10 Pro Version 22H2, Ubuntu20.04
描述问题
使用 VSCode 的 remote ssh 时,安装了 xmake 插件但不生效(状态栏没有出现 xmake 相关的信息,output 看不到 xmake 的输出)。尝试使用 Ctrl+Shift+P 来调用 xmake 的功能,但所有操作都出现类似以下报错。
命令行可正常使用 xmake 。
插件版本2.3.0 。
期待的结果
正常工作
工程配置
target("main") set_kind("binary") add_files("main.c")
附加信息和错误日志
2024-02-27 18:10:06.705 [error] Activating extension tboox.xmake-vscode failed due to an error: 2024-02-27 18:10:06.705 [error] Error: spawn xmake ENOENT at ChildProcess._handle.onexit (node:internal/child_process:283:19) at onErrorNT (node:internal/child_process:476:16) at process.processTicksAndRejections (node:internal/process/task_queues:82:21)