Redcar now requires newer than 1.4.0 JRuby release

2 views
Skip to first unread message

Daniel Lucraft

unread,
Nov 23, 2009, 1:11:38 AM11/23/09
to Redcar
Hi

for everyone who is running the JRuby Redcar, we now require a later
revision of JRuby than even the 1.4.0 release. (It seems there were
some Java interop regressions in 1.4.) I have tested with commit
1022103f1df259428d479baa5cbdb529b4490d3f from 22 Nov and it works fine
there.

best,
Dan

Aaron McLeod

unread,
Nov 23, 2009, 7:27:46 AM11/23/09
to redcar...@googlegroups.com
Hey Dan, was reading the updated install yesterday. Is there a native
folder for windows to drop the set jar? If not I'll just install it on
my ubuntu partition
> --
>
> You received this message because you are subscribed to the Google Groups "Redcar" group.
> To post to this group, send email to redcar...@googlegroups.com.
> To unsubscribe from this group, send email to redcar-edito...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/redcar-editor?hl=.
>
>
>

--
Aaron McLeod
http://agmprojects.com

Daniel Lucraft

unread,
Nov 23, 2009, 11:05:44 AM11/23/09
to redcar...@googlegroups.com
The swt jar should go in plugins/application_swt/vendor/swt/windows/ and vendor/javamateview/lib/windows

Not sure if the build process works on Windows though, I've been dropping the JavaMateView jar I built on my ubuntu box into the redcar/lib directory on Windows to get it to work.

best,

Dan
_______________________________
Daniel Lucraft

twitter.com/danlucraft
danlucraft.com/blog

Sam Clopton

unread,
Nov 23, 2009, 1:54:35 PM11/23/09
to redcar...@googlegroups.com
I tried building the latest clone of redcar with the latest JRuby release: jruby 1.5.0.dev (ruby 1.8.7 patchlevel 174) (2009-11-23 a70a351)
I am having problems though. I'm using swt-3.5.1 in Suse 11.2
Error output:
no such file to load -- /home/sam/redcar/plugins/application_swt/lib/application_swt/../../vendor/swt/linux/swt
/home/sam/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/home/sam/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/home/sam/redcar/plugins/application_swt/lib/application_swt/swt_wrapper.rb:25
/home/sam/redcar/plugins/application_swt/lib/application_swt/swt_wrapper.rb:31:in `require'
/home/sam/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/home/sam/redcar/plugins/application_swt/lib/application_swt.rb:9
/home/sam/redcar/plugins/application_swt/lib/application_swt.rb:31:in `require'
/home/sam/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/home/sam/redcar/freebase2/lib/freebase/plugin.rb:217:in `require_files'
/home/sam/redcar/freebase2/lib/freebase/plugin.rb:296:in `log_requires'
/home/sam/redcar/freebase2/lib/freebase/plugin.rb:203:in `require_files'
/home/sam/redcar/freebase2/lib/freebase/plugin.rb:230:in `load'
/home/sam/redcar/freebase2/lib/freebase/configuration.rb:88:in `load_plugins'
/home/sam/redcar/freebase2/lib/freebase/core.rb:75:in `initialize'
/home/sam/redcar/freebase2/lib/freebase/core.rb:35:in `new'
/home/sam/redcar/freebase2/lib/freebase/core.rb:35:in `startup'
/home/sam/redcar/lib/redcar.rb:27:in `start'
bin/redcar:7
[FreeBASE] failed to load: application_swt


Sam Clopton

unread,
Nov 23, 2009, 2:13:16 PM11/23/09
to redcar...@googlegroups.com
Nevermind, I'm an idiot... when I extracted swt-3.5.1 I extracted it into a swt-3.5.1 folder.  Noticed it when I was stepping through the require in debug.  Should have been obvious from the get go.
-Sam

Aaron McLeod

unread,
Nov 24, 2009, 1:05:35 PM11/24/09
to redcar...@googlegroups.com
Since I ran the jruby rake build, I recieved an error for lack of files in the java viewmate folder, so I grabbed a clone of that. I also recieved an error with the file: Object key — key: "value".tmSnippet. That the "value".tmSnippet was an invalid argument. To get around that I just copied the contents and made the file on my system. After putting the swt.jar back in the lib/windows folder of the javamateview, I got as far as the rake build not finding the jdk. I dont have it installed, so once I do, I'll see how she goes and let you know.

Im on windows xp, my work machine.

Daniel Lucraft

unread,
Nov 24, 2009, 1:06:34 PM11/24/09
to redcar...@googlegroups.com
You're doing sterling work. :)
> For more options, visit this group at http://groups.google.com/group/redcar-editor?hl=en.

Aaron McLeod

unread,
Nov 24, 2009, 1:10:25 PM11/24/09
to redcar...@googlegroups.com
Nice way to spend a lunch eh? Kind of stuff is fun to me, programming, trying out new editors, software, etc. have yet to install chrome os onto a flash drive as well :D.

Aaron McLeod

unread,
Nov 24, 2009, 2:38:38 PM11/24/09
to redcar...@googlegroups.com
Had a moment to download the JDK installer and that. The jar was built, and redcar launches :). I am not sure, but what is the point of a "notebook" exactly?

Is it to achieve project/tree structure on the left, and view the source code on the right? Kind of like gedit for example, or the Ruby mri version of redcar?

Daniel Lucraft

unread,
Nov 24, 2009, 2:46:43 PM11/24/09
to redcar...@googlegroups.com
That's great! I must give it a go myself.

Notebooks exist so users can edit two files at once within the same window. So you can view two files side-by-side. In the old version of Redcar you could add as many Notebooks (then called Panes) as you liked and arrange them arbitrarily, but I think allowing either one or two Notebooks covers 99% of the use cases at considerably less complexity.

The project view will be a separate thing entirely, and will be 'special' within the Redcar Window. Notebooks have nothing to do with Projects at all. So you will be able to look at the project tree and two files all at the same time.

best,
Dan

_______________________________
Daniel Lucraft

twitter.com/danlucraft
danlucraft.com/blog




Aaron McLeod

unread,
Nov 24, 2009, 2:49:50 PM11/24/09
to redcar...@googlegroups.com
Ah okay. Makes sense, for a split view, or comparing files, or what ever the case may be for the user. I'll see if I can start toying around with some SWT, maybe to start thinking about the drag and drop. I wish the swapping the tabs/files between the notebooks was a little faster performance wise. Hopefully that will improve come Ruby 1.9 implementation with JRuby.

Daniel Lucraft

unread,
Nov 24, 2009, 4:57:48 PM11/24/09
to redcar...@googlegroups.com
> I wish the swapping the tabs/files between the notebooks was a little faster performance wise. Hopefully that will improve come Ruby 1.9 implementation with JRuby.

You are right that it's a bit laggy.

I can't imagine that the Ruby 1.9 JRuby compat will make any kind of difference. 1.9 is faster because it has a new VM, but JRuby will still run on Hotspot.

I think we can improve it though. The reason it takes ages is because in SWT there is no way to *move* a widget, you can only destroy and recreate it. Since all the highlighting information is stored in the JavaMateView widget, when the tab is moved, this info is destroyed and we have to reparse the text. However, there's no reason we can't remember the parsed information, with a bit of work, and that should improve things. I'll look into it.

thanks,
Dan


_______________________________
Daniel Lucraft

twitter.com/danlucraft
danlucraft.com/blog




On 24 Nov 2009, at 19:49, Aaron McLeod wrote:

> Ah okay. Makes sense, for a split view, or comparing files, or what ever the case may be for the user. I'll see if I can start toying around with some SWT, maybe to start thinking about the drag and drop.
>

Aaron McLeod

unread,
Nov 24, 2009, 5:32:30 PM11/24/09
to redcar...@googlegroups.com
I havent done too much swt, but I know that with swing one adds a component to a panel, and you can remove it and such. Is there a way to possibly store the tab into a variable or something, and pass that to the other notebook? It's also possible the JMV widget may need some refactoring to improve that.

Aaron McLeod

unread,
Nov 24, 2009, 5:49:19 PM11/24/09
to redcar...@googlegroups.com
Just noticed this at home (I guess thats why I had to grab the JMV separately earlier today) is that it errors out trying to grab the javamate view when running git submodule init, update in the redcar repository. 

Aaron McLeod

unread,
Nov 24, 2009, 6:48:46 PM11/24/09
to redcar...@googlegroups.com
Hey Dan,

Just been sifting through the code and that, looking at the Java classes under the src folder and that. Also at the redcar file that is used to launch. I am not familiar at all with freebase, and I am wondering where the program launches the GUI and that. (To be honest, I lose the trail after the Redcar.pump method call)

Thanks.

Daniel Lucraft

unread,
Nov 25, 2009, 1:21:53 AM11/25/09
to redcar...@googlegroups.com
Hi Aaron,

rather than replying on the list, I've added a bunch more documentation for the Redcar core. If you go to redcareditor.com/doc/ and click on the big blue Redcar link you'll see the documentation for how Redcar initializes itself and what happens then.

best,
Dan
_______________________________
Daniel Lucraft

twitter.com/danlucraft
danlucraft.com/blog




kungfoo

unread,
Nov 25, 2009, 5:00:24 AM11/25/09
to Redcar
It seems that for me the 1.4.0 release works on OSX.

Tom Murray

unread,
Nov 25, 2009, 6:05:45 PM11/25/09
to redcar...@googlegroups.com
Don't know if this could help here, but I noticed that Control has a setParent() method. It seems this might allow efficient moves....

Daniel Lucraft

unread,
Nov 26, 2009, 12:56:52 AM11/26/09
to redcar...@googlegroups.com
Interesting, thanks, I'll take a look.

D
_______________________________
Daniel Lucraft

twitter.com/danlucraft
danlucraft.com/blog




Daniel Lucraft

unread,
Nov 26, 2009, 1:16:28 AM11/26/09
to redcar...@googlegroups.com
OK I reimplemented tab moving use Control#setParent and it works great! Much faster.

However the docs:

http://help.eclipse.org/galileo/topic/org.eclipse.platform.doc.isv/reference/api/org/eclipse/swt/widgets/Control.html#setParent(org.eclipse.swt.widgets.Composite)

(view with JavaScript disabled unless you want their crapware interface)

suggest that this is not supported on all platforms, so I still have to do some testing. (It should work on Linux, as GTK supports widget moving too. Don't know about Windows...)

thanks for your suggestion,

Dan
_______________________________
Daniel Lucraft

twitter.com/danlucraft
danlucraft.com/blog




On 25 Nov 2009, at 23:05, Tom Murray wrote:

Daniel Lucraft

unread,
Nov 26, 2009, 1:36:03 AM11/26/09
to redcar...@googlegroups.com
Windows is giving me gip so I haven't been able to test it there but it works on Mac and Linux.

D
_______________________________
Daniel Lucraft

twitter.com/danlucraft
danlucraft.com/blog




Aaron McLeod

unread,
Nov 26, 2009, 7:24:10 PM11/26/09
to redcar...@googlegroups.com
I tested it, it works great in windows 7 x64 RC.

Aaron McLeod

unread,
Nov 26, 2009, 7:25:13 PM11/26/09
to redcar...@googlegroups.com
I tested it, it works great in windows 7 x64 RC.

On Thu, Nov 26, 2009 at 1:36 AM, Daniel Lucraft <danlu...@me.com> wrote:
Reply all
Reply to author
Forward
0 new messages