From ruby-noreply at macosforge.org Sun Apr 1 03:18:34 2012 From: ruby-noreply at macosforge.org (MacRuby) Date: Sun, 01 Apr 2012 10:18:34 +0000 Subject: [MacRuby] #1493: Dispatch::Group.new does not raise an exception if passes an argument. Message-ID: <051.587d4945796a3189f998f159338d5545@macosforge.org> #1493: Dispatch::Group.new does not raise an exception if passes an argument. ----------------------------------+----------------------------------------- Reporter: watson1978@? | Owner: lsansonetti@? Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Dispatch::Group.new does not accept an argument. https://github.com/MacRuby/MacRuby/blob/master/gcd.c#L1397-1398 However, Dispatch::Group.new does not raise an exception if I pass an argument to Dispatch::Group.new. {{{ $ macirb irb(main):001:0> group = Dispatch::Group.new(100) => # }}} -- Ticket URL: MacRuby From ruby-noreply at macosforge.org Mon Apr 2 05:57:43 2012 From: ruby-noreply at macosforge.org (MacRuby) Date: Mon, 02 Apr 2012 12:57:43 +0000 Subject: [MacRuby] #1494: Bignum#=== causes a crash Message-ID: <051.01c01c6a86007afc60c2cb4d50af904b@macosforge.org> #1494: Bignum#=== causes a crash ----------------------------------+----------------------------------------- Reporter: watson1978@? | Owner: lsansonetti@? Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Test Script: {{{ bignum1 = 9223372036854775808 bignum2 = 9223372036854775809 bignum1 === 1 #bignum1 === bignum2 }}} {{{ $ macruby test_bignum.rb zsh: segmentation fault macruby test_bignum.rb }}} -- Ticket URL: MacRuby From ruby-noreply at macosforge.org Mon Apr 2 06:01:05 2012 From: ruby-noreply at macosforge.org (MacRuby) Date: Mon, 02 Apr 2012 13:01:05 +0000 Subject: [MacRuby] #1494: Bignum#=== causes a crash In-Reply-To: <051.01c01c6a86007afc60c2cb4d50af904b@macosforge.org> References: <051.01c01c6a86007afc60c2cb4d50af904b@macosforge.org> Message-ID: <060.62cd0c17a301f59344b5aaa146a7245a@macosforge.org> #1494: Bignum#=== causes a crash ----------------------------------+----------------------------------------- Reporter: watson1978@? | Owner: lsansonetti@? Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by watson1978@?): Backtrace: {{{ Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: 13 at address: 0x0000000000000000 0x00007fff9856995b in _class_getSuperclass () (gdb) bt #0 0x00007fff9856995b in _class_getSuperclass () #1 0x0000000100026944 in foundation_type (k=0xc00000003a3d3d3d) at class.c:1344 #2 0x00000001000269e8 in rb_objc_type (obj=4316040096) at class.c:1364 #3 0x00000001000109a7 in rb_type (obj=4316040096) at ruby.h:965 #4 0x0000000100016cdf in rb_big_eq (x=17184690944, y=4316040096) at bignum.c:1572 #5 0x00000001001bb0af in __rb_vm_rcall [inlined] () at /Users/watson/src /macruby-master/dispatcher.cpp:161 #6 0x00000001001bb0af in ruby_dispatch [inlined] () at /Users/watson/src /macruby-master/dispatcher.cpp:466 #7 0x00000001001bb0af in rb_vm_dispatch () at dispatcher.cpp:874 #8 0x00000001017004f4 in ?? () #9 0x00000001017001e0 in ?? () #10 0x000000010170003e in ?? () #11 0x00000001001dce6f in rb_vm_run (fname=0x400497d80 "/Users/watson/tmp/test_bignum.rb", node=0x400499f00, binding=0x0, inside_eval=false) at vm.cpp:4187 #12 0x000000010003cb31 in ruby_run_node (n=0x400499f00) at eval.c:211 #13 0x0000000100000c0d in main (argc=2, argv=0x101415750, envp=0x7fff5fbff700) at main.cpp:40 (gdb) }}} -- Ticket URL: MacRuby From ruby-noreply at macosforge.org Mon Apr 2 20:36:50 2012 From: ruby-noreply at macosforge.org (MacRuby) Date: Tue, 03 Apr 2012 03:36:50 +0000 Subject: [MacRuby] #1494: Bignum#=== causes a crash In-Reply-To: <051.01c01c6a86007afc60c2cb4d50af904b@macosforge.org> References: <051.01c01c6a86007afc60c2cb4d50af904b@macosforge.org> Message-ID: <060.0d2f80e9dbf441df2cf59835deab7e24@macosforge.org> #1494: Bignum#=== causes a crash ----------------------------------+----------------------------------------- Reporter: watson1978@? | Owner: lsansonetti@? Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by watson1978@?): Hmm, this issue occurs since https://github.com/MacRuby/MacRuby/commit/6fd57fc517cceeb56dea788b55c8067796e0a379 -- Ticket URL: MacRuby From ruby-noreply at macosforge.org Mon Apr 2 20:49:53 2012 From: ruby-noreply at macosforge.org (MacRuby) Date: Tue, 03 Apr 2012 03:49:53 +0000 Subject: [MacRuby] #1494: Bignum#=== causes a crash In-Reply-To: <051.01c01c6a86007afc60c2cb4d50af904b@macosforge.org> References: <051.01c01c6a86007afc60c2cb4d50af904b@macosforge.org> Message-ID: <060.9267957fa9c0a1c399403f7218c20930@macosforge.org> #1494: Bignum#=== causes a crash ----------------------------------+----------------------------------------- Reporter: watson1978@? | Owner: lsansonetti@? Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by watson1978@?): Fixed with https://github.com/MacRuby/MacRuby/commit/1070a0d73f93f0426cd1dbea740c0349ab3dd487 -- Ticket URL: MacRuby From ruby-noreply at macosforge.org Mon Apr 2 20:50:03 2012 From: ruby-noreply at macosforge.org (MacRuby) Date: Tue, 03 Apr 2012 03:50:03 +0000 Subject: [MacRuby] #1494: Bignum#=== causes a crash In-Reply-To: <051.01c01c6a86007afc60c2cb4d50af904b@macosforge.org> References: <051.01c01c6a86007afc60c2cb4d50af904b@macosforge.org> Message-ID: <060.15833a4ba120dab27ea139fd87c948b7@macosforge.org> #1494: Bignum#=== causes a crash ----------------------------------+----------------------------------------- Reporter: watson1978@? | Owner: lsansonetti@? Type: defect | Status: closed Priority: blocker | Milestone: Component: MacRuby | Resolution: fixed Keywords: | ----------------------------------+----------------------------------------- Changes (by watson1978@?): * status: new => closed * resolution: => fixed -- Ticket URL: MacRuby From ruby-noreply at macosforge.org Wed Apr 4 02:02:19 2012 From: ruby-noreply at macosforge.org (MacRuby) Date: Wed, 04 Apr 2012 09:02:19 +0000 Subject: [MacRuby] #1446: Add additional diagnostic info when assertion fails in RoxorVM::pop_current_exception In-Reply-To: <049.c79ccef9488b051830b0a1515bd5605d@macosforge.org> References: <049.c79ccef9488b051830b0a1515bd5605d@macosforge.org> Message-ID: <058.009614972329d38c8de2e17451341234@macosforge.org> #1446: Add additional diagnostic info when assertion fails in RoxorVM::pop_current_exception --------------------------------+------------------------------------------- Reporter: msabramo@? | Owner: lsansonetti@? Type: enhancement | Status: closed Priority: minor | Milestone: Component: MacRuby | Resolution: fixed Keywords: | --------------------------------+------------------------------------------- Changes (by watson1978@?): * status: new => closed * resolution: => fixed Comment: This request has been merged to master branch. https://github.com/MacRuby/MacRuby/commit/ca3efd0bdb480aa6f03ad75b1bc5f979386d3d05 Thanks! -- Ticket URL: MacRuby From ruby-noreply at macosforge.org Thu Apr 5 08:05:17 2012 From: ruby-noreply at macosforge.org (MacRuby) Date: Thu, 05 Apr 2012 15:05:17 +0000 Subject: [MacRuby] #1495: misses the evaluation order to create Range object. Message-ID: <051.45ead4eda8ad9933dd38c5ff358b7916@macosforge.org> #1495: misses the evaluation order to create Range object. ----------------------------------+----------------------------------------- Reporter: watson1978@? | Owner: lsansonetti@? Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- To create Range object, it seems that MacRuby evaluates the Range's end at first. {{{ $ ruby19 -e 'p (x = 0) .. (x + 1)' 0..1 $ macruby -e 'p (x = 0) .. (x + 1)' -e:in `
': undefined method `+' for nil:NilClass (NoMethodError) }}} -- Ticket URL: MacRuby From ruby-noreply at macosforge.org Thu Apr 5 08:52:52 2012 From: ruby-noreply at macosforge.org (MacRuby) Date: Thu, 05 Apr 2012 15:52:52 +0000 Subject: [MacRuby] #1495: misses the evaluation order to create Range object. In-Reply-To: <051.45ead4eda8ad9933dd38c5ff358b7916@macosforge.org> References: <051.45ead4eda8ad9933dd38c5ff358b7916@macosforge.org> Message-ID: <060.c15e035c07d44678340cea35634bfd79@macosforge.org> #1495: misses the evaluation order to create Range object. ----------------------------------+----------------------------------------- Reporter: watson1978@? | Owner: lsansonetti@? Type: defect | Status: closed Priority: blocker | Milestone: Component: MacRuby | Resolution: fixed Keywords: | ----------------------------------+----------------------------------------- Changes (by watson1978@?): * status: new => closed * resolution: => fixed Comment: Fixed with https://github.com/MacRuby/MacRuby/commit/cf2d0565bef01ec5ebbca715a6f328ce3434fc68 -- Ticket URL: MacRuby From ruby-noreply at macosforge.org Thu Apr 5 18:32:22 2012 From: ruby-noreply at macosforge.org (MacRuby) Date: Fri, 06 Apr 2012 01:32:22 +0000 Subject: [MacRuby] #1496: Range#first(num) should return array which includes the num elements. Message-ID: <051.e766e92587ccf9b7e4ecbcd514b0abcf@macosforge.org> #1496: Range#first(num) should return array which includes the num elements. ----------------------------------+----------------------------------------- Reporter: watson1978@? | Owner: lsansonetti@? Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Test Script: {{{ rng = (0..10) p rng.first(0) p rng.first(1) p rng.first(2) }}} Result: {{{ $ ruby19 test_range.rb [] [0] [0, 1] $ macruby test_range.rb [0] [0, 1] [0, 1, 2] }}} Range#first(0) should return empty array, #first(1) should return one element... -- Ticket URL: MacRuby From ruby-noreply at macosforge.org Thu Apr 5 18:38:59 2012 From: ruby-noreply at macosforge.org (MacRuby) Date: Fri, 06 Apr 2012 01:38:59 +0000 Subject: [MacRuby] #1496: Range#first(num) should return array which includes the num elements. In-Reply-To: <051.e766e92587ccf9b7e4ecbcd514b0abcf@macosforge.org> References: <051.e766e92587ccf9b7e4ecbcd514b0abcf@macosforge.org> Message-ID: <060.3d64a18b0cb1ea20d5ce783d2a183394@macosforge.org> #1496: Range#first(num) should return array which includes the num elements. ----------------------------------+----------------------------------------- Reporter: watson1978@? | Owner: lsansonetti@? Type: defect | Status: closed Priority: blocker | Milestone: Component: MacRuby | Resolution: fixed Keywords: | ----------------------------------+----------------------------------------- Changes (by watson1978@?): * status: new => closed * resolution: => fixed Comment: Fixed with https://github.com/MacRuby/MacRuby/commit/33add5d012b46338ba79691730898cb309267b4c -- Ticket URL: MacRuby From ruby-noreply at macosforge.org Tue Apr 10 01:48:47 2012 From: ruby-noreply at macosforge.org (MacRuby) Date: Tue, 10 Apr 2012 08:48:47 +0000 Subject: [MacRuby] #1497: #inspect with Protocol object causes a crash Message-ID: <051.4ce6f4f0375e732cac41693a04d0f5f9@macosforge.org> #1497: #inspect with Protocol object causes a crash ----------------------------------+----------------------------------------- Reporter: watson1978@? | Owner: lsansonetti@? Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Test Script: {{{ framework 'Cocoa' proto = NSProtocolFromString("NSTableViewDataSource") puts proto.description puts proto.inspect }}} Result: {{{ $ macruby test.rb 2012-04-10 17:46:24.000 macruby[9496:60b] *** NSInvocation: warning: object 0x7fff782212c0 of class 'Protocol' does not implement methodSignatureForSelector: -- trouble ahead 2012-04-10 17:46:24.001 macruby[9496:60b] *** NSInvocation: warning: object 0x7fff782212c0 of class 'Protocol' does not implement doesNotRecognizeSelector: -- abort zsh: trace trap macruby test.rb }}} -- Ticket URL: MacRuby From ruby-noreply at macosforge.org Fri Apr 13 08:06:29 2012 From: ruby-noreply at macosforge.org (MacRuby) Date: Fri, 13 Apr 2012 15:06:29 +0000 Subject: [MacRuby] #1432: macruby fails with error "JSON::Ext::Generator::GeneratorMethods::Object:Class is not a module" while using cucumber 1.1.4 In-Reply-To: <056.5427aa0d57bb8db993b55e23199f09e9@macosforge.org> References: <056.5427aa0d57bb8db993b55e23199f09e9@macosforge.org> Message-ID: <065.493a363bf46281112e004abe35ef1211@macosforge.org> #1432: macruby fails with error "JSON::Ext::Generator::GeneratorMethods::Object:Class is not a module" while using cucumber 1.1.4 ---------------------------------------+------------------------------------ Reporter: matthieu.desile@? | Owner: lsansonetti@? Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ---------------------------------------+------------------------------------ Comment(by matthieu.desile@?): thanks, it works ! -- Ticket URL: MacRuby From ruby-noreply at macosforge.org Sat Apr 14 02:26:09 2012 From: ruby-noreply at macosforge.org (MacRuby) Date: Sat, 14 Apr 2012 09:26:09 +0000 Subject: [MacRuby] #1498: Can't retrieve the file path and line with DTrace in MacRuby probe Message-ID: <051.fc1e0fa7f60f403ee2cf92bc2c42ec41@macosforge.org> #1498: Can't retrieve the file path and line with DTrace in MacRuby probe ----------------------------------+----------------------------------------- Reporter: watson1978@? | Owner: lsansonetti@? Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Since MacRuby 0.6, can't retrieve the file path and line correctly with DTrace. Test case: {{{ begin raise "test" rescue end }}} {{{ #!/usr/sbin/dtrace -s #pragma D option quiet macruby$target:::raise { printf("*** raise!!! %s : %s : %d\n", copyinstr(arg0), copyinstr(arg1), arg2); } }}} Result: {{{ $ sudo dtrace -qs method.d -c "macruby -v test.rb" MacRuby version 0.5 (ruby 1.9.0) [universal-darwin10.0, x86_64] *** raise!!! RuntimeError : test.rb : 2 $ sudo dtrace -qs method.d -c "macruby -v test.rb" MacRuby version 0.6 (ruby 1.9.0) [universal-darwin10.0, x86_64] *** raise!!! RuntimeError : core : 0 }}} -- Ticket URL: MacRuby From ruby-noreply at macosforge.org Mon Apr 16 21:25:35 2012 From: ruby-noreply at macosforge.org (MacRuby) Date: Tue, 17 Apr 2012 04:25:35 +0000 Subject: [MacRuby] #1429: STDIN.eof? consumes first input character In-Reply-To: <049.ba112a939b0c4b237e9f91d2b820c9cf@macosforge.org> References: <049.ba112a939b0c4b237e9f91d2b820c9cf@macosforge.org> Message-ID: <058.f651f9b93c8f2318163df054e59e766b@macosforge.org> #1429: STDIN.eof? consumes first input character --------------------------------+------------------------------------------- Reporter: lastobelus@? | Owner: lsansonetti@? Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: --------------------------------+------------------------------------------- Comment(by chris@?): I was not able to reproduce this as of git revision: eabb31c50770c22979477c00536a09bede2ed303 {{{ def test STDIN.eof? STDIN.gets end x = test if x == "foo\n" puts "PASS" else puts "FAIL, got '#{x}'" end ? MacRuby git:(master) ? echo "foo" | ./macruby test_io.rb PASS }}} -- Ticket URL: MacRuby From ruby-noreply at macosforge.org Sun Apr 29 07:19:51 2012 From: ruby-noreply at macosforge.org (MacRuby) Date: Sun, 29 Apr 2012 14:19:51 +0000 Subject: [MacRuby] #1499: Can't install MacRuby in Lion Message-ID: <058.04b99b152b1c3f2e34d27058ee58cd8e@macosforge.org> #1499: Can't install MacRuby in Lion -----------------------------------------+---------------------------------- Reporter: manfredigiordano@? | Owner: lsansonetti@? Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: macruby -----------------------------------------+---------------------------------- Hello, I have a problem with MacRuby in my MacBook Pro (OS X 10.7.3). I tried to install the nightly build 0.12 because I read that there was a problem with 0.10 since xCode is installed in /Applications instead of /Developer (however, mine is installed in /Developer since I upgraded from Snow Leopard; but I wasn't able to install MacRuby 0.10 too before trying the latest build). So I got a folder called MacRuby.framework in /Library/Frameworks which also include executables for macruby, macirb, macri, ... but I can't use them from Terminal. Also, they're not found by 'which' command. Should MacRuby be installed in ~/Library/ instead of /Library/ ? I once (successfully) installed MacRuby in a Mac mini with Lion pre- installed so I guess that the problem is my MacBook. Am I missing something? What should I do? Thanks in advance -- Ticket URL: MacRuby