Skip to content

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

Open

Description

@asemarafa

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:

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, 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.

Activity

  1. casperdcl commented on Oct 28, 2026

    @casperdcl

    FYI my workaround without preload shim: let g:copilot_npx = 0 in ~/.vimrc

    Works on plugin v1.59.0 (bundled lang server 1.408.0) node 24.22.1 termux (aarch64). Depends on bundled server staying tolerant of missing bindings.

  2. mahmoudahmed25 commented on Oct 28, 2026

    @mahmoudahmed25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions