noelwarr / su-tunnel Goto Github PK
View Code? Open in Web Editor NEWSketchUp IDE integration
SketchUp IDE integration
Hi Noel,
thank you for sharing this very useful tool. Since I am having some problems getting it to work, I kindly ask you for some help.
I've put the .rb files at places specified, but I do not know how to add the actual command to Sublime (I'm NetBeans user, so Sublime is new for me). I've tried to put this:
...
{
"caption": "Send to SU",
"command": "send_to_su", "args":
{
"cmd": ["ruby", "C:/PortableApps/SublimeText2.0.2x64/tunnel_ide.rb", "$file"],
"file_regex": "^(...*?):([0-9]*):?([0-9]*)"
}
},
...
to my Default.sublime-commands file, but it is not available when I open Tools > Command Pallete... What am I doing wrong? Please help me out :-)
Thanks,
Jernej Vidmar (from Modelur team)
Instead of the undocumented singleton socket class in SketchUp, can we use the Standard Library Socket
class?
http://ruby-doc.org/stdlib-2.0.0/libdoc/socket/rdoc/Socket.html
Create a separate instance and keep the connection open - sending the output the moment it arrives instead of using the timer?
Not sure I understand this (see link) use of SKETCHUP_CONSOLE constant?
SKETCHUP_CONSOLE(self.log.join)
SKETCHUP_CONSOLE is not a method, but a Constant pointing at the Sketchup::Console instance.
https://github.com/noelwarr/su-tunnel/blob/master/tunnel_skp.rb#L54
EDIT - Oh, is there supposed to be a .write
method in there?
So changed over to OSX and guess what... The SKSocket doesn't behave quite like it does under windows. A long story cut short, SKSocket can't be used for the purposes of su-tunnel. I changed approach and have got su-tunnel to work under OSX by reading and writing to files instead of sockets. I have this working on a branch locally and my intention is to merge into master and apply the same workflow to Windows.
Anyone thoroughly against this? I would rather have one simple code base to maintain that two different ones.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.