Commit Graph

26 Commits

Author SHA1 Message Date
Martijn Walraven
76bb1a183e Make buildmessage.exception() deal with the case where an error has no stack trace 2015-09-24 12:03:51 +02:00
Sashko Stubailo
550489cea8 Intelligently decide which stack trace to use 2015-09-14 17:51:43 -07:00
Sashko Stubailo
e2d4556479 Special-case http imports in LESS package 2015-09-14 11:53:58 -07:00
Martijn Walraven
b274e5390a Fix bug in execFileAsync that meant options were ignored without args 2015-09-11 18:44:17 +02:00
Martijn Walraven
0ea336424a Clarify some comments 2015-08-26 19:26:57 +02:00
Martijn Walraven
b2c5ff4d5a Allow specifying a destination option for execFileSync/Async
If specified, instead of capturing the output, the child process stdout
will be piped to the destination stream.

Although the standard spawn stdio option lets you pass in streams,
these have to be connected to an open file descriptor. The destination
option allows you to use any Writable, so it can be used with a
Transform for instance.
2015-08-26 19:26:55 +02:00
Martijn Walraven
63461fcd8f Remove unused RunCommand and add promise-based execFileSync/Async
The execFileSync function is meant to resemble the similarly-named Node
0.12 synchronous process creation API, but instead of being fully
blocking it uses a promise-based implementation. You can also use
execFileAsync directly, which returns a promise.

Some functionality is currently missing but could be added when the
need arises (e.g. support for timeout, maxBuffer, and encoding options).

Eventually, these versions should replace the ones in
tools/utils/utils.js and tools/tool-testing/selftest.js.
2015-08-26 19:26:54 +02:00
Martijn Walraven
b03455f382 Re-enable netroute for platforms other than win32 2015-08-26 19:26:52 +02:00
Martijn Walraven
87b11bdab5 Cordova refactoring and change of runner behavior
- Refactored code in tools/cordova and introduced CordovaBuilder and
CordovaRunTarget classes
- CordovaRunner now builds and runs the project as part of the main
runner loop
- Some code cleanup and ES2015 conversions
2015-08-26 19:26:49 +02:00
Martijn Walraven
42585a1098 Allow IP address detection to work without netroute
Because netroute is not available on Windows, and I haven’t been able
to find another way to detect the default route there, we try to find
a unique non-internal IPv4 address as a fallback. Also, improve error
reporting in cases we aren’t able to autodetect a unique IP address.

I’ve removed the automatic retry after 2 seconds, because I felt it was
of limited use (if you lose the address you would also have lost the
default route?) and it would slow down error reporting in the common
case where the error persists.
2015-08-26 19:26:48 +02:00
Martijn Walraven
47ff9a13aa Clean up Cordova code in commands.js
- Refactor server options parsing, move it from utils.js to commands.js
- Move remote device warning to CordovaRunner
2015-08-26 19:26:45 +02:00
David Glasser
729ad9013e Style tweaks 2015-08-11 15:30:19 -07:00
SEKE
6fa16329fc Throw a non-empty error when getUrl gets an empty response body 2015-08-11 15:28:18 -07:00
Sashko Stubailo
863be787ab Fix buildmessage concatenating stack traces 2015-08-10 20:08:52 -07:00
Anubhav Jain
c05f0aca56 Revert "Add checks to see if frame exists before trying to access the func property"
This reverts commit bd6a0c0080.
2015-08-10 19:55:52 -07:00
Slava Kim
c9334d3aaa Fix bad refactoring of getHost() 2015-08-10 15:25:37 -07:00
Anubhav Jain
bd6a0c0080 Add checks to see if frame exists before trying to access the func property 2015-08-10 15:22:59 -07:00
Sashko Stubailo
23b65c85e0 Fix parseStack usage 2015-08-10 12:05:53 -07:00
Sashko Stubailo
a315eca4d7 Fix test and parse stack 2015-08-06 16:41:19 -07:00
Slava Kim
b3f5a6e1f2 Move buildmessage guide closer to the lib 2015-08-06 16:40:56 -07:00
Slava Kim
39d8aef3d9 move files into console/ tool-testing/ 2015-08-06 16:39:00 -07:00
Sashko Stubailo
247aa77cb4 Change the way parseStack returns the stack to be fiber-aware 2015-08-06 16:20:08 -07:00
Slava Kim
924b1b40e0 Remove an extra execFile ref 2015-08-06 16:00:39 -07:00
Slava Kim
f49de5b9ac Move files connecting to Meteor-provided services
to a separate folder
2015-08-06 16:00:39 -07:00
Slava Kim
6b1bb038d8 Move files into tools/fs 2015-08-03 22:09:28 -07:00
Slava Kim
8a8db83d29 Move files into tools/utils 2015-08-03 20:32:38 -07:00