Hi I''ve been trying out the StyledTextCtrl/Scintilla component bundled with wxWidgets 2.8. Surprisingly, it''s very easy to get this working at a basic level with wxRuby (95% of credit to Roy, who originally created a SWIG file for this). So I''m wondering: should we try and integrate this into wxRuby core? Pros: - a cool component, interesting to developers - not too much work - now up-to-date and part of the wxWidgets distribution Cons: - not terribly well documented - we don''t really have the resources to do lots of fixes on it - makes the build process somewhat more complicated alex
It would make possible to create a ruby ide (or interactive editor) in wxruby more easily, so it''s a big + from me. teki On 8/30/07, Alex Fenton <alex at pressure.to> wrote:> Hi > > I''ve been trying out the StyledTextCtrl/Scintilla component bundled with > wxWidgets 2.8. Surprisingly, it''s very easy to get this working at a > basic level with wxRuby (95% of credit to Roy, who originally created a > SWIG file for this). > > So I''m wondering: should we try and integrate this into wxRuby core? > > Pros: > - a cool component, interesting to developers > - not too much work > - now up-to-date and part of the wxWidgets distribution > > Cons: > - not terribly well documented > - we don''t really have the resources to do lots of fixes on it > - makes the build process somewhat more complicated > > alex
I say throw it in and the people that don''t want it probably know enough that they can compile wxRuby themselves and leave Scintilla out. I think we should do whatever we can so 99% of the users on (Windows, Mac and Linux) do not need to learn how to build wxRuby. on a side note: I have not responded much on the mailing lists lately ( I apologize for that ) but I always read the posts and svn commits. Sean On 8/29/07, Bela Babik <teki321 at gmail.com> wrote:> It would make possible to create a ruby ide (or interactive editor) in > wxruby more easily, so it''s a big + from me. > > teki > > On 8/30/07, Alex Fenton <alex at pressure.to> wrote: > > Hi > > > > I''ve been trying out the StyledTextCtrl/Scintilla component bundled with > > wxWidgets 2.8. Surprisingly, it''s very easy to get this working at a > > basic level with wxRuby (95% of credit to Roy, who originally created a > > SWIG file for this). > > > > So I''m wondering: should we try and integrate this into wxRuby core? > > > > Pros: > > - a cool component, interesting to developers > > - not too much work > > - now up-to-date and part of the wxWidgets distribution > > > > Cons: > > - not terribly well documented > > - we don''t really have the resources to do lots of fixes on it > > - makes the build process somewhat more complicated > > > > alex > _______________________________________________ > wxruby-development mailing list > wxruby-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-development >
You know my vote on this, But I also agree with Sean as well, to do this now, so we can get everything in there for now. Then when we can modularize wxRuby into seperate SO files, we''ll really be able to expand upon it and let it be setup where you won''t have to re-compile just to get rid of something you don''t use. Mario Steele Alex Fenton wrote:> Hi > > I''ve been trying out the StyledTextCtrl/Scintilla component bundled with > wxWidgets 2.8. Surprisingly, it''s very easy to get this working at a > basic level with wxRuby (95% of credit to Roy, who originally created a > SWIG file for this). > > So I''m wondering: should we try and integrate this into wxRuby core? > > Pros: > - a cool component, interesting to developers > - not too much work > - now up-to-date and part of the wxWidgets distribution > > Cons: > - not terribly well documented > - we don''t really have the resources to do lots of fixes on it > - makes the build process somewhat more complicated > > alex > > _______________________________________________ > wxruby-development mailing list > wxruby-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-development > >
Thanks all guys. I''ll go for it then. I think it should be possible to tweak the Rakefile so it tests for the presence of the STC library, and excludes it if Wx hasn''t had that optional component built (using EXCLUDED_CLASSES IIRC) alex Mario Steele wrote:> You know my vote on this, > > But I also agree with Sean as well, to do this now, so we can get > everything in there for now. Then when we can modularize wxRuby into > seperate SO files, we''ll really be able to expand upon it and let it be > setup where you won''t have to re-compile just to get rid of something > you don''t use. >
Hi Sean Sean Long wrote:> I say throw it in and the people that don''t want it probably know > enough that they can compile wxRuby themselves and leave Scintilla > out. I think we should do whatever we can so 99% of the users on > (Windows, Mac and Linux) do not need to learn how to build wxRuby. >If you want add StyledTextCtrl (Scintilla) on OS X, the way is to go back to your wxWidgets build directory, then do cd contrib/stc make sudo make install Then rake, as usual. WxRuby should now pick it up. But before you do, I''d be grateful if you could updating from svn and trying to build wxruby. I''d like to see if the guards I''ve put in to avoid compile or runtime problems if the optional component isn''t there are working. No urgency on this, whenever you get a moment. I haven''t looked at STC on Windows, but will do. thanks alex
> But before you do, I''d be grateful if you could updating from svn and > trying to build wxruby. I''d like to see if the guards I''ve put in to > avoid compile or runtime problems if the optional component isn''t there > are working.I am getting the error: i686-apple-darwin8-g++-4.0.1: /usr/local/lib/libwx_macud_stc-2.8.a: No such file or directory rake aborted! Command failed with status (1): [g++ -dynamic -bundle -flat_namespace -und...] Sean
Sean Long wrote:> I am getting the error: > > i686-apple-darwin8-g++-4.0.1: /usr/local/lib/libwx_macud_stc-2.8.a: No > such file or directory > rake aborted! > Command failed with status (1): [g++ -dynamic -bundle -flat_namespace -und...] >Thanks. Could you svn up and try again please? alex
I can not see what is causing this error, I looked through the rake files and things look well guarded to prevent this. The only thing I can think of is that stc.h is being #included somewhere where it shouldn''t when the lib is not present. I am falling asleep at the computer so I am done looking into this tonight, maybe tomorrow I will have some time to probe further. Oh and Alex great work on getting the Scintilla stuff added in, now I will have an excuse to finally try StyledTextCtrl. Thanks Sean On 8/30/07, Sean Long <sean.m.long at gmail.com> wrote:> > But before you do, I''d be grateful if you could updating from svn and > > trying to build wxruby. I''d like to see if the guards I''ve put in to > > avoid compile or runtime problems if the optional component isn''t there > > are working. > > I am getting the error: > > i686-apple-darwin8-g++-4.0.1: /usr/local/lib/libwx_macud_stc-2.8.a: No > such file or directory > rake aborted! > Command failed with status (1): [g++ -dynamic -bundle -flat_namespace -und...] > > > > Sean >
Sean Long wrote:> I can not see what is causing this error, I looked through the rake > files and things look well guarded to prevent this.I think it''s because I forgot to remove wx_stc from the list of libs to be linked in at the final compile stage even if libwx_stc support wasn''t found. These are set up by varying the arguments to wx-config in rakewx.rb a
Good thing I checked my mail again before shutting down. That last patch fixed it. Sean On 8/31/07, Alex Fenton <alex at pressure.to> wrote:> Sean Long wrote: > > I am getting the error: > > > > i686-apple-darwin8-g++-4.0.1: /usr/local/lib/libwx_macud_stc-2.8.a: No > > such file or directory > > rake aborted! > > Command failed with status (1): [g++ -dynamic -bundle -flat_namespace -und...] > > > > Thanks. Could you svn up and try again please? > > alex > _______________________________________________ > wxruby-development mailing list > wxruby-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-development >
I compiled the stc lib and rebuilt wxRuby, it picked up the library just fine and the StyledTextCtrl sample works. Nice job Alex now I am off to bed Sean
Sean Long wrote:> I compiled the stc lib and rebuilt wxRuby, it picked up the library > just fine and the StyledTextCtrl sample works. >Neat. How does it look on OS X? On GTK this version seems to use nice anti-aliased fonts.> now I am off to bed >Going to have some breakfast and go to work...lol alex
Alex Fenton wrote:> Hi > > I''ve been trying out the StyledTextCtrl/Scintilla component bundled with > wxWidgets 2.8. Surprisingly, it''s very easy to get this working at a > basic level with wxRuby (95% of credit to Roy, who originally created a > SWIG file for this). > >Sorry for the late reply on this but I''m glad to see this make it in and that the work I did was useful! Great work as always, Alex. I look forward to seeing a ruby-based editor now. :) Roy