NativeScript / NativeScript/nativescript-cli

If you make multiple file changes in --debug-brk a livesync error will be thrown

Open
#4,025 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug debug severity: low
Dominant language
JavaScript
Stars
1.1k
Forks
204
Avg merge
1d 9h
Merged PRs (30d)
8

Description

Environment

  • CLI: 5.0.0-2018-10-12-12475
  • Cross-platform modules:
  • Android Runtime: 5.0.0-2018-10-12-112221-01

Describe the bug
If you make multiple file changes in --debug-brk a livesync error will be thrown

To Reproduce

  • tns debug android --debug-brk

  • Open DevTool with the provided URL

  • Wait on the breakpoint

  • Make changes to the app files
    Actual: Two livesyncs are going to be triggered. An error will be thrown Unable to apply changes for device: 013510615ed33b0a. Error is: Sync operation is taking too long.. If you reconnect the DevTools an error will be thrown Error running script /data/user/0/org.nativescript.templatehelloworldjs/files/internal/livesync.js
    Expected: The changes to be applied and the app to have a breakpoint on the first line of the app.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce with tns debug android --debug-brk, open the provided DevTools URL, wait at the breakpoint, and change multiple app files. Observe the two livesync operations and the errors in internal/livesync.js; done means the changes apply successfully and the app remains stopped at the first line.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, javascript
Domain
cli, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.