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

Đang mở
#251 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
android, node.js

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện lỗi khởi động trong Termux và theo dõi quá trình tải từ dist/main.js qua node_modules/@vscode/policy-watcher/index.js và bindings.js. So sánh việc tìm kiếm Android ARM64 trong dist/compiled/android/arm64 với workaround preload-shim trong fork được liên kết; được xem là hoàn tất khi language server khởi động mà không gặp crash do thiếu native bindings.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Vim Script
Star
11.7k
Fork
812
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của github/copilot.vim

Tất cả issue của github/copilot.vim

Issue tương tự

Thêm issue về DevTools

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.