Commit Graph

97 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
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
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
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
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
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
3386dd113f split the source code for RMTask 2013-11-06 12:57:47 +09:00
Eloy Durán
5653716744 [sim] Recognize 64-bit 4-inch iPhone simulator window. 2013-11-05 19:15:39 +01:00
Laurent Sansonetti
edcdf29ed6 ship only one libmacruby-repl.dylib file per platform, the one that has been built with the lowest deployment target (4.3 for ios and 10.7 for osx) 2013-10-30 23:54:57 +01:00
Laurent Sansonetti
90f6e7e83c use NSTask to launch osx apps 2013-10-30 12:53:14 +01:00
Laurent Sansonetti
396636f69f [OSX] fix default lldb commands 2013-10-29 17:51:27 +01:00
Laurent Sansonetti
e7005f1779 [OSX} launch /usr/bin/lldb in case /usr/bin/gdb does not exist 2013-10-29 15:37:54 +01:00
Eloy Durán
ac34d37b06 [sim] Although it's not leaking in practice, add -[RMTask dealloc] nonetheless. 2013-10-28 11:56:19 +01:00
Eloy Durán
e6d56cb167 [10.9] NSTask is unable to launch lldb. Replace with custom task for now.
It appears that NSTask was re-written on 10.9 and others have similar
issues as well. E.g. https://devforums.apple.com/message/863811#863811.

Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-295.
2013-10-25 20:00:53 +02:00
Laurent Sansonetti
41d5acbb1b better messages 2013-08-25 14:57:55 +02:00
Watson
af3678071d fix mouse over feature, now it works in 50 % window scale. 2013-08-25 15:25:09 +09:00
Watson
6e03a42e18 add iOS7 simulator pattern 2013-08-25 15:07:55 +09:00
Laurent Sansonetti
8cc0865f9d always set the libedit prompt in main thread, to avoid memory race condition crasher 2013-08-10 18:06:07 +02:00
Laurent Sansonetti
6d849e6563 fix compilation warning 2013-08-10 17:43:29 +02:00
Watson
b59e6bee89 forward a termination status in OSX environment to rake task 2013-08-07 23:50:02 +09:00
Watson
060e24d349 add lldb_commands_file for the initial configuration in lldb 2013-08-06 20:39:11 +09:00
Watson
098c8c48b9 split the method in where save command into temporary file 2013-08-06 20:39:06 +09:00
Watson
b503784a73 terminate RELP with exit status 0 if press CTRL + C 2013-07-23 02:27:30 +09:00
Watson
8384e336f9 fix a bug in debugger where built-in debug commands are not working
http://hipbyte.myjetbrains.com/youtrack/issue/RM-187

This bug was introduced by 3847d29e31
2013-07-19 16:48:38 +09:00
Laurent Sansonetti
9f3de43d1c fix race condition when launching simulator and activating simulator (in the foreground) 2013-06-14 13:46:27 +02:00
Laurent Sansonetti
3847d29e31 use lldb if gdb is not present, honor malloc_debug env variable (1 for malloc history debug, 2 for guard malloc) 2013-06-11 20:15:21 +02:00
Laurent Sansonetti
89ef64df1f fix 'rake debug=1' with app name including spaces (OSX) 2013-05-29 19:29:19 +09:00
Laurent Sansonetti
913ae11077 app.sim_args 2013-05-29 19:21:10 +09:00
Watson
3e075d47c5 add a feature which passing the arguments on launching app 2013-05-28 09:29:14 +09:00
Laurent Sansonetti
46a2e3d934 loop over windows 2013-05-07 12:09:36 +02:00