Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tns run can get stuck in a loop since 2.5 #2469

Closed
tjvantoll opened this issue Feb 1, 2017 · 5 comments
Closed

tns run can get stuck in a loop since 2.5 #2469

tjvantoll opened this issue Feb 1, 2017 · 5 comments
Assignees
Labels
Milestone

Comments

@tjvantoll
Copy link
Contributor

Since upgrading to NativeScript 2.5 I’ve occasionally hit this odd problem where tns run ios gets stuck in a loop.

That is, after I make a change to my app I keep seeing these four lines outputted continuously:

Transferring project files...
Unable to sync files. Error is: ENOENT: no such file or directory, stat '/Users/tj/Desktop/HelloWorld/platforms/ios/HelloWorld/app/tns_modules/adm-zip/adm-zip.js'
Skipping prepare.

The specific file is sometimes different, but it’s always something in tns_modules. I’m going to try to get better recreation steps for you because I know this is a bit vague, but I thought I’d let you know that I’m hitting this.

@tjvantoll
Copy link
Contributor Author

I’m actually getting this on Android now too. In this case I’m doing:

tns create Groceries --template nativescript-template-ng-groceries
cd Groceries
tns run android

After that I wait a few seconds and then I start seeing these lines repeating.

Transferring project files...
Unable to sync files. Error is: ENOENT: no such file or directory, stat '/Users/tj/Desktop/Groceries/platforms/android/src/main/assets/app/tns_modules/babel-types/.npmignore'
Skipping prepare.

@naderio
Copy link

naderio commented Feb 1, 2017

same here with vanilla NS and scss files .. on android

Transferring project files...
Unable to sync files. Error is: Multiple exceptions were thrown:
ENOENT: no such file or directory, stat '<...>/platforms/android/src/main/assets/app/styles/_common.scss'

@tjvantoll tjvantoll changed the title tns run for iOS stuck in loop (2.5) tns run stuck in loop since (2.5) Feb 1, 2017
@tjvantoll tjvantoll changed the title tns run stuck in loop since (2.5) tns run can get stuck in a loop since 2.5 Feb 1, 2017
@Plamen5kov Plamen5kov added this to the 2.5.1 milestone Feb 2, 2017
@Plamen5kov Plamen5kov self-assigned this Feb 2, 2017
@Plamen5kov
Copy link
Contributor

@tjvantoll I managed to reproduce the problem. It happens when you try to change a dev-dependency in the node_modules.
We are watching the whole node_modules folder, but we don't push dev-dependencies on the device.
So when you change a dev-dependency, livesync fails to find the file, because the prepare step ignores all files that are a dev-dependency.

Plamen5kov added a commit that referenced this issue Feb 6, 2017
fix for #2469 applied in master not with cherry picking, because it would be too much of a murge hasste because of fibers refactoring
Plamen5kov added a commit that referenced this issue Feb 6, 2017
* applied hotfix in master
fix for #2469 applied in master not with cherry picking, because it would be too much of a murge hasste because of fibers refactoring

* made lint happy
@rosen-vladimirov
Copy link
Contributor

Hey @naderio ,
Your issue will be resolved with this PR: #2508

@Plamen5kov
Copy link
Contributor

read more: #2482

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants