xmake-io / xmake-vscode

🍩 A XMake integration in Visual Studio Code
https://xmake.io
Apache License 2.0
227 stars 54 forks source link

VSCode 插件不生效 #259

Open LogicDX342 opened 7 months ago

LogicDX342 commented 7 months ago

Xmake 版本

2.8.7

操作系统版本和架构

Windows 10 Pro Version 22H2, Ubuntu20.04

描述问题

使用 VSCode 的 remote ssh 时,安装了 xmake 插件但不生效(状态栏没有出现 xmake 相关的信息,output 看不到 xmake 的输出)。尝试使用 Ctrl+Shift+P 来调用 xmake 的功能,但所有操作都出现类似以下报错。

[Main Instruction] Command 'XMake: CreateProject' resulted in an error

[Content] A system error occurred (spawn xmake ENOENT)

命令行可正常使用 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)

AspadaX commented 4 months ago

I got the same error, and I installed xmake in Ubuntu 22.04 LTS. I am using remote ssh too. Anyone has an idea of what's going on?

waruqi commented 4 months ago

remove ssh 没玩过,你们可以自己加载插件代码,调试下

ZhanLongqi commented 4 months ago

I do have the same error.