JetBrain/RubyMine Support for SketchUp Ruby Class, Method an
-
I use the JetBrain/RubyMine IDE for plugin development. It is a great IDE which focuses on Ruby/Rails/HTML/XML/CSS and JavaScript (and supports other languages too). I have been trying to get JetBrains to support SketchUp Ruby extensions. If you are a user of RubyMine, or would like to see an IDE support SketchUp extensions, please go to the link below and add a comment in support of this request.
Thanks,
-
They really can't. The Sketchup Ruby API is not open source, and it's wrapped within the Sketchup executable.
Perhaps IF Rubymine could be run as a child process of SketchUp Ruby ?? (Just a thought.)
-
@dan rathbun said:
They really can't. The Sketchup Ruby API is not open source, and it's wrapped within the Sketchup executable.
Perhaps IF Rubymine could be run as a child process of SketchUp Ruby ?? (Just a thought.)
Yes, but couldn't SketchUp make their gems files available for RubyMine to generate stubs?
Joe...
-
@chiefwoodworker said:
Yes, but couldn't SketchUp make their gems files available for RubyMine to generate stubs?
No.
Because there are NO gem archives for the Ruby API.
A "gem" is nothing more than a compressed archive (zip, tarball, gz, etc.) containing folders and files, along with ".gemspec" and "manifest" files that tell a gem-capable installer, how and where to install, update and uninstall the extension within it.
There are several such as RubyGems (cross-platfrom,) RVM (OSX and unix-like) and pik (on PC.)
I often open gem archives manually with 7zip and copy files manually ('cause I'm a geek.)
-
@chiefwoodworker said:
... couldn't SketchUp make their ... files available for <some other company> ?
Not likely.
You will not see the owner (now Trimble,) grant access their intellectual property, to some other company, unless it benefits them and the product in some major way. Of course there would be stringent controls in any such agreement.
Secondly, there would need to be a very good reason, for Trimble to choose one commercial IDE company/product, over all the others available. RubyMine looks nice.. but there are developers that prefer other major IDEs over it, simply because they've been around longer, and therefor there are more developers that are partial to another IDE (let's just name NetBeans, as an example.)
So the choice of RubyMine might be debatable.Thirdly.. something like this needs to be economically feasible. And it is not.
I myself was asked by a company to look into getting a Ruby IDE for SketchUp working, and the result was that the cost, would exceed the return. We found that the number of serious plugin developers was only around 200-250. -
@chiefwoodworker said:
Yes, but couldn't SketchUp ... generate stubs?
Yes.. It's quite easy from within the Embedded Ruby running inside SketchUp.
Ruby is great at generating text files.
Ruby has all kinds of nifty inspection methods, that return array of method names of the various types (public, private, class, singleton, instance, etc.)
The problem is that empty method stubs, do not DO anything. They cannot mimic the true behavior of the real method, be it good, or Bugged.
A developer needs to test at certain SU versions and MR levels. Certain methods act differently for these differing versions/MRs, or have had parameters added.Stubs can only allow you to write a script that checks for syntax errors and properly named methods. And that is about all. (We already have near to this functionality in customizable editors via Code-Completion and macros.)
Now.. this issue is not new. Last year, RubyMine actually gave a group of us temporary licenses to see if this could be done. I think the general consensus was, that it was not worth the effort.
However.. do a search on this forum... there may be a rudimentary stub file. I think it may have been John (Driven,) that got RubyMine to grant the licenses, and was the instigator of the "study" at that time.
-
@dan rathbun said:
However.. do a search on this forum... there may be a rudimentary stub file. I think it may have been John (Driven,) that got RubyMine to grant the licenses, and was the instigator of the "study" at that time.
Dan,
I did a search and found no stubs, but I sent John a PM and asked if anything came of his effort. Thanks very much for all the explanation and pointers. I'll let you know if I discover anything new.
-
Actually, this was April 2010.. so more than 2 years ago.
I myself never got the chance to try out RubyMine... my XP Home machine is maxed out on installed apps.
-
If you ever want to try it you can get a 30 day free trial at http://www.jetbrains.com/ruby/download/ .
I like it a lot, but I haven't used a wide variety of IDE's and am not an expert. But I do like it better than NewBeans, Notepad++, RJ TextEdit and one or two others I have tried and can't remember the names of. -
Probably will.. when I get back a Win7 notebook that needs to go back to Dell for a HD replacement & OS reimage.
Advertisement