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

grunt build:android --debug hangs at the end (on linux) #116

Open
dalyc opened this issue Oct 10, 2014 · 9 comments
Open

grunt build:android --debug hangs at the end (on linux) #116

dalyc opened this issue Oct 10, 2014 · 9 comments

Comments

@dalyc
Copy link

dalyc commented Oct 10, 2014

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

@dalyc
Copy link
Author

dalyc commented Oct 10, 2014

If I CTRL-C and do grunt run - it installs on my device but that command also hangs after "LAUNCH SUCCESS" message.

@dalyc
Copy link
Author

dalyc commented Oct 10, 2014

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' }

@martihag
Copy link

Same here:
OSX, $grunt build:ios
hangs on * BUILD SUCCEEDED *

@diegonetto
Copy link
Owner

@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.

@dalyc
Copy link
Author

dalyc commented Oct 26, 2014

@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

@rvanbaalen
Copy link

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.

@dalyc
Copy link
Author

dalyc commented Oct 26, 2014

@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 :)

@alexkb
Copy link

alexkb commented Dec 9, 2014

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?

@alexkb
Copy link

alexkb commented Dec 9, 2014

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.

sidneys added a commit to sidneys/generator-ionic that referenced this issue Jan 9, 2015
* commit '3516f23ae20205f06f5dd2f3072638d0fbd385c2': (22 commits)
  docs(docs): Update Changelog
  0.6.1
  fix(ionic): Run ionic and watch concurrently. Closes diegonetto#114, diegonetto#116, & diegonetto#121
  Update README.md
  Update getting-started.md
  Update README.md
  Update FAQ.md
  Update README.md
  Update README.md
  Update FAQ.md
  Update getting-started.md
  Update README.md
  Update FAQ.md
  Update getting-started.md
  Create android.md
  Update getting-started.md
  Create app-testing.md
  Delete app-testing
  Create app-testing
  Create getting-started.md
  ...
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

5 participants