generator-ionic
generator-ionic copied to clipboard
grunt build:android --debug hangs at the end (on linux)
Hi
Just created a brand new side-menu project using 0.6.0 (with all plugins except inappbrower). Then
npm install && bower install
grunt init
grunt platform:add:android
grunt build:android --debug
Everything seems to work but after the output below, the build process does not exit and return control back to my shell.
...
BUILD SUCCESSFUL
Total time: 29 seconds
Cheers dalyc
If I CTRL-C and do grunt run - it installs on my device but that command also hangs after "LAUNCH SUCCESS" message.
hippo~ % yo --version && echo $PATH $NODE_PATH && node -e 'console.log(process.platform, process.versions)'
1.2.1
/home/colin/apps/maven/latest/bin:/home/colin/.rbenv/shims:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.1:/usr/games/bin:/home/colin/.rbenv/bin:/home/colin/bin:/home/colin/apps/android/adt-bundle-linux-x86_64-20140321/sdk:/home/colin/apps/android/adt-bundle-linux-x86_64-20140321/sdk/tools:/home/colin/apps/android/adt-bundle-linux-x86_64-20140321/sdk/platform-tools:/home/colin/apps/play/current
linux { http_parser: '1.0',
node: '0.10.32',
v8: '3.14.5.9',
ares: '1.9.0-DEV',
uv: '0.10.28',
zlib: '1.2.8',
modules: '11',
openssl: '1.0.1i' }
Same here: OSX, $grunt build:ios hangs on * BUILD SUCCEEDED *
@dalyc can you update to the latest version and overwrite your Gruntfile.js as described in the upgrading section, as well as on StackOverflow and let me know if the issue has been resolved on your end?
Thanks.
@diegonetto done as you asked and
grunt build completes without hang grunt run installs the app but still hangs
...
BUILD SUCCESSFUL
Total time: 34 seconds
WARNING : No target specified, deploying to device '04d3374c0de034b0'.
Using apk: /home/colin/projects/ubookr/ubookr-mobile/platforms/android/ant-build/UBOOKR-debug-unaligned.apk
Installing app on device...
Launching application...
LAUNCH SUCCESS
Done, without errors.
Execution Time (2014-10-26 10:35:32 UTC)
ionic:run: 51.3s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 100%
Total 51.3s
----> hangs here
grunt serve works and all the ionic server commands work except quit which hangs after quitting
...
Running "ionic:serve" (ionic) task
Waiting...Running dev server: http://localhost:8100
Running live reload server: http://localhost:35729
Watching : [ 'www/**/*', '!www/lib/**/*' ]
Ionic server commands, enter:
restart or r to restart the client app from the root
goto or g and a url to have the app navigate to the given url
consolelogs or c to enable/disable console log output
serverlogs or s to enable/disable server log output
quit or q to shutdown the server and exit
quit
Done, without errors.
Execution Time (2014-10-26 10:41:47 UTC)
ionic:serve 2.4s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 100%
Total 2.4s
----> hangs here
Correct me if Im wrong but I think thats not 'hanging'. It's just the never ending 'watch' process which listens for file changes.
Give it a shot and try to edit some files while grunt serve 'hangs'. If I'm correct, you should see some activity in the terminal.
@rvanbaalen i understand that grunt serve is supposed to work as you describe but it should exit cleanly back to the shell once q or quit is typed.
Also grunt run should exit too - assuming the task is simply to install the app on the device and not "watch" the 'on-device' app.
Remember also that these are very minor issues for me. The tasks work and I simply CTRL-C to get back to my shell. But I think they are worth fixing if possible because first time users will get that "buggy" feeling and may give up before discovering how awesome this project is :)
I'm trying this from a windows 7 machine, and can run "grunt run:android" and the app compiles and installs on the phone fine, but as soon as I add the "--debug" flag to the command and run it again, it gets stuck around the watch.js part: ###/node_modules\grunt-contrib-watch\tasks\watch.js Waiting...Unknown platforms: 1. Anyone have any suggestions?
Using IntelliJ IDEA 14.01, if I have a "Before launch" configuration to run grunt like this, it seem to compile, install and track the "logcat" from the device fine, which is great. So I'll be using this for now. Thanks anyway.