Commit Graph

203 Commits

Author SHA1 Message Date
Eloy Durán
145033f4a4 Revert "fix a bug which simulator use high CPU usage if app cannot respond"
This change made normal usage of the REPL when trying to select a view
very slow. Needs a better fix after the 2.25 release.

This reverts commit 5b1398c796.

Related to http://hipbyte.myjetbrains.com/youtrack/issue/RM-458.
2014-04-07 18:07:42 +02:00
Watson
5b1398c796 fix a bug which simulator use high CPU usage if app cannot respond
http://hipbyte.myjetbrains.com/youtrack/issue/RM-458

repl_fd is non-blocking socket.

If app cannot respond with heavy work load,
it caused a infinity loop without waiting in
9d7ac6b8fc/bin/sim.m (L714-L720)
2014-03-31 22:50:22 +09:00
Watson
9d7ac6b8fc shouldn't use Objective-C literal for 10.7 Lion
http://hipbyte.myjetbrains.com/youtrack/issue/RM-454

Maybe, Objective-C literal will support 10.8 Mountain Lion or later
2014-03-27 23:16:28 +09:00
Watson
c8493e6800 fix an error in remote debugging if use UTF-8 as app name
http://hipbyte.myjetbrains.com/youtrack/issue/RM-452
2014-03-27 08:46:54 +09:00
Watson
e755e26d0d fix indentation 2014-03-25 13:58:37 +09:00
Watson
658471d24b fix a bug which Xcode5.1 lldb cannot connect to remote debugserver on iOS device
Looks like Xcode5.1 lldb no longer create UNIX domain socket using "unix-accept" URI.
So, we passes connected socket to lldb using "fd://".
2014-03-25 13:47:32 +09:00
Watson
6f6ce15d59 fix to be able to exit normally if it cannot connect lldb to remote
if deploy command cannot connect lldb to remote,
it causes an infinity loop in where connect to remote.
And lldb will not accept any commands.
2014-03-24 11:08:43 +09:00
Laurent Sansonetti
0e6228a545 add magic encoding comments 2014-03-05 13:07:38 +01:00
Eloy Durán
04bc042223 [sim] Don't make the sim app active when background_fetch=1. 2014-03-03 15:39:09 +01:00
Eloy Durán
5c559dff61 [sim] Leave warning the user up to the REPL itself. 2014-03-03 14:53:54 +01:00
Eloy Durán
97bdfba465 [sim] Add background_fetch env var to launch iOS app in background.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-340
2014-02-27 18:33:28 +01:00
Eloy Durán
753d7eb1ae [sim] Only get window metrics for the REPL if the (sim) app is active.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-387
2014-02-27 17:11:08 +01:00
Eloy Durán
086d232ba0 [REPL/OSX] Make it work when codesigned and sandboxed.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-410
2014-02-04 14:13:43 +01:00
Eloy Durán
fea2150aae [Command] Deprecate Motion::Project::Command, long live Motion::Command!
Some of our commands are not related to ‘a project’ at all, so the
namespacing felt incorrect, but this also helps greatly for the
transition process. I.e. old command plugins will inherit from the
deprecated class and still work and we get to re-use the `Command` name.
2014-01-20 17:56:14 +01:00
Eloy Durán
86c2914a44 [command] Change base class to use CLAide::Command. 2014-01-20 17:56:13 +01:00
Eloy Durán
f6b145b495 [sim] Get simulated app PID as int instead of NSNumber.
Related to http://hipbyte.myjetbrains.com/youtrack/issue/RM-365
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-371
2014-01-06 12:40:34 +01:00
Laurent Sansonetti
7fd4914694 capitalize 2014-01-02 11:57:56 +01:00
Laurent Sansonetti
9f4d9e01c7 add 'rake crashlog:device' task, wording/UX is still a work in progress 2013-12-29 19:55:48 +01:00
Laurent Sansonetti
bd8536dbcc libmacruby -> librubymotion 2013-12-24 18:25:19 +01:00
Laurent Sansonetti
befb73f73d better message 2013-12-21 11:46:31 +01:00
Watson
9bf407e413 [sim] display message instead of assert with Xcode 4 2013-12-21 11:36:23 +09:00
Eloy Durán
12cf8353fe [sim] Get simulated app PID as int instead of NSNumber.
Related to http://hipbyte.myjetbrains.com/youtrack/issue/RM-365
2013-12-20 15:09:53 +01:00
Eloy Durán
6b75ce9014 [sim] Make app launch again with Xcode 5.1.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-365
2013-12-20 15:09:42 +01:00
Laurent Sansonetti
b2b53228d6 run all LLDB debugger commands in synchronous mode: this is VERY important as we don’t want to run ANY command on the default LLDB debugger object in async mode, otherwise the state of the objects will not be properly updated when we receive commands from the GDB server on the device 2013-11-19 20:10:06 +01:00
Laurent Sansonetti
0ad5c6454f debug logging, hope we will not have to use that any time soon 2013-11-19 20:10:06 +01:00
Laurent Sansonetti
8210a5731b increase socket buffer size so that we can read most (all?) of the gdb server replies in one shot, for better performance 2013-11-19 20:10:06 +01:00
Laurent Sansonetti
cee7f2d260 xcode also sends this command, so we do too… 2013-11-15 14:40:07 +01:00
Laurent Sansonetti
a6e230cea1 send the appropriate command to configure symbol search paths 2013-11-15 14:39:32 +01:00
Laurent Sansonetti
76761b139d code format 2013-11-15 14:33:14 +01:00
Laurent Sansonetti
163590dff9 print a warning message in case the device support directory doesn’t have symbols, as it will slow down the debugger 2013-11-15 14:32:54 +01:00
Laurent Sansonetti
72b25c11b5 better device support directory selection, we will select the directory that matches exactly the version of iOS the device is running in priority over other directories 2013-11-15 14:31:54 +01:00
Eloy Durán
a607e6fa52 [analyzer] Use CC and CXX env variables if set. 2013-11-12 22:10:41 +01:00
Eloy Durán
da14a8b0eb [REPL] Use DEBUG_SIM_WINDOW_OFFSETS to print what sim is recognized. 2013-11-11 17:40:45 +01:00
Eloy Durán
80fd09c608 [REPL] Document inset macro. 2013-11-09 01:42:18 +01:00
Eloy Durán
2250d3ca46 [REPL] Properly name inset macro. 2013-11-09 01:38:27 +01:00
Eloy Durán
07c17769ef [REPL] Cover devices I can test on non-retina mac and handle landscape. 2013-11-09 01:34:56 +01:00
Eloy Durán
c7688dd2ff [REPL] No longer ask user to scale to 50% in Retina mode. 2013-11-08 18:52:49 +01:00
Eloy Durán
dceb65c6f2 [REPL] Take orientation into account when offsetting thick borders. 2013-11-08 18:36:59 +01:00
Eloy Durán
1c151523d7 Merge branch 'master' into repl 2013-11-08 13:28:15 +01:00
Eloy Durán
2e9f7d0495 [REPL] Apply proper insets for all thick borders except iPad Retina. 2013-11-07 19:27:53 +01:00
Eloy Durán
350a3a09f8 [REPL] Recognize thick borders for all devices except iPad Retina. 2013-11-07 18:51:40 +01:00
Eloy Durán
c192ddb154 Small cleanup. 2013-11-07 16:57:10 +01:00
Eloy Durán
4f0b155741 [REPL] Always update windows bounds in sim.
This ensures the user can switch the iOS device scale without having to
restart the REPL.
2013-11-07 16:54:22 +01:00
Watson
e64429b580 ignore SIGINT within select() in order to forward to lldb
if accept SIGINT within select(),
it will create zombie process of lldb.
2013-11-07 13:17:21 +09:00
Watson
eb6572a9c5 exit a loop if read() returns 0 because socket might be closed
related to http://hipbyte.myjetbrains.com/youtrack/issue/RM-309

This will fix a freeze when terminate lldb with "quit" command
2013-11-07 12:56:45 +09:00
Watson
45cfdfc2b4 build for debug if set DEBUG environment variable 2013-11-07 12:35:09 +09:00
Eloy Durán
3ffcbe1d54 [REPL] Report relative geometry from sim, taking scale factor out of equation. 2013-11-06 18:25:03 +01:00
Watson
3d1e71de3f execvp() needs launching path in first element of 2nd argument (like main() function's argv) 2013-11-06 13:57:56 +09:00
Watson
f117ee686e use RMTask instead of NSTask to launch lldb for OSX 10.9
Because OSX 10.9's NSTask cannot launch lldb
(This is same issue with http://hipbyte.myjetbrains.com/youtrack/issue/RM-295)
2013-11-06 12:58:04 +09:00
Watson
3386dd113f split the source code for RMTask 2013-11-06 12:57:47 +09:00