Skip to content

NativeScript 2.30 Error: connect ECONNREFUSED 127.0.0.1:18181 #80

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
ownleviathan opened this issue Sep 21, 2016 · 1 comment
Closed

Comments

@ownleviathan
Copy link

ownleviathan commented Sep 21, 2016

Hi
After update the new version (2.3.0) and type this command:
tns livesync ios --watch --emulator

Then when I made some changes in a XML file is transferring the project files and then shows me the following error:

Project successfully prepared (ios)
Transferring project files...
Successfully transferred all files.
Applying changes...
{ Error: connect ECONNREFUSED 127.0.0.1:18181
at Object.Future.wait (/usr/local/lib/node_modules/nativescript/node_modules/fibers/future.js:566:15)
at /usr/local/lib/node_modules/nativescript/lib/services/livesync/ios-device-livesync-service.js:45:150
at Function.settle (/usr/local/lib/node_modules/nativescript/node_modules/fibers/future.js:249:26)
at FiberFuture.Future.wait (/usr/local/lib/node_modules/nativescript/node_modules/fibers/future.js:565:10)
at /usr/local/lib/node_modules/nativescript/lib/services/livesync/ios-device-livesync-service.js:87:45
at Function.settle (/usr/local/lib/node_modules/nativescript/node_modules/fibers/future.js:249:26)
at FiberFuture.Future.wait (/usr/local/lib/node_modules/nativescript/node_modules/fibers/future.js:565:10)
at /usr/local/lib/node_modules/nativescript/lib/services/livesync/platform-livesync-service-base.js:84:130
at Function.settle (/usr/local/lib/node_modules/nativescript/node_modules/fibers/future.js:249:26)
at FiberFuture.Future.wait (/usr/local/lib/node_modules/nativescript/node_modules/fibers/future.js:565:10)
at /usr/local/lib/node_modules/nativescript/lib/services/livesync/platform-livesync-service-base.js:177:81
at Function.settle (/usr/local/lib/node_modules/nativescript/node_modules/fibers/future.js:249:26)
at /usr/local/lib/node_modules/nativescript/lib/common/mobile/mobile-core/devices-service.js:257:28
at arrayMap (/usr/local/lib/node_modules/nativescript/node_modules/lodash/lodash.js:574:23)
at Function.map (/usr/local/lib/node_modules/nativescript/node_modules/lodash/lodash.js:8851:14)
at /usr/local/lib/node_modules/nativescript/lib/common/mobile/mobile-core/devices-service.js:254:29
- - - - -
at Object.exports._errnoException (util.js:1008:11)
at exports._exceptionWithHostPort (util.js:1031:20)
at TCPConnectWrap.afterConnect as oncomplete
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 18181 }

To see the changes I need to close the emulator and launch the emulator again.
How can I fix this? Thanks

@ivanbuhov
Copy link
Contributor

@ownleviathan The VS Code debugger is not expected to reattach itself after livesync. If you are running tns livesync ios --watch --emulator you have to manually detach and attach the VS Code debugger after every sync operation. Our future plans for the Sync on iOS/Android commands are to enable automatic attach/detach by default.

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

No branches or pull requests

2 participants