Error running junquenote
Jeff Morgan
3 posts
|
I just installed jruby and all suggested gems. When I try to run
|
Ian Dees
26 posts
|
Hi, Jeff. The shell script is just a wrapper around the Either running What versions of JRuby and OS X are you running? I’ll try to replicate your setup as closely as I can here. —Ian |
Jeff Morgan
3 posts
|
Ian, When I ran the mac script as noted I got the same stacktrace. I am using jruby actionmailer (2.1.0) |
Jeff Morgan
3 posts
|
I tried to run the app on my Windows VM after installing jruby and it worked fine. |
Ian Dees
26 posts
|
Hi, Jeff. Glad to hear the example’s running okay. Sorry about the extra step needed with the VM. If you’d still like to pursue getting this running on just Leopard, the next thing I’d try would be to use a clean copy of JRuby 1.1.3, something like this (taken from my .bash_history on an Intel iMac running 10.5.4):
I also tried installing the same set of gems and versions listed above, and couldn’t repeat the failure here. One thing that would be interesting would be to see if one of the demo apps from the Cheri website works at all:
require 'rubygems'
require 'cheri/swing'
include Cheri::Swing
f = swing.frame('Hello World') { label 'Hello!' }
f.pack
f.visible = true
|
gb
5 posts
|
So I followed the steps above which got finally got the junque note working. but now I can’t seem to install any gems into the normal ruby installation . it seems keep pointing to jRUBY sudo gem install rb-appscript /opt/jruby/bin/jruby extconf.rb install rb-appscript Gem files will remain installed in /opt/jruby/lib/ruby/gems/1.8/gems/rb-appscript-0.5.1 for inspection. any ideas on how to fix this without breaking the JRuby stuff ? |
Ian Dees
26 posts
|
Hi, gb. There are a couple of ways to handle this. One is to use two different Terminal windows / tabs, only one of which has your JRuby directory in the —Ian |
Mareike Hybsier
1 post
|
Unfortunately, I get the same errors like Jeff Morgan in the first post, running Mac OS X 10.4.11 and JRuby 1.1.4. So did someone find a solution for that—except switching the os? BTW: The code of the cheri demo app posted above works fine. Okay, I found the troublemaker. It is the following statement:
Maybe it has something to do with Mac OS X’s own implementation of the window controls. |
Ian Dees
26 posts
|
Hi, Mareike. Nice sleuthing! I’m not sure why —Ian |
Del Ben Oscar
1 post
|
Same problem here, i’ve commented on_window_closing and now it works |
Ian Dees
26 posts
|
Hi, everyone. Success! I was finally able to replicate the crash. The “fancy hello world” example from the Cheri website (which also uses In the meantime, as Mareike has noted, commenting out the Fortunately, we can close the window by using the File >> Exit menu item instead. That code lives in the Note class, which means it has implications across platforms. I’ve packaged up a patch affecting the
Or if you prefer, you can download the entire source archive with the patch already applied. UPDATE The official download site on pragprog.com has the updated code now, so the external patch link is now unnecessary. |
Tom Ayerst
4 posts
|
Same thing happened to me on Windows XP running jruby 1.1.4 on java 6. I cannot install the patch (Ian’s site is blocked from here :-( ) but commenting out the on_window_closing line works. |
Mark Wilden
1 post
|
Please update both archive formats, so that someone who unsuccessfully tried to follow the link in the book, then found the source folder manually, then downloaded the tarball, then found it crashes doesn’t have to waste their time. |
Ian Dees
26 posts
|
Hi, Mark. I was hoping the Cheri issue would be a quick fix, but you’re right—if we update the source archives, then people won’t have to wait for that fix. I’ve put the wheels in motion to get new archives up. —Ian UPDATE They’re up. |
14 posts, 7 voices
