Stack trace not printing on template parse


#1

I hope this isn’t miscategorized by being in the Angular topic.

Upon trying the exercise Error handling in NativeScript I discovered that the stack trace is not printed in the console when invalid markup is encountered. Rather, having had started the emulator with a good version of the HelloWorld example and then having had introduced the intentional mistake of deleting a > to introduce the template error yields the output at the bottom of this post.

NativeScript version: 2.5.2
Android SDK version: 25
Emulated device: Nexus 5X

>> tns run android
Executing before-prepare hook from C:\Users\JohnRinehart\AndroidStudioProjects\HelloWorld\hooks\before-prepare\nativescript-dev-android-snapshot.js
Executing before-prepare hook from C:\Users\JohnRinehart\AndroidStudioProjects\HelloWorld\hooks\before-prepare\nativescript-dev-typescript.js
Found peer TypeScript 2.1.6
Preparing project...
Project successfully prepared (android)
Executing after-prepare hook from C:\Users\JohnRinehart\AndroidStudioProjects\HelloWorld\hooks\after-prepare\nativescript-dev-android-snapshot.js
Searching for devices...
Skipping package build. No changes detected on the native side. This will be fast!
Skipping install.
Executing before-livesync hook from C:\Users\JohnRinehart\AndroidStudioProjects\HelloWorld\hooks\before-livesync\nativescript-angular-sync.js
Transferring project files...
Successfully transferred all files.
Refreshing application...
Successfully synced application org.nativescript.HelloWorld on device emulator-5554.

Executing before-watch hook from C:\Users\JohnRinehart\AndroidStudioProjects\HelloWorld\hooks\before-watch\nativescript-dev-typescript.js
Found peer TypeScript 2.1.6
JS: === dump(): dumping members ===
JS: {
JS:     "type": "Apple",
JS:     "color": "Red"
JS: }
JS: === dump(): dumping function and properties names ===
JS: === dump(): finished ===
JS: Angular is running in the development mode. Call enableProdMode() to enable the production mode.
7:18:58 PM - Compilation complete. Watching for file changes.

7:19:02 PM - File change detected. Starting incremental compilation...

7:19:03 PM - Compilation complete. Watching for file changes.

Executing before-prepare hook from C:\Users\JohnRinehart\AndroidStudioProjects\HelloWorld\hooks\before-prepare\nativescript-dev-android-snapshot.js
Executing before-prepare hook from C:\Users\JohnRinehart\AndroidStudioProjects\HelloWorld\hooks\before-prepare\nativescript-dev-typescript.js
Preparing project...
Project successfully prepared (android)
Executing after-prepare hook from C:\Users\JohnRinehart\AndroidStudioProjects\HelloWorld\hooks\after-prepare\nativescript-dev-android-snapshot.js
Transferring project files...
Successfully transferred app.component.js.
Refreshing application...
Successfully synced application org.nativescript.HelloWorld on device emulator-5554.

03-10 19:19:12.371  4652  4652 W System.err:    at com.tns.Runtime.callJSMethodNative(Native Method)
03-10 19:19:12.371  4652  4652 W System.err:    at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1197)
03-10 19:19:12.371  4652  4652 W System.err:    at com.tns.Runtime.callJSMethodImpl(Runtime.java:1061)
03-10 19:19:12.371  4652  4652 W System.err:    at com.tns.Runtime.callJSMethod(Runtime.java:1047)
03-10 19:19:12.371  4652  4652 W System.err:    at com.tns.Runtime.callJSMethod(Runtime.java:1028)
03-10 19:19:12.371  4652  4652 W System.err:    at com.tns.Runtime.callJSMethod(Runtime.java:1018)