Re: [MacRuby-devel] Embed does not seem to work anymore after upgrading from 0.5 to 0.6

2010-05-24 Thread Jeroen Jacobs
Well, I've tried that but it didn't seem to help.

I also have created a new app with the same requirements and for that one it 
did work well. I've compared the targets on both a new app and this one but 
there were no differences.

I am more or less out of ideas why it's not doing it right.

On 17 May 2010, at 00:50, Matt Aimonetti wrote:

> Try clearing your targets and build again.
> 
> - Matt
> 
> On Sun, May 16, 2010 at 10:03 AM, Jeroen Jacobs  wrote:
> I've recently upgraded from 0.5 to 0.6. When I checked if one of my apps 
> still was okay I noticed a problem when embedding MacRuby into the 
> application and running it on a MacRuby-less machine.
> 
> The first time it's trying to require something from MacRuby (in this case 
> Singleton and/or CGI) it throws a LoadError:
> *** Terminating app due to uncaught exception 'LoadError', reason: 'no such 
> file to load -- singleton (LoadError)'
> 
> The code can be found at GitHub: http://github.com/jeroenj/chill
> 
> For some reason the problem does not resist with new projects. So my best 
> guess is that there is something configured wrong in the project but I cannot 
> seem to find out what.
> ___
> 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] [MacRuby] #664: MacRuby Crashes When Scheduling a Block to Run on the Main Thread from a Background Thread

2010-05-24 Thread MacRuby
#664: MacRuby Crashes When Scheduling a Block to Run on the Main Thread from a
Background Thread
-+--
 Reporter:  dy...@…  |   Owner:  lsansone...@…
 Type:  defect   |  Status:  new  
 Priority:  blocker  |   Milestone:   
Component:  MacRuby  |Keywords:   
-+--

Comment(by dy...@…):

 Sorry for the delay on getting back to you. I finally ran this and got:

 [11:21][Desktop]$ macruby test.rb
 Assertion failed: (errorcode == 0), function setInstance, file
 ThreadLocal.cpp, line 61.
 Abort trap
 [11:21][Desktop]$ macruby test.rb
 Assertion failed: (errorcode == 0), function setInstance, file
 ThreadLocal.cpp, line 61.
 Abort trap
 [11:22][Desktop]$ macruby test.rb
 [11:22][Desktop]$ macruby test.rb
 [11:22][Desktop]$

 The first few times it fails, then runs with no output. This is with 0.6
 final.

-- 
Ticket URL: 
MacRuby 

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


Re: [MacRuby-devel] [MacRuby] #664: MacRuby Crashes When Scheduling a Block to Run on the Main Thread from a Background Thread

2010-05-24 Thread MacRuby
#664: MacRuby Crashes When Scheduling a Block to Run on the Main Thread from a
Background Thread
-+--
 Reporter:  dy...@…  |   Owner:  lsansone...@…
 Type:  defect   |  Status:  new  
 Priority:  blocker  |   Milestone:   
Component:  MacRuby  |Keywords:   
-+--

Comment(by dy...@…):

 Sorry, reformatting.

 {{{
 d[11:21][~]$ cd Desktop/
 [11:21][Desktop]$ macruby test.rb
 Assertion failed: (errorcode == 0), function setInstance, file
 ThreadLocal.cpp, line 61.
 Abort trap
 [11:21][Desktop]$ macruby test.rb
 Assertion failed: (errorcode == 0), function setInstance, file
 ThreadLocal.cpp, line 61.
 Abort trap
 [11:22][Desktop]$ macruby test.rb
 [11:22][Desktop]$ macruby test.rb
 [11:22][Desktop]$

 }}}

-- 
Ticket URL: 
MacRuby 

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


Re: [MacRuby-devel] DictionaryServices

2010-05-24 Thread Craig Williams
Hi ecin,

This appears to be working.

framework 
'/System/Library/Frameworks/CoreServices.framework/Frameworks/DictionaryServices.framework'

word = 'History'
word_len = DCSGetTermRangeInString(nil, word, 0);
res= DCSCopyTextDefinition(nil, word, word_len)

puts "Definition for: #{word}"
puts res

hth,

Craig



On May 23, 2010, at 10:02 AM, ecin wrote:

> 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 'Cocoa'
> framework 'CoreServices'
> 
> doesn't do the trick. Is this another example of missing bridge support, or 
> am I missing something else?
> ___
> 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] failing to build mysql gem

2010-05-24 Thread Thibault Martin-Lagardette
It looks like rb_vm_dispatch is going into an infinite loop... 
What is the test_mysql.rb file that you are running?

Also, with the exact same procedure, in lieu of doing "thread apply all bt", 
could you try:
p (char *)sel
This is hoping the variable is not optimized away...

-- 
Thibault Martin-Lagardette



On May 23, 2010, at 12:50, Joel Reymont wrote:

> 
> 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
> 
> ---
> http://twitter.com/wagerlabs
> 
> ___
> 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] failing to build mysql gem

2010-05-24 Thread Joel Reymont

On May 24, 2010, at 8:35 PM, Thibault Martin-Lagardette wrote:

> What is the test_mysql.rb file that you are running?

I don't think I'm doing any thread application or running test_mysql.rb at all.

I'm just running macrake in the mysql gem directory.

---
http://twitter.com/wagerlabs

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


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

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

Comment(by martinlagarde...@…):

 You can actually use RC_ARCHS to do this:

 {{{
 $> RC_ARCHS="x86_64" rake jobs=2 optz_level=0
 (in /Users/naixn/Documents/Projets/MacRuby)
 Getting archs from RC_ARCHS!
 /usr/bin/bison -o y.tab.c parse.y
 parse.y: conflicts: 1 shift/reduce
 /usr/bin/sed -f ./tool/ytab.sed -e "/^#/s!y.tab.c!parse.c!" y.tab.c >
 parse.c.new
 mv parse.c.new parse.c
 rm -f parse.o
 cp lex.c.blt lex.c
 /usr/bin/ruby -n tool/node_name.rb include/ruby/node.h > node_name.inc
 echo '' > kernel_data.c
 /Developer/usr/bin/llvm-gcc -arch x86_64 -fexceptions -I. -I./include
 -I/usr/include/libxml2 -I./icu-1060 --emit-llvm -c kernel.c -o kernel-
 x86_64.bc
 /usr/local/bin/opt -O3 kernel-x86_64.bc -o=kernel-x86_64.bc
 /bin/dd if=/dev/zero count=1 bs=1 conv=notrunc >> kernel-x86_64.bc
 2>/dev/null
 /usr/bin/xxd -i kernel-x86_64.bc >> kernel_data.c
 /bin/rm kernel-x86_64.bc
 /usr/bin/gcc-4.2 -I. -I./include -I/usr/include/libxml2 -arch x86_64 -fno-
 common -pipe -g -Wall -fexceptions -O0 -Wno-deprecated-declarations
 -Werror -std=c99 -I./icu-1060 -c array.c -o array.o
 /usr/bin/gcc-4.2 -I. -I./include -I/usr/include/libxml2 -arch x86_64 -fno-
 common -pipe -g -Wall -fexceptions -O0 -Wno-deprecated-declarations
 -Werror -std=c99 -I./icu-1060 -c bignum.c -o bignum.o
 /usr/bin/gcc-4.2 -I. -I./include -I/usr/include/libxml2 -arch x86_64 -fno-
 common -pipe -g -Wall -fexceptions -O0 -Wno-deprecated-declarations
 -Werror -std=c99 -I./icu-1060 -c class.c -o class.o
 /usr/bin/gcc-4.2 -I. -I./include -I/usr/include/libxml2 -arch x86_64 -fno-
 common -pipe -g -Wall -fexceptions -O0 -Wno-deprecated-declarations
 -Werror -std=c99 -I./icu-1060 -c compar.c -o compar.o
 }}}

-- 
Ticket URL: 
MacRuby 

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


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

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

Comment(by lsansone...@…):

 That's not enough, rbconfig.rb should honor ARCH_FLAG so that later you
 can decide to build an extension for a specific architecture.

-- 
Ticket URL: 
MacRuby 

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


[MacRuby-devel] Hi! a good news. k--*

2010-05-24 Thread Mark Buckingham
Hi!  a good news. The website http://www.fungpui.info";>www.fungpui.info is having a
SALES  and offering a big discount. But the qualities are
great . Beacuse I have bought some .  They mainly sell
all kinds of MP3,TV,Motorbike,Cellphone,Laptop etc. with very
 ~--5
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel