Forum: wxRuby How to make wxRuby work with Aptana Studio 3 ?

Eb460fbf2920a94d448cba8169c8ba41?d=identicon&s=25 Rubyist Rohit (rpk2006)
on 2012-07-24 19:49
I installed Ruby 1.9.3 and also wxRuby using: gem install wxruby.

I installed Aptana Studio 3 and want to know how to make Aptana
recognize wxRuby?
85991f138ede6236f35eb98da22b7b01?d=identicon&s=25 Marvin Gülker (quintus)
on 2012-07-24 20:14
(Received via mailing list)
Attachment: signature.asc (489 Bytes)
Am Tue, 24 Jul 2012 19:49:30 +0200
schrieb Rubyist Rohit <lists@ruby-forum.com>:

> I installed Ruby 1.9.3 and also wxRuby using: gem install wxruby.

This installs the wxRuby gem for Ruby 1.8. Uninstall it and install the
gem for 1.9:

  # gem uninstall wxruby
  # gem install wxruby-ruby19

@wxRuby-devs: Could you please add something like

  spec.required_ruby_version = "< 1.9"

to the gemspec of the wxruby gem? I see many people installing the
wrong gem, and then complaining it doesn’t work...

> I installed Aptana Studio 3 and want to know how to make Aptana
> recognize wxRuby?

I don’t know Aptana (or any IDE, I’m happy with Emacs), but for normal
Ruby code you’d do

  require "wx"

and be done with it.

Vale,
Marvin

--
Blog: http://pegasus-alpha.eu/blog

ASCII-Ribbon-Kampagne        ()   | ASCII Ribbon Campaign        ()
- Stoppt HTML-E-Mail         /\   | - Against HTML E-Mail        /\
- Stoppt proprietäre Anhänge      | - Against proprietary attachments
www.asciiribbon.org/index-de.html | www.asciiribbon.org
Eb460fbf2920a94d448cba8169c8ba41?d=identicon&s=25 Rubyist Rohit (rpk2006)
on 2012-07-24 20:16
Thanks it worked.
F7e57474f25e19442bbd803275685b36?d=identicon&s=25 Kevin McCaughey (tentimes)
on 2012-07-28 20:18
This point has been made before, by me and others. The problem is that
there are no devs for wxruby to change this - it's dead as a dodo,
unfortunately :( This too was discussed and lamented on previously. This
is a common problem with Ruby unfortunately.
E616d8c74827175f975efcbac2ca1ec0?d=identicon&s=25 unknown (Guest)
on 2012-07-28 20:55
(Received via mailing list)
Bonjour,
je suis en congés, je serai de retour lundi 20 août.

Cordialement
E616d8c74827175f975efcbac2ca1ec0?d=identicon&s=25 unknown (Guest)
on 2012-07-28 20:55
(Received via mailing list)
Bonjour,
je suis en congés, je serai de retour lundi 20 août.

Cordialement
85991f138ede6236f35eb98da22b7b01?d=identicon&s=25 Marvin Gülker (quintus)
on 2012-07-28 22:04
(Received via mailing list)
Attachment: signature.asc (489 Bytes)
Am Sat, 28 Jul 2012 20:18:50 +0200
schrieb Kevin McCaughey <lists@ruby-forum.com>:

> This point has been made before, by me and others. The problem is
> that there are no devs for wxruby to change this - it's dead as a
> dodo, unfortunately :( This too was discussed and lamented on
> previously. This is a common problem with Ruby unfortunately.
>

This is not fair. There’s quite a number of Ruby projects that *are*
active and that are active since a good time (and it is not only
rails). wxRuby development indeed has stalled, but the devs still read
this ML from time to time so it’s not that they disappeared completely.
Apart from that, wxRuby still is my GUI toolkit of choice as it’s
natively cross-platform, documented well and feature-rich. I indeed
would love to see more active wxRuby development, but given that
wxRuby’s code base is aging this becomes the more unlikely the more
time passes. As far as I can tell, there have been no efforts to port
it to the newer wxWidgets versions. As wxWidgets now is aiming for
version 3, which will then be adapted by most distributors, leaving
wxRuby unable to operate, the time will come to either update or
officially abandon wxRuby. But until then, wxRuby is in a usable state.
As I posted earlier on this list, a friend of mine has started a new
port of wxWidgets (2.9, aiming for 3) at
https://github.com/Hanmac/rwx , without being dependent on SWIG. If
anyone is interested I’m sure he appreciates the help.

Valete,
Marvin

--
Blog: http://pegasus-alpha.eu/blog

ASCII-Ribbon-Kampagne        ()   | ASCII Ribbon Campaign        ()
- Stoppt HTML-E-Mail         /\   | - Against HTML E-Mail        /\
- Stoppt proprietäre Anhänge      | - Against proprietary attachments
www.asciiribbon.org/index-de.html | www.asciiribbon.org
E616d8c74827175f975efcbac2ca1ec0?d=identicon&s=25 unknown (Guest)
on 2012-07-28 22:10
(Received via mailing list)
Bonjour,
je suis en congés, je serai de retour lundi 20 août.

Cordialement
Ef9964ca3deee9f1c2b1c961306e3af8?d=identicon&s=25 Fred L. (ffred)
on 2012-09-08 20:25
Marvin Gülker wrote in post #1070550:
...
> But until then, wxRuby is in a usable state.

maybe on Linux, but on Windows it doesn't seem to work with a standard
gem
install. so if you want to use it, you have to install the executable
available on Rubyforge, but it also install an "old" Ruby (1.9.1). so if
you want to use wxruby on Windows with a recent ruby installed normally
with RubyInstaller, you'd probably have to be able to adapt something or
modify the installation files... not usable for a beginner :-(

> As I posted earlier on this list, a friend of mine has started a new
> port of wxWidgets (2.9, aiming for 3) at
> https://github.com/Hanmac/rwx , without being dependent on SWIG. If
> anyone is interested I’m sure he appreciates the help.

just looked at your link, but there's not even a simple line in the
readme file. don't want to be negative, but I don't think that's a good
way to find helpers.

but with wxwidgets v3.0 to come in a few month, it could be great to see
a little life in wxruby development (or eventually in another version
like rwx..).
of course I'd be happy to help, but really don't have much time and I'm
still a beginner with ruby, so can't be of a great help ..

Fred
85991f138ede6236f35eb98da22b7b01?d=identicon&s=25 Marvin Gülker (quintus)
on 2012-09-08 21:45
(Received via mailing list)
Am Sat, 08 Sep 2012 20:25:48 +0200
schrieb "Fred L." <lists@ruby-forum.com>:

> Marvin Gülker wrote in post #1070550:
> ...
> > But until then, wxRuby is in a usable state.
>
> maybe on Linux, but on Windows it doesn't seem to work with a standard
> gem
> install.

Could you be a little more precise? "Doesn’t seem to work" doesn’t
magically enable us to detect and solve your problem (or at least make
suggestions). Last time I tried the wxruby-ruby19 gem on Windows
with Ruby 1.9.3 (about three months ago), it worked just fine.

> so if you want to use it, you have to install the executable
> available on Rubyforge, but it also install an "old" Ruby (1.9.1). so
> if you want to use wxruby on Windows with a recent ruby installed
> normally with RubyInstaller, you'd probably have to be able to adapt
> something or modify the installation files... not usable for a
> beginner :-(

I never used the wxRuby installer and do not really see the point why
it exists at all, so I can’t comment on what it does and what it
doesn’t.

> > As I posted earlier on this list, a friend of mine has started a new
> > port of wxWidgets (2.9, aiming for 3) at
> > https://github.com/Hanmac/rwx , without being dependent on SWIG. If
> > anyone is interested I’m sure he appreciates the help.
>
> just looked at your link, but there's not even a simple line in the
> readme file. don't want to be negative, but I don't think that's a
> good way to find helpers.

If you can write one I’m sure he will be glad to accept it; sadly, his
English is not as good as yours and I don’t have the time to deeply
dig into his code to write an introduction on it (but hey, Nginx
started with docs in Russian...).

> but with wxwidgets v3.0 to come in a few month, it could be great to
> see a little life in wxruby development (or eventually in another
> version like rwx..).
> of course I'd be happy to help, but really don't have much time and
> I'm still a beginner with ruby, so can't be of a great help ..

Agreed. Somethings needs to be done, or Ruby will soon have no
wxWidgets bindings at all anymore. When I find the time, I will try my
hands on it, but for now...

> Fred

Vale,
Marvin
Ef9964ca3deee9f1c2b1c961306e3af8?d=identicon&s=25 Fred L. (ffred)
on 2012-09-09 09:34
Marvin Gülker wrote in post #1075155:
> ...
> Could you be a little more precise? "Doesn’t seem to work" doesn’t
> magically enable us to detect and solve your problem (or at least make
> suggestions). Last time I tried the wxruby-ruby19 gem on Windows
> with Ruby 1.9.3 (about three months ago), it worked just fine.

Hello Marvin, you're right it's ok. here is what I did yesterday and the
result I got :
gem install wxruby-ruby19 --platform=ruby
ERROR:  Could not find a valid gem 'wxruby-ruby19' (>0), here is why:
  Found wxruby-ruby19 (2.0.0), but was for platforms x86_64-linux
,x86-linux ,x86-mingw32 ,x86-darwin-9
ERROR:  Possible alternatives: eart-ruby19, errata-ruby19, rdf-ruby19,
rpam-ruby19, ruby2ruby

I simply did the same this morning without the --platform=ruby and it
got installed. didn't I say you I'm still a beginner in ruby.. :-)
(I remember that in the RubyInstaller Devkit it's said that I need to
add the --platform=ruby option, so I always add it and don't remember
having a problem before with that..)

> ...
>> just looked at your link, but there's not even a simple line in the
>> readme file. don't want to be negative, but I don't think that's a
>> good way to find helpers.
>
> If you can write one I’m sure he will be glad to accept it; sadly, his
> English is not as good as yours and I don’t have the time to deeply
> dig into his code to write an introduction on it (but hey, Nginx
> started with docs in Russian...).

sorry, I didn't wanted to be aggressive, but I'm french and my english
is probably not as good as you say. but of course, it would be worse if
I never tried to use and improve it...
remember the beginner part of me..? don't think I could analyze this
code and be able to understand it enough to write something that will
explain what it is and what the programmer want it to become..

so maybe it would be better if your friend write something in is natural
language to explain his code and how he wanted it to evolve (with some
help or not). I think that it would be better for all to read it through
something like Google Translate than through my eventual understanding
of his code..

still hoping that something could be done (with a little help from all
of us) to have a wxruby (or a new one like rwx) with wxwidgets 3.0
support...

thanks
Fred
D9ebdcb66f1583378e6f72155db507e2?d=identicon&s=25 Hans Mackowiak (hanmac)
on 2012-09-09 12:50
my https://github.com/Hanmac/rwx will have 2.9.3+ support ... wxwidgets
3.0 is not out yet.
Ef9964ca3deee9f1c2b1c961306e3af8?d=identicon&s=25 Fred L. (ffred)
on 2012-09-09 19:34
nice..!  thanks a lot.
This topic is locked and can not be replied to.