• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

HELP setting up a SU code editor

Scheduled Pinned Locked Moved Developers' Forum
97 Posts 11 Posters 6.4k Views 11 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    Dan Rathbun
    last edited by 27 Mar 2010, 23:20

    @driven said:

    so what does this mean?

    It means I made a boo-boo (slappin' 'self up side the head!) 😳

    It's defined? SKSocket

    I'm not here much anymore.

    1 Reply Last reply Reply Quote 0
    • D Offline
      driven
      last edited by 27 Mar 2010, 23:22

      %(#FF0000)[defined SKSocket?
      Error: #<NoMethodError: (eval):894: undefined method `SKSocket?' for main:Object>
      (eval):894]

      %(#008000)[defined? SJSocket
      nil
      SKSocket.methods(false).sort.join("\n")
      add_socket_listener
      connect
      disconnect
      write]

      so what does this mean?

      learn from the mistakes of others, you may not live long enough to make them all yourself...

      1 Reply Last reply Reply Quote 0
      • D Offline
        Dan Rathbun
        last edited by 27 Mar 2010, 23:22

        @driven said:

        SKSocket doesn't show up under XP....

        I can see it on my PC. At the console type:
        ` defined? SKSocket

        constantIf it were not defined the %(#BF0000)[defined?] keyword would return %(#BF0000)[nil]. SKSocket.methods(false).sort.join("\n")

        outputs:

        add_socket_listener
        connect
        disconnect
        write`

        EDIT: fixed typo: 'defined? SKSocket' was 'defined SKSocket?'

        I'm not here much anymore.

        1 Reply Last reply Reply Quote 0
        • D Offline
          driven
          last edited by 27 Mar 2010, 23:32

          Dan, trial and error got me there, anyway...
          thanks for the detailed explanation above, I had figured most of that out and was turning things 'on' and adding to the su_api.rb when I got distracted by being able to upload to 3D Warehouse from XP I'm trying to run a port scan to see how it differs between SUXP and SUMac upload path, I suspect a clash, but SU crashes if I come out of it to turn on my scanner, do you happen to know the PC routing to 3D Warehouse from SU?

          learn from the mistakes of others, you may not live long enough to make them all yourself...

          1 Reply Last reply Reply Quote 0
          • C Offline
            Chris Fullmer
            last edited by 27 Mar 2010, 23:37

            So in the end is it possible to hook up a debugger to SU? Pecan seemed to get something working, but his project seemed unstable on many systems. So iis possible, or not really. This painful thread is 5 pages long and its gone off on to so many tangents, I just can't take the suspense any more. Debugger possible? πŸ‘ πŸ‘Ž

            Lately you've been tan, suspicious for the winter.
            All my Plugins I've written

            1 Reply Last reply Reply Quote 0
            • C Offline
              Chris Fullmer
              last edited by 27 Mar 2010, 23:45

              So I thought I should post a link to Pecan's previous work. so I started digging around only to find that nearly all traces of it have been removed from the forum at his request I think. I think it worked on his system but caused so many problems for other people that he did not want to troublshoot it anymore.

              But I did find a link to the wiki where he was updating everything. This might be itneresting to some of you guys. It seems to me like maybe you are talking about some of the same stuff that he was was trying to do to.

              Link Preview Image
              Google Code Archive - Long-term storage for Google Code Project Hosting.

              favicon

              (code.google.com)

              See if that is helpful in any way.

              Lately you've been tan, suspicious for the winter.
              All my Plugins I've written

              1 Reply Last reply Reply Quote 0
              • D Offline
                driven
                last edited by 28 Mar 2010, 00:01

                @chris fullmer said:

                See if that is helpful in any way.

                Chris, that's incredibly helpful, I have tried all those search terms in various combinations and never come across this before... thanks for pointing it out.

                and yes a SU 'ruby' de-bugger is possible it's just not easy and cross platform, a little trickier still... and a multi language SU debug is a real 'bugger'

                john

                learn from the mistakes of others, you may not live long enough to make them all yourself...

                1 Reply Last reply Reply Quote 0
                • D Offline
                  driven
                  last edited by 28 Mar 2010, 00:29

                  @dan rathbun said:

                  Again, is Geodesic a Google plugin, or a third-party plugin?

                  Sorry Dan I do keep forgetting to add this

                  ` #--

                  *** This code is copyright 2004 by Gavin Kistner

                  *** It is covered under the license viewable at http://phrogz.net/JS/_ReuseLicense.txt

                  *** Reuse or modification is free provided you abide by the terms of that license.

                  *** (Including the first two lines above in your source code usually satisfies the conditions.)

                  #++

                  Author:: Gavin Kistner (mailto:!@phrogz.net)

                  Copyright:: Copyright (c)2004 Gavin Kistner

                  License:: See http://Phrogz.net/JS/_ReuseLicense.txt for details

                  Version:: 1.3, 2004-Oct-3

                  Full Code:: link:../Geodesic_SketchUp.rb

                  This file allows the user to add geodesic models to SketchUp (http://www.sketchup.com ).

                  See the Sketchup::Geodesic.create method for more information on creating and adding a geodesic dome/sphere.

                  ====Version History

                  20040916 v1.0 Initial release; relies on Geodesic.rb

                  20040920 v1.1 Rewrite to use only SketchUp classes

                  20040920 v1.1.1 Fixed it to actually load πŸ˜‰

                  20040920 v1.2.1 Added icosahedron option. Spruce up documentation.

                  20041003 v1.3 Added primitive picker to the dialog interface. (Thanks TBD!)

                  The Sketchup::Geodesic class cannot be instantiated; it is a wrapper for the Sketchup::Geodesic.create method. See that method for more details.

                  class Sketchup::Geodesic`

                  learn from the mistakes of others, you may not live long enough to make them all yourself...

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    driven
                    last edited by 28 Mar 2010, 04:11

                    @unknownuser said:

                    definitely separate, SU only uses one processor so you really want to be on the other...
                    [quote="Dan Rathbun":1k2r0bq3][
                    Hmmm.. things are getting better when things become cross-plaform.

                    I agree, although separate OS builds of common components and libraries isn't a big issue, especially if use RubyStacks or similar to output your SU versions.

                    Don't suppose you have ever watched the You Tube videos on 'MacFuse'?the last 10 minutes + Q&A of the long one are interesting, [it all is if you use mac....] http://code.google.com/p/macfuse/

                    learn from the mistakes of others, you may not live long enough to make them all yourself...

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      Dan Rathbun
                      last edited by 28 Mar 2010, 04:34

                      @chris fullmer said:

                      So I thought I should post a link to Pecan's previous work. (SuRDebug)
                      See if that is helpful in any way.

                      Oh yes.. I had actually downloaded this last December, but have yet to install and try it out.

                      As John says it's Win32 only at present, but it's based on the Wx GUIkit, which is supposed to be cross-platform. The editor is based on SciTE Scintilla, and is a bit out of date (SciTE is up over ver 2 now.)
                      The thing I didn't 'like' about it (from first blush,) was that Sketchup is run as a subprocess of the editor. I'd prefer they run in separate processes, connect by I/O pipes. But in practice it may prove not to be a big deal.

                      Scintilla is also supposed to be cross-platform (the SciTE 1.73 source code ...) STOP ..hold the presses!
                      I just checked the ver 2.01 source code of Scintilla, and it now comes with the MacOSX/Cocoa source code [the macosx dir was empty in ver 1.73, and the cocoa dir and it's framework subfolders is new.] And yes there are xcode project files. (EDIT: This is interesting, the Mac/OSX port of Scintilla was written and contributed by Adobe Systems! They needed to make the changes to support their ExtendScript Toolkit. The new code and xcode project files from Adobe were added into Scintilla ver 1.74, which is why my v1.73 folders were empty.) sourceforge link

                      I believe SciTE only has distros for Win32 and Linux/GTK+ available so far. (EDIT: The SciTE ver 2.03 page says it's been built and runs on: Windows XP, Fedora 8 and Ubuntu 7.10 with GTK+ 2.12.)

                      Hmmm.. things are getting better when things become cross-platform.
                      (EDIT: So I am thinking that SciTE, Notepad++ and SuRDebug, all based on Scintilla; could be ported to OSX.)

                      I'm not here much anymore.

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        Dan Rathbun
                        last edited by 28 Mar 2010, 07:10

                        @driven said:

                        @dan rathbun said:

                        I'd prefer they run in separate processes, connect by I/O pipes. But in practice it may prove not to be a big deal.

                        definitely separate, SU only uses one processor so you really want to be on the other...

                        πŸ˜† not processors, John.. processes
                        (At Ruby console, type Process.pid and you get the process id number.)

                        I'm not here much anymore.

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          driven
                          last edited by 28 Mar 2010, 12:25

                          @dan rathbun said:

                          :lol: not processors, John.. processes

                          It was late by the time I shot that off :oops:
                          More of a Freudian, typo-slip really... then complete ignorance

                          should read as... definitely separate, And as SU only uses one processor core, I really want a separate process to be on the other... but, I'm not even sure this terminology is any clearer?

                          So, I suppose what I'm trying to describe is a Separate App [bit like DashCode] that references/runs SU [on demand] when requested and also, has it's own separate openGL preview window for any other bits and bobs.... does this make sense?

                          learn from the mistakes of others, you may not live long enough to make them all yourself...

                          1 Reply Last reply Reply Quote 0
                          • tbdT Offline
                            tbd
                            last edited by 28 Mar 2010, 12:56

                            you know that SketchUp Bridge allows running ruby code from another process in the SU process.

                            for openGL preview you can have a window inside SU for previews (tested by myself) but depends on what you want to preview in the first place.

                            SketchUp Ruby Consultant | Podium 1.x developer
                            http://plugins.ro

                            1 Reply Last reply Reply Quote 0
                            • D Offline
                              driven
                              last edited by 28 Mar 2010, 13:04

                              hi TBD,

                              can Sketchup Bridge work on a mac?

                              john

                              learn from the mistakes of others, you may not live long enough to make them all yourself...

                              1 Reply Last reply Reply Quote 0
                              • tbdT Offline
                                tbd
                                last edited by 28 Mar 2010, 13:07

                                driven: not yet. I am working on it.

                                SketchUp Ruby Consultant | Podium 1.x developer
                                http://plugins.ro

                                1 Reply Last reply Reply Quote 0
                                • J Offline
                                  jessejames
                                  last edited by 28 Mar 2010, 15:27

                                  @unknownuser said:

                                  I didn't think that YOU (the author of one of the most comprehensive "hey guy's SU codings NOT hard" books proscribed to the FOFO school of teaching and learning

                                  I hadn't grasped that your, "hey guys, no need to look under the hood" API was devised to slow peoples own programing knowledge.

                                  I must say I'm rather disappointed in your attitude.

                                  Yes i must say i am rather disappointed in your low brow attempts to slander Martin. If you don't like the way Martin chooses to teach Ruby scripting, guess what, DONT READ IT!

                                  You only make yourself look like a vindictive little brat when you make comments like these and i am very upset no one else has called you out on it (mods i'm talking to you!)

                                  I think Martin takes a wise approach to teaching by allowing the student to take the course that suits them well, not by cramming certain practices down their throats and saying deal with it.

                                  This whole thread is in my option a waste of time. You need to listen more to Dan Rathburn because he is on the right track.

                                  @unknownuser said:

                                  "Google give us the power and we will build the infrastructure".

                                  Always sleep with a loaded gun under your pillow!

                                  1 Reply Last reply Reply Quote 0
                                  • thomthomT Offline
                                    thomthom
                                    last edited by 28 Mar 2010, 15:46

                                    @jessejames said:

                                    Yes i must say i am rather disappointed in your low brow attempts to slander Martin. If you don't like the way Martin chooses to teach Ruby scripting, guess what, DONT READ IT!

                                    You only make yourself look like a vindictive little brat when you make comments like these and i am very upset no one else has called you out on it (mods i'm talking to you!)

                                    I see nothing wrong in this thread. Good discussion that is all.

                                    Thomas Thomassen β€” SketchUp Monkey & Coding addict
                                    List of my plugins and link to the CookieWare fund

                                    1 Reply Last reply Reply Quote 0
                                    • thomthomT Offline
                                      thomthom
                                      last edited by 28 Mar 2010, 15:47

                                      @jessejames said:

                                      This whole thread is in my option a waste of time. You need to listen more to Dan Rathburn because he is on the right track.

                                      One could say - if you don't like the thread - don't read it. πŸ˜’

                                      Thomas Thomassen β€” SketchUp Monkey & Coding addict
                                      List of my plugins and link to the CookieWare fund

                                      1 Reply Last reply Reply Quote 0
                                      • C Offline
                                        Chris Fullmer
                                        last edited by 28 Mar 2010, 16:18

                                        @thomthom said:

                                        One could say - if you don't like the thread - don't read it. πŸ˜’

                                        I'm desperately trying to do just that, but somehow I am compelled to keep reading in hopes that I might begin to comprehend what the thread is talking about. πŸ˜†

                                        So when we're talking Mac compatibilty in this thread, are you mostly thinking about the apps that write the program, or are you also referring to scripts that have been written on one platform not working on the other platform? So far I have not ever run into that (that I know of). Is it common?

                                        Lately you've been tan, suspicious for the winter.
                                        All my Plugins I've written

                                        1 Reply Last reply Reply Quote 0
                                        • D Offline
                                          driven
                                          last edited by 28 Mar 2010, 20:32

                                          @chris fullmer said:

                                          So when we're talking Mac compatibilty in this thread, are you mostly thinking about the apps that write the program, or are you also referring to scripts that have been written on one platform not working on the other platform? So far I have not ever run into that (that I know of). Is it common?

                                          Chris, your input is very helpful, please bare with the meanderings. they do tie together.

                                          This thread is primarily an inquiry into 'cross platform' editor compatibility

                                          my input is Mac'centric' because I own Mac's and whilst there are mentions of problems here and there I couldn't find an appropriate thread dealing with potential solutions.

                                          there is even less information for anyone trying to find a solution for those using Linux or variants

                                          The answer may be that there is no single solution, unless Google suddenly packages up SU Plugin development kit

                                          @chris fullmer said:

                                          So far I have not ever run into that (that I know of). Is it common?

                                          it's possible you haven't, most 'ruby' scripts are fine, unless complex. it's when you start move away from just 'ruby' that it all goes pear shaped

                                          You would notice more if on a Mac, there's a lot of PC only scripts.

                                          Martin, I hope you saw my apology, and perceive it as such. I put your absence down to workload and it hadn't occurred that I may have 'driven' you away... thanks for pointing it out jessejames...

                                          john

                                          learn from the mistakes of others, you may not live long enough to make them all yourself...

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 4
                                          • 5
                                          • 4 / 5
                                          4 / 5
                                          • First post
                                            61/97
                                            Last post
                                          Buy SketchPlus
                                          Buy SUbD
                                          Buy WrapR
                                          Buy eBook
                                          Buy Modelur
                                          Buy Vertex Tools
                                          Buy SketchCuisine
                                          Buy FormFonts

                                          Advertisement