NativeScript / NativeScript/nativescript-cli
LiveSync related commands hang when devices for sync are disconnected
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- JavaScript
- Star
- 1.1k
- Fork
- 204
- Merge trung bình
- 1 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 8
Mô tả
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
- CLI: 5.3.0
- Cross-platform modules: Not applicable
- Android Runtime: Not applicable
- iOS Runtime: Not applicable
- Plugin(s):Not applicable
Describe the bug
Whenever all devices/emulators/simulators that we are using for LiveSync operation are disconnected or CLI is unable to sync changes on them, the command (tns debug, tns run, tns test...) should exit. Instead, it continues its execution and prepares the application.
To Reproduce
- Run
tns run <platform> - When the operation is running, disconnect all devices/stop all emulators/simulators on which you are syncing.
- Command should exit.
Instead it continues its execution.
Expected behavior
Once all devices used for liveSync are disconnected (or we have errors when trying to sync on them), command should exit and does not give incorrect impression that it still liveSyncs your project.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Tái hiện bằng tns run <platform>, sau đó so sánh cách tns debug, tns run và tns test xử lý LiveSync khi tất cả thiết bị, trình giả lập hoặc simulator bị ngắt kết nối. Theo dõi hoạt động LiveSync từ điểm vào của lệnh và xác minh rằng lỗi hoặc việc mất tất cả các đích đồng bộ hóa khiến lệnh thoát thay vì tiếp tục quá trình chuẩn bị.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript
- Lĩnh vực
- cli, mobile
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 42/100