Re: [MacRuby-devel] NSView.knowsPageRange( range )

2010-05-23 Thread Robert Rice
Thanks Laurent - it works! Bob Rice On May 23, 2010, at 1:36 AM, Laurent Sansonetti wrote: > Hi Robert, > > Can you try: > > def knowsPageRange(range_ptr) > range_ptr[0] = NSMakeRange(1, 1) > true > end > > This method is called with a pointer to an NSRange structure and you're > supposed

Re: [MacRuby-devel] failing to build mysql gem

2010-05-23 Thread Laurent Sansonetti
Hi Joel, Indeed, we noticed that problem too. The plan for 0.7 is to clean out our public headers so that the true symbol is no longer pre-defined. Feel free to file a ticket if you want to track that issue. In the meantime I'm afraid you will have to change the code manually, as you already d

Re: [MacRuby-devel] [MacRuby] #727: re.h header missing

2010-05-23 Thread MacRuby
#727: re.h header missing +--- Reporter: spamfaen...@… | Owner: lsansone...@… Type: defect | Status: new Priority: blocker | Milestone:

Re: [MacRuby-devel] [MacRuby] #352: macirb does not eval UTF-String

2010-05-23 Thread MacRuby
#352: macirb does not eval UTF-String +--- Reporter: d...@… | Owner: lsansone...@… Type: defect | Status: new Priority: major | Milestone:

[MacRuby-devel] [MacRuby] #728: pre-definition of true conflicts with the mysql gem

2010-05-23 Thread MacRuby
#728: pre-definition of true conflicts with the mysql gem --+- Reporter: joe...@… | Owner: lsansone...@… Type: defect| Status: new Priority: blocker

Re: [MacRuby-devel] failing to build mysql gem

2010-05-23 Thread Joel Reymont
On May 23, 2010, at 9:02 AM, Laurent Sansonetti wrote: > Feel free to file a ticket if you want to track that issue. https://www.macruby.org/trac/ticket/728 > In the meantime I'm afraid you will have to change the code manually, as you > already did... My problem is that I can't manage to ins

Re: [MacRuby-devel] failing to build mysql gem

2010-05-23 Thread Joel Reymont
On May 23, 2010, at 9:02 AM, Laurent Sansonetti wrote: > In the meantime I'm afraid you will have to change the code manually, as you > already did... I can't manage to do this: http://pastie.org/973144 Thanks, Joel --- http://twitter.com/wagerlabs ___

Re: [MacRuby-devel] failing to build mysql gem

2010-05-23 Thread Laurent Sansonetti
On May 23, 2010, at 1:10 AM, Joel Reymont wrote: > > On May 23, 2010, at 9:02 AM, Laurent Sansonetti wrote: > >> Feel free to file a ticket if you want to track that issue. > > https://www.macruby.org/trac/ticket/728 Thanks :) >> In the meantime I'm afraid you will have to change the code man

Re: [MacRuby-devel] failing to build mysql gem

2010-05-23 Thread Joel Reymont
On May 23, 2010, at 9:19 AM, Laurent Sansonetti wrote: > What's happening exactly? What problem do you see? I assume there is a > gemspec file in the project with a makefile or rakefile task to generate the > gem. The problem was due to a missing ~/.rubyforge/user-config.yml which 'rubyforge

Re: [MacRuby-devel] failing to build mysql gem

2010-05-23 Thread Joel Reymont
I was able to advance with the mysql gem but somehow '-arch i386' is making its way into my build pipeline, despite building for x86_64. extconf.rb seems to store the wrong flags into the Makefile. Any suggestions how to fix this? Thanks, Joel --- biggie:mysql-gem joelr$ ARCHFLAGS="-a

Re: [MacRuby-devel] failing to build mysql gem

2010-05-23 Thread Joel Reymont
Narrowing this down further, the issue seems to be with CFLAGS generated by mkmf, e.g. macirb require 'mkmf' create_makefile 'test' This puts both '-arch i386' and '-arch x86_64' into CFLAGS. Any suggestions on how to control the architectures that mkmf puts in CFLAGS? ARCHFLAGS="-arch x86_6

[MacRuby-devel] DictionaryServices

2010-05-23 Thread ecin
I'd like to use Dictionary Services (http://developer.apple.com/mac/library/documentation/UserExperience/Reference/DictionaryServicesRef) to look up definitions in a MacRuby app, but am having a hard time figuring out exactly what I need to require in order to access its functions, as framework

Re: [MacRuby-devel] failing to build mysql gem

2010-05-23 Thread Joel Reymont
Finally, I was able to narrow it down to a bug in macruby. I had to edit rbconfig.rb to remove "-arch i386" from ARCH_FLAG, leaving it with just "-arch x86_64" which works for me. Then I had to remove the compiled rbconfig.rbo. All of the above leaves me with the bus error below. How do I debu

Re: [MacRuby-devel] failing to build mysql gem

2010-05-23 Thread Laurent Sansonetti
Hi Joel! On May 23, 2010, at 12:01 PM, Joel Reymont wrote: > Finally, I was able to narrow it down to a bug in macruby. > > I had to edit rbconfig.rb to remove "-arch i386" from ARCH_FLAG, leaving it > with just "-arch x86_64" which works for me. Then I had to remove the > compiled rbconfig.rb

Re: [MacRuby-devel] failing to build mysql gem

2010-05-23 Thread Joel Reymont
On May 23, 2010, at 8:37 PM, Laurent Sansonetti wrote: > Do you have a gdb backtrace or a crash log handy? I don't know how to get one. I am just installing llvm and preparing to build macruby from source. --- http://twitter.com/wagerlabs ___ MacRub

[MacRuby-devel] [MacRuby] #729: rbconfig.rb does not honor ARCH_FLAG

2010-05-23 Thread MacRuby
#729: rbconfig.rb does not honor ARCH_FLAG --+- Reporter: joe...@… | Owner: lsansone...@… Type: defect| Status: new Priority: blocker | Milestone

Re: [MacRuby-devel] failing to build mysql gem

2010-05-23 Thread Laurent Sansonetti
On May 23, 2010, at 12:38 PM, Joel Reymont wrote: > > On May 23, 2010, at 8:37 PM, Laurent Sansonetti wrote: > >> Do you have a gdb backtrace or a crash log handy? > > I don't know how to get one. I am just installing llvm and preparing to build > macruby from source. Every time a program cr

Re: [MacRuby-devel] failing to build mysql gem

2010-05-23 Thread Joel Reymont
On May 23, 2010, at 8:45 PM, Laurent Sansonetti wrote: > Every time a program crashes, a crash log file is generated in > ~/Library/Logs/CrashReporter (look for a macruby file there with the > appropriate time stamp). It's crashing in rb_vm_dispatch, e.g. http://gist.github.com/411199 ---

[MacRuby-devel] abort trap when building macruby

2010-05-23 Thread Joel Reymont
Any suggestions? Thanks, Joel --- uname -a Darwin biggie.local 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:57:13 PST 2010; root:xnu-1504.3.12~1/RELEASE_X86_64 x86_64 rake --verbose --trace (in /Users/joelr/work/ruby/MacRuby) ** Invoke default (first_time) ** Invoke all (first_ti

Re: [MacRuby-devel] abort trap when building macruby

2010-05-23 Thread Laurent Sansonetti
Did you try building without macrake? (Looks like your "rake" command uses the MacRuby rake). Laurent On May 23, 2010, at 1:37 PM, Joel Reymont wrote: > Any suggestions? > > Thanks, Joel > > --- > > uname -a > Darwin biggie.local 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:57:13

Re: [MacRuby-devel] abort trap when building macruby

2010-05-23 Thread Joel Reymont
On May 23, 2010, at 10:40 PM, Laurent Sansonetti wrote: > Looks like your "rake" command uses the MacRuby rake. Why do you say so? --- http://twitter.com/wagerlabs ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosf