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

LiveSync double restarts the app on change in a .ts file #1212

Closed
vchimev opened this issue Nov 18, 2015 · 0 comments
Closed

LiveSync double restarts the app on change in a .ts file #1212

vchimev opened this issue Nov 18, 2015 · 0 comments

Comments

@vchimev
Copy link

vchimev commented Nov 18, 2015

Tested with 1.5 RC.

Steps to reproduce:

  • git clone git@github.com:NativeScript/template-hello-world-ts.git
  • tns create myApp --copy-from template-hello-world-ts
  • cd myApp
  • tns install typescript
  • tns run ios
  • tns livesync ios --watch
  • make a change in app.ts file

Output:

Syncing /Work/GitHub/nativescript-cli-tests/appTypeScript/platforms/ios/appTypeScript/app/app.js
BeforeHookName for command prepare is before-prepare
Executing before-prepare hook from /Work/GitHub/nativescript-cli-tests/appTypeScript/hooks/before-prepare/nativescript-dev-typescript.js
message TS6032: File change detected. Starting incremental compilation...
Executing before-prepare hook at location /Work/GitHub/nativescript-cli-tests/appTypeScript/hooks/before-prepare/nativescript-dev-typescript.js in-process
Hook completed
Images from Xcode project
[ 'Default-568h@2x.png',
  'Default-667h@2x.png',
  'Default-736h@3x.png',
  'Default-Landscape-568h@2x.png',
  'Default-Landscape-667h@2x.png',
  'Default-Landscape.png',
  'Default-Landscape@2x.png',
  'Default-Landscape@3x.png',
  'Default-Portrait.png',
  'Default-Portrait@2x.png',
  'Default.png',
  'Default@2x.png',
  'Icon-Small-50.png',
  'Icon-Small-50@2x.png',
  'Icon-Small.png',
  'Icon-Small@2x.png',
  'icon-40.png',
  'icon-40@2x.png',
  'icon-60.png',
  'icon-60@2x.png',
  'icon-72.png',
  'icon-72@2x.png',
  'icon-76.png',
  'icon-76@2x.png',
  'icon.png',
  'icon@2x.png' ]
Current images from App_Resources
[ 'Default-568h@2x.png',
  'Default-667h@2x.png',
  'Default-736h@3x.png',
  'Default-Landscape-568h@2x.png',
  'Default-Landscape-667h@2x.png',
  'Default-Landscape.png',
  'Default-Landscape@2x.png',
  'Default-Landscape@3x.png',
  'Default-Portrait.png',
  'Default-Portrait@2x.png',
  'Default.png',
  'Default@2x.png',
  'Icon-Small-50.png',
  'Icon-Small-50@2x.png',
  'Icon-Small.png',
  'Icon-Small@2x.png',
  'icon-40.png',
  'icon-40@2x.png',
  'icon-60.png',
  'icon-60@2x.png',
  'icon-72.png',
  'icon-72@2x.png',
  'icon-76.png',
  'icon-76@2x.png',
  'icon.png',
  'icon@2x.png' ]
New images to add into xcode project: 
Images to remove from xcode project: 
Project successfully prepared
AfterHookName for command prepare is after-prepare
message TS6042: Compilation complete. Watching for file changes.
Transferring project files...
PlistService sending: 
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Command</key>
    <string>VendContainer</string>
    <key>Identifier</key>
    <string>org.nativescript.appTypeScript</string>
</dict>
</plist>

An error has occured: TypeError: Cannot read property 'nodeName' of null
Removing device file 'Library/Application Support/LiveSync/app/app.js', result: 0
transfer-> localFilePath: '/Work/GitHub/nativescript-cli-tests/appTypeScript/platforms/ios/appTypeScript/app/app.js', devicePath: 'Library/Application Support/LiveSync/app/app.js', localFilePathSize: '495', transferred bytes: '495'
Successfully transferred all project files.
Applying changes...
GDB: send packet 
GDB: send packet $k#6b
GDB: read packet: $X09#00
GDB: send packet $QStartNoAckMode#b0
GDB socket get closed. HadError false
GDB: read packet: +$OK#9a
GDB: send packet +
GDB: send packet $QEnvironmentHexEncoded:#f7
GDB: read packet: $OK#00
GDB: send packet $QSetDisableASLR:1#ce
GDB: read packet: $OK#00
GDB: send packet $A208,0,2f707269766174652f7661722f6d6f62696c652f436f6e7461696e6572732f42756e646c652f4170706c69636174696f6e2f38433638454333342d443746302d344238422d384632322d4130424335363731463946382f617070547970655363726970742e617070#86
GDB: read packet: $OK#00
GDB: send packet $qLaunchSuccess#a5
GDB: read packet: $OK#00
GDB: send packet $vCont;c#a8
Successfully synced application org.nativescript.appTypeScript.
Syncing /Work/GitHub/nativescript-cli-tests/appTypeScript/platforms/ios/appTypeScript/app/app.js, /Work/GitHub/nativescript-cli-tests/appTypeScript/platforms/ios/appTypeScript/app/main-page.js, /Work/GitHub/nativescript-cli-tests/appTypeScript/platforms/ios/appTypeScript/app/main-view-model.js
BeforeHookName for command prepare is before-prepare
Executing before-prepare hook from /Work/GitHub/nativescript-cli-tests/appTypeScript/hooks/before-prepare/nativescript-dev-typescript.js
Executing before-prepare hook at location /Work/GitHub/nativescript-cli-tests/appTypeScript/hooks/before-prepare/nativescript-dev-typescript.js in-process
Hook completed
Images from Xcode project
[ 'Default-568h@2x.png',
  'Default-667h@2x.png',
  'Default-736h@3x.png',
  'Default-Landscape-568h@2x.png',
  'Default-Landscape-667h@2x.png',
  'Default-Landscape.png',
  'Default-Landscape@2x.png',
  'Default-Landscape@3x.png',
  'Default-Portrait.png',
  'Default-Portrait@2x.png',
  'Default.png',
  'Default@2x.png',
  'Icon-Small-50.png',
  'Icon-Small-50@2x.png',
  'Icon-Small.png',
  'Icon-Small@2x.png',
  'icon-40.png',
  'icon-40@2x.png',
  'icon-60.png',
  'icon-60@2x.png',
  'icon-72.png',
  'icon-72@2x.png',
  'icon-76.png',
  'icon-76@2x.png',
  'icon.png',
  'icon@2x.png' ]
Current images from App_Resources
[ 'Default-568h@2x.png',
  'Default-667h@2x.png',
  'Default-736h@3x.png',
  'Default-Landscape-568h@2x.png',
  'Default-Landscape-667h@2x.png',
  'Default-Landscape.png',
  'Default-Landscape@2x.png',
  'Default-Landscape@3x.png',
  'Default-Portrait.png',
  'Default-Portrait@2x.png',
  'Default.png',
  'Default@2x.png',
  'Icon-Small-50.png',
  'Icon-Small-50@2x.png',
  'Icon-Small.png',
  'Icon-Small@2x.png',
  'icon-40.png',
  'icon-40@2x.png',
  'icon-60.png',
  'icon-60@2x.png',
  'icon-72.png',
  'icon-72@2x.png',
  'icon-76.png',
  'icon-76@2x.png',
  'icon.png',
  'icon@2x.png' ]
New images to add into xcode project: 
Images to remove from xcode project: 
Project successfully prepared
AfterHookName for command prepare is after-prepare
Transferring project files...
PlistService sending: 
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Command</key>
    <string>VendContainer</string>
    <key>Identifier</key>
    <string>org.nativescript.appTypeScript</string>
</dict>
</plist>

An error has occured: TypeError: Cannot read property 'nodeName' of null
Removing device file 'Library/Application Support/LiveSync/app/app.js', result: 0
transfer-> localFilePath: '/Work/GitHub/nativescript-cli-tests/appTypeScript/platforms/ios/appTypeScript/app/app.js', devicePath: 'Library/Application Support/LiveSync/app/app.js', localFilePathSize: '554', transferred bytes: '554'
Removing device file 'Library/Application Support/LiveSync/app/main-page.js', result: 0
transfer-> localFilePath: '/Work/GitHub/nativescript-cli-tests/appTypeScript/platforms/ios/appTypeScript/app/main-page.js', devicePath: 'Library/Application Support/LiveSync/app/main-page.js', localFilePathSize: '783', transferred bytes: '783'
Removing device file 'Library/Application Support/LiveSync/app/main-view-model.js', result: 0
transfer-> localFilePath: '/Work/GitHub/nativescript-cli-tests/appTypeScript/platforms/ios/appTypeScript/app/main-view-model.js', devicePath: 'Library/Application Support/LiveSync/app/main-view-model.js', localFilePathSize: '2273', transferred bytes: '2273'
Successfully transferred all project files.
Applying changes...
GDB: send packet 
GDB: send packet $k#6b
GDB: read packet: $X09#00$X00;description:5465726d696e617465642064756520746f207369676e616c2039;#00
GDB: send packet $QStartNoAckMode#b0
GDB socket get closed. HadError false
GDB: read packet: +$OK#9a
GDB: send packet +
GDB: send packet $QEnvironmentHexEncoded:#f7
GDB: read packet: $OK#00
GDB: send packet $QSetDisableASLR:1#ce
GDB: read packet: $OK#00
GDB: send packet $A208,0,2f707269766174652f7661722f6d6f62696c652f436f6e7461696e6572732f42756e646c652f4170706c69636174696f6e2f38433638454333342d443746302d344238422d384632322d4130424335363731463946382f617070547970655363726970742e617070#86
GDB: read packet: $OK#00
GDB: send packet $qLaunchSuccess#a5
GDB: read packet: $OK#00
GDB: send packet $vCont;c#a8
Successfully synced application org.nativescript.appTypeScript.
@vchimev vchimev added the bug label Nov 18, 2015
@vchimev vchimev added this to the 1.5.0 milestone Nov 18, 2015
@rosen-vladimirov rosen-vladimirov modified the milestones: 1.5.1, 1.5.0 Nov 23, 2015
@teobugslayer teobugslayer modified the milestones: 1.6.0 (Under consideration), 1.5.1 Nov 26, 2015
@teobugslayer teobugslayer modified the milestones: 1.7.0, 1.6.0 Feb 3, 2016
@teobugslayer teobugslayer modified the milestones: 2.0, 1.7.0 Feb 18, 2016
@rosen-vladimirov rosen-vladimirov removed this from the 2.0 milestone Apr 18, 2016
@pkoleva pkoleva closed this as completed Jun 3, 2016
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

6 participants