Commit Graph

3252 Commits

Author SHA1 Message Date
Emily Stark
da24f6cedd Don't unconditionally exit after starting Cordova apps. 2014-10-22 13:53:59 -07:00
David Greenspan
d064d744a3 Display progress when restarting the server
Previously, all progress display was turned off after the app’s initial start, so no progress would be displayed on restart due to server code change.

Now, we enable/disable progress display from inside the loop that re-runs the app on change.

Remove the “suppressDisplay” approach to hiding the spinner when there’s an error building the app, because it didn’t work on rebuilds, only the first build.  Better to just call enableProgressDisplay(false) and hope for the best like we do elsewhere.

Conflicts:
	tools/progress.js
2014-10-22 13:37:08 -07:00
David Greenspan
0706e3fe6d Display progress message in case of multiple jobs
Previously, if there were two parallel jobs like “Starting your app” and “Bundling app,” we’d display just a spinner and no message.  Now, we choose a message and display it.
2014-10-22 13:36:29 -07:00
David Greenspan
96cfcb780b Print “server restarting” only when doing so 2014-10-22 13:36:13 -07:00
David Greenspan
dbd576689f Print in console when we are restarting the server
(…due to a server-side code change)

Restarting the server can take a while (30 seconds for one particular app), so it’s nice to at least print when we start doing it.  Soon there will be progress displays during it, too (when we add more of them to `meteor run`).

We lose the opportunity to coalesce server restarted messages, as in `Meteor server restarted (x2)`, but adding any sort of progress display also does that.
2014-10-22 13:36:13 -07:00
Slava Kim
868273b074 Properly escape command line arguments for cordova plugins 2014-10-22 12:42:50 -07:00
ekatek
1a75eb1357 some processing on how we display release name 2014-10-22 12:36:59 -07:00
Justin SB
8a2ed10e14 Style fix: use _.map instead of _.each 2014-10-22 11:41:30 -07:00
Justin SB
48b50a8ae2 Format meteor show nicely
We only do 'meteor show mypackage', not 'meteor show mypackage@1.0'
2014-10-22 11:41:22 -07:00
Nick Martin
5eedfe8baf Disable color by default. 2014-10-22 11:10:11 -07:00
Justin SB
4b576959f4 Make USE_GLOBAL_ADK work again, and install Android SDK more carefully 2014-10-22 11:08:45 -07:00
Sashko Stubailo
4255e0b9e7 Make offline message only appear when we are actually offline 2014-10-22 11:02:08 -07:00
Sashko Stubailo
d98c6eac8d Change explainIfRefreshFailed to recommend connecting to the internet 2014-10-22 11:02:08 -07:00
Avital Oliver
bf227bd35d Help users install HAXM if that's all they're missing for Android dev
We intentionally consider a machine without HAXM to be "acceptable"
since HAXM can't be installed on VMs. But we should still let the users
know how to install if if that's what they're missing.
2014-10-22 10:55:40 -07:00
Nick Martin
d4a9f8c96e Bump catalog update timer from 15min to 3hr.
This should save load on the package server. The tradeoff is
it makes the case in #2847 have a wider window to affect users.
2014-10-22 10:53:39 -07:00
Sashko Stubailo
065f447669 Wrap all cordova errors since none of them print a useful stack trace 2014-10-22 10:50:59 -07:00
Emily Stark
1b50d72b09 Line-wrap a 'meteor update' message 2014-10-22 10:49:12 -07:00
Emily Stark
5111cd10cc Line-wrap springboarding failure messages 2014-10-22 10:48:47 -07:00
David Glasser
31cd4823ce Better error on springboard failures 2014-10-22 10:48:40 -07:00
Emily Stark
37c7886cb1 Show pretty progess spinners during 'meteor build' 2014-10-22 10:41:23 -07:00
Emily Stark
fb2f5dcddd Fix call to getCordovaDependenciesFromStar
Not sure how this happened... maybe mistake during rebase?
2014-10-22 10:40:33 -07:00
Emily Stark
d4e28c81e4 Exit 'meteor run' when cordova plugins or platforms change.
We don't have a way to HCP a changed set of plugins or platforms, so
just exit and ask the user to re-run. There are probably some cases
where we don't have to exit (e.g. if you add the android platform, we
probably don't need to exit out of 'meteor run ios'), but we exit in all
cases for simplicity.
2014-10-22 10:40:33 -07:00
ekatek
ae9e4e87b9 adding a test for watching the versions file 2014-10-22 10:40:28 -07:00
ekatek
42ebedb15b the .meteor/versions file is part of the app control files 2014-10-22 10:40:28 -07:00
Justin SB
3d9966cdd7 future.isResolved is a function 2014-10-22 10:38:29 -07:00
Sashko Stubailo
6016854eb9 Add message about not being able to start app on Android device
Also, don't print the stack trace in this case
2014-10-22 10:38:14 -07:00
Emily Stark
74e413526a Use displayRelease helper for running-from-checkout message 2014-10-22 10:31:45 -07:00
Emily Stark
11471a82c8 Supress progress spinner while waiting for file changes.
This prevents "Starting your app..." from showing immediately after
"Your app is crashing. Waiting for file changes."
2014-10-22 10:31:17 -07:00
Avital Oliver
314dcff249 Kill iOS/iPhone simulator better
Turns out different versions of the iOS simular
have differently named apps, so we now call killall
for both the old and the new name.
2014-10-22 10:30:02 -07:00
Slava Kim
6224a749d5 Tweaks to meteor search error output 2014-10-22 10:29:50 -07:00
Slava Kim
912130d0d9 give meteor search a named spinner 2014-10-22 10:29:50 -07:00
Slava Kim
3d9ffab733 Tweak the output of meteor show 2014-10-22 10:29:50 -07:00
Slava Kim
becf6c4f47 Tweak the output of meteor remove 2014-10-22 10:29:50 -07:00
Slava Kim
1bb897bf4c Give feedback on updating packages not in the project 2014-10-22 10:29:50 -07:00
Slava Kim
f2aab4591e Ignore iOS on build entirely 2014-10-22 10:28:06 -07:00
Slava Kim
ae098ae71a Print a warning when building unavailable platforms 2014-10-22 10:28:02 -07:00
Sashko Stubailo
a64565c370 Let build plugins override the 'bare' option for JavaScript files 2014-10-22 10:25:40 -07:00
David Glasser
2330e22554 Improve package download error while offline
Now we see something like:

  $ curmeteor
  Unable to refresh catalog (are you offline?)

  Could not download package iron:dynamic-template@0.4.1: getaddrinfo ENOTFOUND
  Could not download package iron:router@0.9.4: getaddrinfo ENOTFOUND
  Could not download package iron:layout@0.4.1: getaddrinfo ENOTFOUND
  Could not download package iron:core@0.3.4: getaddrinfo ENOTFOUND
  Could not install all the requested packages.
2014-10-22 10:09:08 -07:00
Ben Newman
8868fe981d Further simplify NpmDiscards to perform no additional disk I/O. 2014-10-21 13:01:31 -07:00
Ben Newman
bf9b8a9443 Disallow passing nested objects to Npm.strip.
As you can see, this simplifies the implementation considerably.
2014-10-21 13:01:21 -07:00
Emily Stark
9b60627a7b Use Console in tools/main.js
The specific issue is the "Could not springboard to release..." message
showing up on the same line as a progress bar. Seems like a good idea to
use Console everywhere in this file anyway.
2014-10-21 13:01:10 -07:00
Emily Stark
339706882b Fix usage of utils.displayRelease; it already includes "Meteor " 2014-10-21 13:00:49 -07:00
Emily Stark
b03d16d361 Use existing 'utils.displayRelease' helper 2014-10-21 13:00:48 -07:00
Emily Stark
4ee7342473 Print release name more prettily in 'meteor update' message.
Instead of "Meteor METEOR@1.0", print "Meteor 1.0".

This change is somewhat untested because in order to test it we need
1. a built release, and 2. installed 'meteor' to point to that built
release.
2014-10-21 13:00:48 -07:00
Emily Stark
5a522d0ce1 Update old cli tests for new 'meteor remove' text 2014-10-21 12:59:29 -07:00
Emily Stark
96805aa8f8 Update publish-one-arch test for new 'meteor publish' output 2014-10-21 12:58:56 -07:00
Emily Stark
13cba47aef Tweak error printing on errors from package server 2014-10-21 12:58:42 -07:00
Justin SB
cab1662f06 Make package catalog sync use a spinner
(Until we have a better progress metric)
2014-10-21 12:57:56 -07:00
Justin SB
5663d9efac Change progress message indent to 3, so it lines up with '=> Started ...' 2014-10-21 12:57:37 -07:00
Slava Kim
a1feed1996 Recognize 9.png extension. Fix bug for xhdpi splashscreen. 2014-10-21 12:57:17 -07:00