ionic-cli: Unable to see any errors on terminal Cli 2.1.12
Note: for support questions, please use one of these channels:
https://forum.ionicframework.com/ http://ionicworldwide.herokuapp.com/
Note: for build related issues you can open up an issue on the ionic-app-scripts repo
https://github.com/driftyco/ionic-app-scripts
Short description of the problem:
updated the cli via ionic@latest install since then all the console.log and syntax errors from the code have gone missing from terminal, additionally on making changes to the .ts files the app wont load back on livereload.
What behavior are you expecting?
errors be displayed
Steps to reproduce:
- update to latest ionic
- ionic run android -l -c
- use app and wont show any of the console.logs or code errors
insert any relevant code between the above and below backticks
Post the output of ionic info
below please
Cordova CLI: 6.4.0 Ionic Framework Version: 2.0.0-rc.2 Ionic CLI Version: 2.1.12 Ionic App Lib Version: 2.1.7 Ionic App Scripts Version: 0.0.45 ios-deploy version: Not installed ios-sim version: Not installed OS: Linux 4.4 Node Version: v6.9.1 Xcode version: Not installed
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 5
- Comments: 21 (2 by maintainers)
@mburger81 I think we both have the same problem so I’ll review it today evening and let you know.
Yes it prevents us from working on devices.
Thanks for your work.
Hi @jthoms1, I just made some tests in a clean project, I’m using RC.3 and used ionic@test (2.1.15). Livereload it’s working well but logs are still not being shown.
Hi @tonirilix, I tested it with
ionic@2.1.17
and I can confirm that the console.log is now working. But did you test it for the android emulator? In the native android emulator runningionic emulate android -lc
orionic run android -lc
not having connect any device which is still run the emulator, the log DOESN’T work.So now I’m a little bit confused, does the log never work in emulating version, or is the bug not closed. Can you test if it work for you in emulator or should it not work in your opinion?
Edit: I recognized also launching the app without livereload and only with consolelog for example with
ionic run android -c
does not log anything. After the app is launched on the device or in the emulator the SHELL from where I launch the command is not blocked but free to launch another command. So should the log not work with livereload?I tested it on new release in test which is 2.1.16, but nothing changed, livereload works console.log doesn’t
Commit 68eb3e53f4b24775fe8957f1bb2f080cde88565c fixes the issue. This will be released this week. If you would like the fix asap you can install
ionic@test
to get it now.+1
Yes this the main reason I’m not using this build is being unable to debug and no console messages either.
+1