Re: [MacRuby-devel] [MacRuby] #336: NoMethodError with shoulda tests

2009-09-17 Thread MacRuby
#336: NoMethodError with shoulda tests
+---
 Reporter:  macr...@…   |   Owner:  lsansone...@…
 Type:  defect  |  Status:  new  
 Priority:  major   |   Milestone:  MacRuby 0.5  
Component:  MacRuby |Keywords:  shoulda  
+---

Comment(by eloy.de.en...@…):

 Great tip, thanks!

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] unrecognised defined?

2009-09-17 Thread Ben Schwarz

Hey Laurent,

Would it be possible for the error thrown to post some line /  
character information (backtrace?)

Or can I turn some verboseness on for debugging these issues somehow?

Cheers,

Ben


On 17/09/2009, at 12:16 PM, Laurent Sansonetti wrote:


Hi Ben,

This is a missing feature in the compiler, in the way we compile the  
defined? expression.


It's easily reproducible here:

$ ./miniruby -e 'p (defined? FOO && 42)'
unrecognized defined? arg: 21 (NODE_AND)Abort trap

I filed a test_vm case.

Now, it looks like the code you found this problem is bugged.

if defined? RUBY_ENGINE && RUBY_ENGINE == 'jruby'

should probably be written as

if (defined? RUBY_ENGINE) && RUBY_ENGINE == 'jruby'

otherwise, it seems to be the equivalent of

if defined?(RUBY_ENGINE && RUBY_ENGINE == 'jruby')

which is probably not what the code wants to do.

Laurent

On Sep 16, 2009, at 5:01 PM, Ben Schwarz wrote:


Hey folks,

After installing the 'grit' gem I required' it in macirb and  
received the following:


b...@homeslice ~ Ϟ macirb
irb(main):001:0> require 'grit'
	unrecognized defined? arg: 21 (NODE_AND)fish: Job 1, 'macirb'  
terminated by signal SIGABRT (Abort)



Which, I believe is responding to line 12 in grit.rb – http://github.com/mojombo/grit/blob/master/lib/grit.rb#L 
12
Is this a bug that should be logged? I've tried defined?  
RUBY_ENGINE in macirb and it appears to execute without a problem


Cheers,


--

Ben Schwarz
Web architect

Web:http://www.germanforblack.com

--
Please consider your environment before printing or distributing  
this material.

--

___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] unrecognised defined?

2009-09-17 Thread Vincent Isambart
> Would it be possible for the error thrown to post some line / character
> information (backtrace?)
Adding backtrace information is in the TODO list for 0.5.

> Or can I turn some verboseness on for debugging these issues somehow?
Not currently. I tend to use a lot the following line when searching
for a MacRuby bug:
STDERR.puts "#{__FILE__}:#{__LINE}"
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] unrecognised defined?

2009-09-17 Thread Matt Aimonetti
My understanding is that backtraces are really high on Laurent's TODO list
and I also use the same trick as Vincent when I need to debug some of my
code. (and yes, it's very frustrating and I can't wait to have some decent
backtraces and hopefully a debugger)

- Matt

On Thu, Sep 17, 2009 at 1:23 AM, Vincent Isambart <
vincent.isamb...@gmail.com> wrote:

> > Would it be possible for the error thrown to post some line / character
> > information (backtrace?)
> Adding backtrace information is in the TODO list for 0.5.
>
> > Or can I turn some verboseness on for debugging these issues somehow?
> Not currently. I tend to use a lot the following line when searching
> for a MacRuby bug:
> STDERR.puts "#{__FILE__}:#{__LINE}"
> ___
> MacRuby-devel mailing list
> MacRuby-devel@lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] unrecognised defined?

2009-09-17 Thread Ben Schwarz

Awesome stuff lads.
Perhaps this could be added to your .irbrc files to have it always  
present until backtraces are available?



On 17/09/2009, at 7:20 PM, Matt Aimonetti wrote:

My understanding is that backtraces are really high on Laurent's  
TODO list and I also use the same trick as Vincent when I need to  
debug some of my code. (and yes, it's very frustrating and I can't  
wait to have some decent backtraces and hopefully a debugger)


- Matt

On Thu, Sep 17, 2009 at 1:23 AM, Vincent Isambart > wrote:
> Would it be possible for the error thrown to post some line /  
character

> information (backtrace?)
Adding backtrace information is in the TODO list for 0.5.

> Or can I turn some verboseness on for debugging these issues  
somehow?

Not currently. I tend to use a lot the following line when searching
for a MacRuby bug:
STDERR.puts "#{__FILE__}:#{__LINE}"
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] unrecognised defined?

2009-09-17 Thread Eloy Duran

Hey Ben,


Awesome stuff lads.
Perhaps this could be added to your .irbrc files to have it always  
present until backtraces are available?


That wouldn't do any good though, as __FILE__ and __LINE always point  
to the file and line of the binding that it's evaluated from. So  
putting it in .irbrc at line 3 would mean it would print ".irbrc: 3",  
not what you'd expect…


Eloy


On 17/09/2009, at 7:20 PM, Matt Aimonetti wrote:

My understanding is that backtraces are really high on Laurent's  
TODO list and I also use the same trick as Vincent when I need to  
debug some of my code. (and yes, it's very frustrating and I can't  
wait to have some decent backtraces and hopefully a debugger)


- Matt

On Thu, Sep 17, 2009 at 1:23 AM, Vincent Isambart > wrote:
> Would it be possible for the error thrown to post some line /  
character

> information (backtrace?)
Adding backtrace information is in the TODO list for 0.5.

> Or can I turn some verboseness on for debugging these issues  
somehow?

Not currently. I tend to use a lot the following line when searching
for a MacRuby bug:
STDERR.puts "#{__FILE__}:#{__LINE}"
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] unrecognised defined?

2009-09-17 Thread Ben Schwarz

Good point Eloy, I wasn't really thinking there...

On 17/09/2009, at 7:55 PM, Eloy Duran wrote:


Hey Ben,


Awesome stuff lads.
Perhaps this could be added to your .irbrc files to have it always  
present until backtraces are available?


That wouldn't do any good though, as __FILE__ and __LINE always  
point to the file and line of the binding that it's evaluated from.  
So putting it in .irbrc at line 3 would mean it would print ".irbrc:  
3", not what you'd expect…


Eloy


On 17/09/2009, at 7:20 PM, Matt Aimonetti wrote:

My understanding is that backtraces are really high on Laurent's  
TODO list and I also use the same trick as Vincent when I need to  
debug some of my code. (and yes, it's very frustrating and I can't  
wait to have some decent backtraces and hopefully a debugger)


- Matt

On Thu, Sep 17, 2009 at 1:23 AM, Vincent Isambart > wrote:
> Would it be possible for the error thrown to post some line /  
character

> information (backtrace?)
Adding backtrace information is in the TODO list for 0.5.

> Or can I turn some verboseness on for debugging these issues  
somehow?

Not currently. I tend to use a lot the following line when searching
for a MacRuby bug:
STDERR.puts "#{__FILE__}:#{__LINE}"
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] RubyKaigi 2009 slides

2009-09-17 Thread Vincent Isambart
Hi,

Just to say I uploaded my RubyKaigi 2009 slides on slideshare:
http://www.slideshare.net/vincentisambart/rubymac

The presentation was entirely done in Japanese (with someone
translating in English on IRC) but the slides are bilingual
Japanese/English

The video is also available on Ustream but there is no translation and
you will only see the screen, not me presenting:
http://www.ustream.tv/recorded/1833285

PS: Yes I know it was two months ago, but well nobody asked for my
slides so I did not take the time to upload them :P.

Cheers,
Vincent
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Nib issues on Snow Leopard

2009-09-17 Thread Alex Vollmer

On Sep 16, 2009, at Sep 16, 6:12 PM, Bjoern Paschen wrote:


Hello Alex...

I watched that peepcode screencast a couple of days ago and build  
the app from scratch with macruby 0.5. If it is of any help, I put  
the project directory on my ftp:


ftp://witwenmacher.com/TwittRb.zip

The app works so far, except for the "require 'cgi'" in  
TwittRbDelegate.rb. That one throws an ArgumentError in  
define_method. If you comment it out the application will run but be  
unable to send tweets. I wasn't able to find a solution for that yet.


I get the same error Bjoern does on an 10.5 installation with MacRuby  
0.5, but the original nib-related errors are coming from MacRuby 0.5  
running on Snow Leopard. Bjoern, what OS are you running this on?


--Alex


http://alexvollmer.com
http://moochbot.com




___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Nib issues on Snow Leopard

2009-09-17 Thread Bjoern Paschen

Hi Alex ...

Am 17.09.2009 um 20:31 schrieb Alex Vollmer:

The app works so far, except for the "require 'cgi'" in  
TwittRbDelegate.rb. That one throws an ArgumentError in  
define_method. If you comment it out the application will run but  
be unable to send tweets. I wasn't able to find a solution for that  
yet.
I get the same error Bjoern does on an 10.5 installation with  
MacRuby 0.5, but the original nib-related errors are coming from  
MacRuby 0.5 running on Snow Leopard. Bjoern, what OS are you running  
this on?



I am running this on OS X 10.6.1 with the newest MacRuby 0.5 and XCode  
3.2 (64-bit).


Cheers, Bjoern.


___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Nib issues on Snow Leopard

2009-09-17 Thread Matt Aimonetti
The incomplete CGI implementation seems to be causing the issue:

$ macruby -e "require 'CGI'; puts CGI.escape('foo bar')"
wrong number of arguments (1 for 0) (ArgumentError)

I'll look into it tonight.

- Matt

On Thu, Sep 17, 2009 at 11:44 AM, Bjoern Paschen wrote:

> Hi Alex ...
>
> Am 17.09.2009 um 20:31 schrieb Alex Vollmer:
>
>  The app works so far, except for the "require 'cgi'" in
>>> TwittRbDelegate.rb. That one throws an ArgumentError in define_method. If
>>> you comment it out the application will run but be unable to send tweets. I
>>> wasn't able to find a solution for that yet.
>>>
>> I get the same error Bjoern does on an 10.5 installation with MacRuby 0.5,
>> but the original nib-related errors are coming from MacRuby 0.5 running on
>> Snow Leopard. Bjoern, what OS are you running this on?
>>
>
>
> I am running this on OS X 10.6.1 with the newest MacRuby 0.5 and XCode 3.2
> (64-bit).
>
> Cheers, Bjoern.
>
>
>
> ___
> MacRuby-devel mailing list
> MacRuby-devel@lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel