[Plugin] Ruby Console+ (3.0.2) – updated 30.10.2017

[Plugin] Ruby Console+ (3.0.2) – updated 30.10.2017

Postby Aerilius » Sat Jul 07, 2012 7:21 pm

This is a powerful Ruby Console with IDE features like code highlighting, autocompletion and a code editor. It lets you open multiple independent instances of the console and remembers the command history over sessions.

Version: 3.0.2
Date: 30.10.2017
Requirements: SketchUp 2014+

Download







Info from older version:

The buttons have the following features:
  • Clear: Clears the console output
  • Reload: Once you have manually loaded a script ("load"), it will be automatically reloaded when the file is changed. In this menu you can select which files are observed for changes.
  • Binding: Allows to change the context in which a command is executed from global (TOPLEVEL_BINDING) to a specific Class or instance for easier debugging. This allows you to execute private methods or access private instance variables.
  • Select Entity: Allows you to click an Entity in the model to get a reference to it in the console.
    By holding ctrl when the main window is focussed, you can select points and by holding shift you can turn on inferencing.
    You can also assign an entity to a reference name of you choice, by typing & selecting the variable name and then selecting the entity.
  • Preferences: A menu to change color theme and font size and other settings.
  • Ctrl+Space: Triggers the autocompletion. This plugin uses Ruby's reflection methods to get relevant and accurate autocompletions from the live ObjectSpace (instead from a static file).
  • Snippets: The suggestions for autocompletion include Ruby code snippets, where you can quickly fill in using the tab key. Snippets can be edited in ae_Console/js/ace/snippets/ruby_sketchup.js



animation autocompletion.gif


History:
version 2.1.2: 13.02.2014
- fix for typeerror on first start
version 2.1.1: 13.02.2014
- workaround for JavaScript error messages in ace.js
version 2.1.0: 12.02.2014
- updated the ace editor to 1.1.2 (which fixes auto-resizing issues)
- ace's autocompleter connected to SketchUp's Ruby interpreter
- ace's snippets
- file observer to reload files automatically
- fix: now modifier keys in the SketchUp window work when the webdialog has focus
version 2.0.1:
version 2.0.0: 13.06.2013
- more robust webdialog communication (should avoid corruption of settings)
- saves history immediately and to a file and separate from the preferences. Thus issues with escaping and registry reading are avoided.
- new architecture supports several independent instances of the console
- added: Select Entity tool
- removed: JavaScript mode because it had unsolvable issues
version 1.0.10: 15.05.2013
- better support of higher dpi settings
version 1.0.9: 01.03.2013
- icon added
version 1.0.8: 03.11.2012
- removed debug messages that were left over by mistake
version 1.0.7: 27.10.2012
- improvements for initialization
version 1.0.5: 30.08.2012
- now it tracks also script errors
- better webdialog communication
- input field resizes more reliably
- inspector: highlights entities in the model
- "repeat" button: allows to quickly repeat previous input without browsing too long in the history
- after clicking buttons, the input field gains focus again
- many optimizations
version 1.0.2: 10.07.2012
- minor change: validates data before using execute_script.
version 1.0.1: 07.07.2012
0
Last edited by Aerilius on Mon Oct 30, 2017 9:14 pm, edited 29 times in total.

Aerilius 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Ruby Console+

Postby glro » Sat Jul 07, 2012 7:53 pm

i get error messages, and then the dialog box open but without the icons
0

glro 
 

Re: [Plugin] Ruby Console+

Postby Aerilius » Sat Jul 07, 2012 8:05 pm

Fixed! (Packaging mistake)
0

Aerilius 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Ruby Console+

Postby Anton_S » Sat Jul 07, 2012 8:33 pm

Another Error
Untitled.png
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Ruby Console+

Postby Aerilius » Sat Jul 07, 2012 9:31 pm

I didn't get that error. I then tested on another computer where I had tested the beta version and got the error.
You probably have the beta version installed and the registry (Sketchup 8\Plugins_ae\Console) contains an old/invalid value.
The script errors in IE are very pertinacious. I'll try to validate the configuration before passing it into the webdialog.
0
Last edited by Aerilius on Sun Jul 08, 2012 12:25 pm, edited 1 time in total.

Aerilius 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Ruby Console+

Postby Jim » Sat Jul 07, 2012 9:47 pm

Aerilius,

Nice console, thanks.

Anton,

Why have you by-passed the installer and put the plugin in the Tools folder? The Tools folder is for SketchUp to use and it is recommended not to put anything there.

Start by removing the ae_Console files and folder from SketchUp's Tools folder, and install the plugin correctly using the Windows > Preferences > Extensions > Install Extension button.
0
Hi

Jim 
Global Moderator
 

Re: [Plugin] Ruby Console+

Postby Anton_S » Sat Jul 07, 2012 11:04 pm

Jim wrote:Aerilius,

Nice console, thanks.

Anton,

Why have you by-passed the installer and put the plugin in the Tools folder? The Tools folder is for SketchUp to use and it is recommended not to put anything there.

Start by removing the ae_Console files and folder from SketchUp's Tools folder, and install the plugin correctly using the Windows > Preferences > Extensions > Install Extension button.

LOL, did you monitor my comp?? :shock:
Exactly, I have it in tools folder. The reason is do to having 3 plugins folders: plugins draw - fredo tools+tt_lib+more, plugins game - sketchy physics, plugins testing - my plugins. I rename one of folders to plugins whenever I feel to use one of them. I jst wanted to eliminate the loading of all "plugins", and use the plugins that I want instead of loading all plugins. For me, the tools folder is like the "main plugins". Ruby console, window settings... is a good place for them - cause I use them in all plugins.

Well, anyways thanks for pointing that out: moving it to plugins
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Ruby Console+

Postby Anton_S » Mon Jul 09, 2012 4:49 am

Jim wrote:Start by removing the ae_Console files and folder from SketchUp's Tools folder, and install the plugin correctly using the Windows > Preferences > Extensions > Install Extension button.


Hmm... it still gives me that error!

Aerilius wrote:I didn't get that error. I then tested on another computer where I had tested the beta version and got the error.You probably have the beta version installed and the registry (Sketchup 8\Plugins_ae\Console) contains an old/invalid value. The script errors in IE are very pertinacious. I'll try to validate the configuration before passing it into the webdialog.


Errased, the beta, and all version, including this one, ran CCleaner, I guess I got it all removed using regedit, and it still gives me that error. How should error exist, when I cleaned-up after beta?
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Ruby Console+

Postby Aerilius » Mon Jul 09, 2012 12:41 pm

CCleaner doesn't do magic. I does a lot but I would be surprised if it (only) deleted HKEY_CURRENT_USER\Software\Google\SketchUp 8\Plugins_ae\Console.
The problem is that the only way to bring data from Ruby to SketchUp (execute_script) doesn't handle invalid data, it can't catch and suppress parsing errors.
I have a new version where I validate the data on the Ruby side before I pass it to the WebDialog. I'll upload it soon
0

Aerilius 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Ruby Console+

Postby Anton_S » Tue Jul 10, 2012 1:08 am

Aerilius wrote:...upload it soon

That'll be great :!:
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Ruby Console+

Postby Aerilius » Tue Jul 10, 2012 4:09 pm

I uploaded a preliminary with the fix (1.0.2) to prevent this script error. I wanted to use my new webdialog communication system, but that isn't finished yet. It will come later.
0

Aerilius 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Ruby Console+

Postby Anton_S » Thu Jul 12, 2012 1:59 am

Aerilius wrote:I uploaded...

Good, good!! Thks :)
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Ruby Console+

Postby alexschreyer » Mon Jul 23, 2012 2:19 pm

Ruby console on steroids! Very nice.

Cheers,
Alex
0
Author of "Architectural Design with SketchUp":
http://sketchupfordesign.com/
User avatar
alexschreyer 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Ruby Console+ – 1.0.5 – updated 30.08.2012

Postby Aerilius » Sat Sep 01, 2012 5:30 pm

New features added:
inspector for SketchUp entities and many little improvements.
0

Aerilius 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Ruby Console+ – 1.0.5 – updated 30.08.2012

Postby Anton_S » Sat Sep 01, 2012 8:19 pm

Thankyou, thnakyou, thankyou!!!
I use it all the time :thumb:
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Ruby Console+ – 1.0.5

Postby Dan Rathbun » Sat Sep 01, 2012 11:09 pm

I have sizing issues on XP w/ IE8 installed. (SU v8.0M4)
0
    I'm not here much anymore. But a PM will fire email notifications.
    User avatar
    Dan Rathbun 
    PluginStore Author
    PluginStore Author
     

    Re: [Plugin] Ruby Console+ – 1.0.5 – updated 30.08.2012

    Postby Aerilius » Sun Sep 02, 2012 7:45 am

    That is not (only) a sizing issue, the JavaScript does not run. Maybe something in the WebDialog-Ruby communication goes wrong and does not call the initialize() function?
    0

    Aerilius 
    PluginStore Author
    PluginStore Author
     

    Re: [Plugin] Ruby Console+ – 1.0.5 – updated 30.08.2012

    Postby Reind Brackman » Sat Sep 15, 2012 12:59 am

    Just installed Ruby Console+ and my productivity doubled already.
    Also very good to avoid RSI, better known as 'lets load the damn script again command...'
    Thanks - great work.
    0

    Reind Brackman 
     

    Re: [Plugin] Ruby Console+ – 1.0.5 – updated 30.08.2012

    Postby cesaro36 » Fri Oct 26, 2012 10:19 pm

    Hi
    Could anyone solve this issue?
    0

    cesaro36 
    Premium Member
    Premium Member
     

    Re: [Plugin] Ruby Console+ – 1.0.7 – updated 27.10.2012

    Postby Aerilius » Sat Oct 27, 2012 3:48 pm

    What same problem? What browser? What version of the plugin?
    Can you try the latest version?
    0

    Aerilius 
    PluginStore Author
    PluginStore Author
     

    Re: [Plugin] Ruby Console+ – 1.0.7 – updated 27.10.2012

    Postby rami_lpm » Tue Oct 30, 2012 7:58 pm

    All I'm getting is this.
    screenshot.jpg

    Win Vista Business 64
    Java 7 update 7
    IE 7 <--- is this a problem?
    0
    User avatar
    rami_lpm 
    PluginStore Author
    PluginStore Author
     

    Re: [Plugin] Ruby Console+ – 1.0.7 – updated 27.10.2012

    Postby Aerilius » Tue Oct 30, 2012 8:24 pm

    That might be the problem.
    Requirements:
    for now, it works only in the Windows version of SketchUp (IE8, IE9)

    (Does Internet Explorer 7 run on Vista??)
    0

    Aerilius 
    PluginStore Author
    PluginStore Author
     

    Re: [Plugin] Ruby Console+ – 1.0.7 – updated 27.10.2012

    Postby rami_lpm » Tue Oct 30, 2012 8:57 pm

    Was that 'requirements' line there all the time?
    Yes, IE7 was installed with my spanish version.

    I upgraded and it works fine.
    0
    User avatar
    rami_lpm 
    PluginStore Author
    PluginStore Author
     

    Re: [Plugin] Ruby Console+ – 1.0.7 – updated 27.10.2012

    Postby Anton_S » Sat Nov 03, 2012 9:08 pm

    I had the same problem as in the posts before. To resolve the problem you must delete the registry of original Ruby Console +: (Windows 7)

    • Go to start menu and search, and open regedit.exe.
    • Locate registry path: Computer\HKEY_CURRENT_USER\Software\Google\SketchUp[n]\
    • Delete the following folders and registry:
      1. .\Extensions\Ruby Console+[ver]
      2. .\Plugins_ae\Console
      3. .\WebDialog_AE_Console


    After delete, it must work!
    On other windows versions, the registry might be in similiar named locations.
    0

    Anton_S 
    PluginStore Author
    PluginStore Author
     

    Re: [Plugin] Ruby Console+ – 1.0.7 – updated 27.10.2012

    Postby Anton_S » Sat Nov 03, 2012 9:30 pm

    Other than the registry the ruby console is outstanding! :ecstatic:
    Highligh entities, beatiful script highlightings, fast processing, and much more. :thumb:

    I only had to go to Plugins\ae_Console\jQuery\jquery-console-extensions.js and comment out all the DEBUG "puts" sections -- It disturbed me posting "resizing", and "finish resizing".

    Now the wish! Is there a way to add a "clear history" button, so it clears all the console history input queue? To clear, i can go to registry and clear it out manually, although it would be nice to have a button.
    0

    Anton_S 
    PluginStore Author
    PluginStore Author
     

    Re: [Plugin] Ruby Console+ – 1.0.7 – updated 27.10.2012

    Postby Chris Fullmer » Sat Nov 03, 2012 10:31 pm

    I'm so glad you explained how to remove all the resizing puts statements. I just installed this and I was already ready to never use it again until that was fixed.

    Otherwise pretty cool. Thanks!

    Chris
    0
    Lately you've been tan, suspicious for the winter.
    All my Plugins I've written
    User avatar
    Chris Fullmer 
    SketchUp Team
    SketchUp Team
     

    Re: [Plugin] Ruby Console+ – 1.0.7 – updated 27.10.2012

    Postby rami_lpm » Mon Nov 05, 2012 2:22 pm

    Thanks Anton, this was bothering me too.
    0
    User avatar
    rami_lpm 
    PluginStore Author
    PluginStore Author
     

    Re: [Plugin] Ruby Console+ – 1.0.7 – updated 27.10.2012

    Postby Aerilius » Mon Nov 05, 2012 4:37 pm

    Sorry for that mistake, I fixed it!
    0

    Aerilius 
    PluginStore Author
    PluginStore Author
     

    Re: [Plugin] Ruby Console+ (1.0.9) – updated 01.03.2013

    Postby Aerilius » Fri Mar 01, 2013 3:51 am

    Minor update (1.0.9):
    - added icon
    1

    Aerilius 
    PluginStore Author
    PluginStore Author
     

    Re: [Plugin] Ruby Console+ (1.0.10) – updated 15.05.2013

    Postby Aerilius » Wed May 15, 2013 3:20 am

    I added improvements for higher dpi settings.
    1

    Aerilius 
    PluginStore Author
    PluginStore Author
     

    SketchUcation One-Liner Adverts

    by Ad Machine » 5 minutes ago



    Ad Machine 
    Robot
     

    Next


     

    Return to Plugins

    Who is online

    Users browsing this forum: howardhong and 31 guests

    Visit our sponsors: