meanwhile, I found out two other things:
- the "failed to find free socket port for process dispatcher" error can be avoided by explicitely stopping the process in RubyMine ("Run" -> "Stop")
And -for something really, really strange-
- RubyMine (or the debugger?) doesn't care at all about the directory settings for the .rb-files!
As stated before, my sample script HelloSketchUpWorld.rb sits in the directory
whilst my SketchUp is using its default dir
In RubyMine's "Edit Configuration" settings, I thus made "Remote folder" and "Local folder" both point to "C:\Users\kr\RubymineProjects\SketchUpTest\" (=as that is where my Ruby-script actually resides!)
Now here is the strange thing: SketchUp neverever uses that path!
Even more strange: It doesn't complain, but just runs any (!) Ruby file in its Plugins-folder instead! -Yes, you are reading correctly: ANY .rb files there! To be sure about that, I generated 3 files (test1.rb, test2.rb, test3.rb), each with a different single line drawing code inside.
If I now start the debugger by starting HelloSketchUpWorld.rb inside RubyMine as sketched in your last post, it just ignores the Ruby content therein -and instead runs all three (!) test*.rb files consecutively in SketchUp (=resulting in 3 lines being drawn)!
Okay, so I thought, "I use Thomas' folder settings to the plugin dir instead!" and changed the dirs for remote / local folder to SketchUp's "plugin" directory. Guess what? -No difference, either!
From that, I derive the following:
- SketchUp always expects the .rb files in its own plugin
directory, no matter what one states inside RubyMine anywhere
- the debugger bridge RubyMine <-> SketchUp is broken, the respective file settings in the "Edit Configuration" are neglected
Thomas: Is your RubyMine setup really such that your source code files are
always in SketchUp's plugin-directory (or do you have your original
files somewhere else & just copy them manually to SketchUp's plugin
-It is taking me wonder as RubyMine organizes files by projects (e.g.: my sample HelloSketchUpWorld.rb is part of a RubyMine project "SketchUpTest"); so to have more than 1 project == have more than 1 folder and this of course conflicts with the single 1 SketchUp-plugin folder..