github / github/copilot.vim

Language Server fails to start on Android/Termux (missing native bindings)

未关闭
#251 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Vim Script
星标
11.7k
派生
810
PR 合并指标
30 天内没有已合并 PR

描述

**Summary**
The GitHub Copilot Language Server is currently unable to start in Termux on Android. The process crashes during initialization because it tries to load native bindings for `@vscode/policy-watcher`, which are not provided for the Android platform.

**Environment**

* **Device**: Android (ARM64)
* **Environment**: Termux
* **Plugin Version**: 1.397.0
* **Node.js Version**: 25.2.1

**The Error**
When starting the server, Node.js outputs the following error to stderr and terminates:

```text
Error: Could not locate the bindings file. Tried:
...
→ .../dist/compiled/android/arm64/vscode-policy-watcher.node
at bindings (.../node_modules/bindings/bindings.js:119:9)
at .../node_modules/@vscode/policy-watcher/index.js:6:25
at .../dist/main.js:1:398

```

**My Current Workaround**
In my [fork](https://github.com/github/copilot.vim/compare/release...asemarafa:copilot.vim:android-shim), I have circumvented this by using a Node.js preload shim rather than modifying the bundled `dist/` files.

**Suggested Long-Term Fix**
A better approach would be to make the loading of native modules conditional in the language server itself.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。