Ruby dev environment
-
my current workflow is:
1.writing scripts in notepad++ (pretty good syntax highlighting, but haven't found any autocomplete functionality)
2.each change of a script has to be saved
3.after each change I have to load the script in sketchup with the script_loader.rb
4.run the script with open ruby console to debugI have come across sketchup bridge by tbd, but I would like to here from you about your workflow and possible enhancements to mine.
-
Hi,
I use RDE (good and custom highlighting) along with the Ruby toolbar by J.Foltz.
Clicking on an icon to load a rb is much faster than using the Plugins/Load script menu.
I also made myself an icon to test each new function. -
nice tip didier, thanks. btw is it possible to have the ruby console accept entire paragraphs of script instead of only a line?
-
I use RDE/Bridge combo with ALT+F1 to send what I wrote in RDE to SU.
-
@unknownuser said:
btw is it possible to have the ruby console accept entire paragraphs of script instead of only a line?
Unfortunately no.
-
I guess the Aptana Eclipse PlugIn for RadRails would also work well. It includes what appears to be a good ruby editor and debugger (you can ignore the RadRails bits after installation). The community version is still free and more than adequate as a code editor.
I use the Zend Studio Neon which is a PHP equivalent and, despite some shortcomings, prefer it to the full Zend studio.
Bob
-
@a4chitect said:
nice tip didier, thanks. btw is it possible to have the ruby console accept entire paragraphs of script instead of only a line?
Maybe WebConsole. I use it sometimes for testing longer snippets.
Plugin: WebConsole
2010-05-22 * Eliminated the Results textarea in favor of SketchUp's Ruby Console. * Automatic resize of the code textarea. * Changed ...
(sketchuptips.blogspot.com)
-
@didier bur said:
Hi,
I use RDE (good and custom highlighting) along with the Ruby toolbar by J.Foltz.
Clicking on an icon to load a rb is much faster than using the Plugins/Load script menu.
I also made myself an icon to test each new function.Didier, Thanks for the recommendation. The latest version can always be had here
-
yeah thanks! how comes I forgot I had this downloaded
thanks jim@jim said:
@a4chitect said:
nice tip didier, thanks. btw is it possible to have the ruby console accept entire paragraphs of script instead of only a line?
Maybe WebConsole. I use it sometimes for testing longer snippets.
Plugin: WebConsole
2010-05-22 * Eliminated the Results textarea in favor of SketchUp's Ruby Console. * Automatic resize of the code textarea. * Changed ...
(sketchuptips.blogspot.com)
-
I find Notepad++ easy and nice. Here please find some files which makes ruby editing in Notepad++ easier. The ruby.xml goes to plugins/API folder and the stylers.xml goes into C:\Documents And Settings(users)\application support\notepad++ (or something like that... I wish I had windows right now). Further instructions in the notepad++ website. ruby.xml makes the autocompletion easy.
Happy scripting!!!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginAdvertisement