Skip to content

Livesync both Android and iOS at the same time, only android updates #1354

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

Closed
N3ll opened this issue Dec 16, 2015 · 8 comments
Closed

Livesync both Android and iOS at the same time, only android updates #1354

N3ll opened this issue Dec 16, 2015 · 8 comments
Assignees
Milestone

Comments

@N3ll
Copy link
Contributor

N3ll commented Dec 16, 2015

From @sitefinitysteve on December 15, 2015 18:39

http://www.screencast.com/t/jIgl2WZ4

When I just had iOS going by itself it seemed fine, when I added android on a new terminal window to sync as well, it just doesn't update iOS, android syncs just fine.

So from the video:
tns livesync ios --emulator --watch
tns livesync android --watch (<-- Geny emulator)

Copied from original issue: NativeScript/NativeScript#1258

@Plamen5kov
Copy link
Contributor

Hi, @sitefinitysteve
Do you still have the same issue?

@sitefinitysteve
Copy link

@Plamen5kov I have not tried recently... I will today though

@Lampei
Copy link

Lampei commented Feb 29, 2016

OK, I gave this another try today and it does not appear to be working for me. I started an iOS instance and was successfully getting it to update. I then started an android --watch and it started to sync correctly, but the iOS instance then stopped updating. The terminal window states that it is applying changes and successfully synced application, but does not show in the emulator

@ejsuncy
Copy link

ejsuncy commented May 20, 2016

I'm encountering this error...
EEXIST: file already exists, open '/Users/[username]/.local/share/.nativescript-cli/.lock

I believe it is due to the race condition when both livesync processes attempt to create the .lock file...but the android livesync wins everytime, and the ios livesync quits watching after the error.

Is multiple livesync without race conditions on the roadmap?

@fbrcdx
Copy link

fbrcdx commented May 23, 2016

Same error here.
iOS watch failed after a few compilations with multiple livesync (iOS / Android).

Error: EEXIST: file already exists, open '/Users/.../.local/share/.nativescript-cli/.lock' at Object.Future.wait (/usr/local/lib/node_modules/nativescript/node_modules/fibers/future.js:535:15) at /usr/local/lib/node_modules/nativescript/lib/tools/broccoli/builder.js:35:48 at /usr/local/lib/node_modules/nativescript/lib/common/fiber-bootstrap.js:10:13 - - - - - at Error (native)

@enchev enchev added the bug label Jun 13, 2016
@romashko
Copy link

In my case sometimes Android wins and sometimes iOS.
I have the same error - Error: EEXIST: file already exists, open '/Users/.../.local/share/.nativescript-cli/.lock' at Object.Future.wait

@PedroAnibarro1
Copy link

Is this fix out? I saw that they merge it to the master but I'm still having this problem

@enchev
Copy link
Contributor

enchev commented Jul 18, 2016

The fix is our master branch only. Here is how to build your CLI from master:
https://github.com/NativeScript/nativescript-cli/#how-to-build

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

No branches or pull requests