sketchucation logo sketchucation
    • Anmelden
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    ⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update

    HELP setting up a SU code editor

    Geplant Angeheftet Gesperrt Verschoben Developers' Forum
    97 Beiträge 11 Kommentatoren 7.9k Aufrufe 11 Watching
    Lade mehr Beiträge
    • Älteste zuerst
    • Neuste zuerst
    • Meiste Stimmen
    Antworten
    • In einem neuen Thema antworten
    Anmelden zum Antworten
    Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
    • D Offline
      driven
      zuletzt editiert von

      the thing about setting SU as the framework is we can filter non-working methods and add custom one at source

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

      1 Antwort Letzte Antwort Antworten Zitieren 0
      • thomthomT Offline
        thomthom
        zuletzt editiert von

        @driven said:

        the resources on the link, I have all those and more, but I can't work out how to point the editor at them, there's to many ways that might be right, or all be wrong....

        I've not used this editor - so I'm not sure what you mean by pointing the editor to them?

        @driven said:

        you can point to specific Ruby versions, helper Gems, API's etc., which I have a choice of on Mac, but I want to set it up so they still work on PC's

        On PC the ruby version is 1.8.0 - wonder if it reports a slightly different version on OSX..?

        (somewhat offtopic - but how did you set up this editor for Ruby? I only see RubyRails. And trying to click on Get It for any plugin does nothing.)

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

        1 Antwort Letzte Antwort Antworten Zitieren 0
        • D Offline
          driven
          zuletzt editiert von

          Not off topic at all, unless someone is already using it , I think hammering out common ground is good...

          it has built in messaging and external user code input....
          this?

          and thisTemplates.jpg

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

          1 Antwort Letzte Antwort Antworten Zitieren 0
          • thomthomT Offline
            thomthom
            zuletzt editiert von

            I installed the plain studio. Did you install the RadRails?
            If so - can one disable the Rails part of it? So when coding in Ruby one does not get code insight for Rails?

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

            1 Antwort Letzte Antwort Antworten Zitieren 0
            • D Offline
              driven
              zuletzt editiert von

              I did instal a couple of the plugins

              the Quantum DataBase is a plugin which I think can be set as a repositry
              .xml formating

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

              1 Antwort Letzte Antwort Antworten Zitieren 0
              • D Offline
                driven
                zuletzt editiert von

                yes,
                RadRails plugin after studio

                rudy is standalone

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

                1 Antwort Letzte Antwort Antworten Zitieren 0
                • D Offline
                  driven
                  zuletzt editiert von

                  pointing where you want.jpg

                  I'll convert your template and apply it to something as a test...

                  I wish the forum had cut and paste for attachments....

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

                  1 Antwort Letzte Antwort Antworten Zitieren 0
                  • thomthomT Offline
                    thomthom
                    zuletzt editiert von

                    what did you do when it asked for an Ruby installation?

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

                    1 Antwort Letzte Antwort Antworten Zitieren 0
                    • M Offline
                      MartinRinehart
                      zuletzt editiert von

                      I'm a veteran of both Eclipse and NetBeans and highly recommend both for large projects. Haven't seen the benefit of trying either for Ruby plugins.

                      I don't know of any progress on the polylingual problem. In Java, you could use HTML in the JavaDoc, but the editor didn't really get the "language switch here" message. Maybe it's gotten better in the last couple years.

                      This problem is taken to the extreme in WebDialog work. My current project has one file mixing Ruby, JavaScript, HTML and CSS. If you find a tool that will do syntax highlighting for something like this, do let us all know!

                      Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

                      1 Antwort Letzte Antwort Antworten Zitieren 0
                      • thomthomT Offline
                        thomthom
                        zuletzt editiert von

                        My TT_Lib library is growing and could really benefit from an IDE. And also is the Vertex Edit plugin I'm working on - which I sorely miss profiling for.

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

                        1 Antwort Letzte Antwort Antworten Zitieren 0
                        • thomthomT Offline
                          thomthom
                          zuletzt editiert von

                          How does it work with Aptana and setting up a project in the Plugins folder?
                          Can I create a project which includes the loader .rb in my plugins folder and then the accompanying folder?

                          I tried some other editors before, but they'd insist in adding all .rb files in the plugins folder.

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

                          1 Antwort Letzte Antwort Antworten Zitieren 0
                          • D Offline
                            driven
                            zuletzt editiert von

                            @Martin I was going to PM this to you as I think it does all that+ more, and being open source also means gaps can be filled... by you clever ones....

                            @Thomas, I think you set up the project in your home directory with your sketchup ruby in /Plugins folder and it gets updated as you go along...

                            Martin, Dan, Jim, Todd, TIG, Fredo, TBD, Alex, Scott,,,,,,,ect,,,,,,,, please try it out, your assistance would be hugely beneficial..
                            EDIT: and I should also plead to AdamB for his Mac insight as well
                            This is not a mutually exclusive list it's groveling to ALL and any

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

                            1 Antwort Letzte Antwort Antworten Zitieren 0
                            • D Offline
                              driven
                              zuletzt editiert von

                              This is where I read about it and may answer some questions for the more advanced....http://www.cherny.com/webdev/91/code-text-editors-for-web-development

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

                              1 Antwort Letzte Antwort Antworten Zitieren 0
                              • Chris FullmerC Offline
                                Chris Fullmer
                                zuletzt editiert von

                                I have to admit that I do not understand what an IDE does over just using Notepad++ to write scripts? What is all this extra functionality that we keep talking about?

                                Chris

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

                                1 Antwort Letzte Antwort Antworten Zitieren 0
                                • thomthomT Offline
                                  thomthom
                                  zuletzt editiert von

                                  @chris fullmer said:

                                  I have to admit that I do not understand what an IDE does over just using Notepad++ to write scripts? What is all this extra functionality that we keep talking about?

                                  Chris

                                  IDE usually allow you to hook a debugger to your code, so you can set breakpoints and step through code, evaluate variable values live and profile your code to find where the choking points are.
                                  They also usually keep track of your methods and classes which will appear in lists - and the better ones extract your documentation comments so when you start typing the name of a method you defined the auto-complete will suggest your own methods (not just the standard ruby ones) and also display your own documentation comments.
                                  And lots more in terms of keeping track of your files etc. Usually more useful for larger projects - but I have some plugins where I'd really like an intelligent IDE instead of just simple syntax colouring.

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

                                  1 Antwort Letzte Antwort Antworten Zitieren 0
                                  • D Offline
                                    driven
                                    zuletzt editiert von

                                    @chris fullmer said:

                                    just using Notepad++ to write scripts?
                                    Chris

                                    my recent endeavors to find the mysterious Mac 'bug' that appears to affect some scripts and not others and some Macs and not others, led me to a number of blogs about MS'Dos' debris causing issues, when I cleaned and reformatted using Unix Line Delimiters as suggested (as apposed to PC or Mac specific) some of the script worked without additional work, while there seemingly identical originals still didn't...

                                    So I started looking for a powerful cross platform alternative to what I was using and free, open-source seemed sensible.

                                    the problem lays in setting them up so they are as easy to use as the less complex ones when starting out, but are readily expanded as you pick up, mix in other languages etc...

                                    This appears to meet my criteria, but maybe I should have an easy start list at the top of the thread that can be added to over time??

                                    Give it a go, my first tip is Download Studio first, then let it download Rad Rails, which also contains RUBY, then set ruby prefs from there.

                                    @Martin-is this what you mean?http://www.vimeo.com/6885985

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

                                    1 Antwort Letzte Antwort Antworten Zitieren 0
                                    • Dan RathbunD Offline
                                      Dan Rathbun
                                      zuletzt editiert von

                                      @driven said:

                                      ... when I cleaned and reformatted using Unix Line Delimiters as suggested (as apposed to PC or Mac specific) some of the script worked without additional work, while there seemingly identical originals still didn't...

                                      So Notepad++ has 3 options for EOL (which is apparentley auto set on install for the platform the user is on.) On my PC, it was set to 'Windows'.

                                      The other options are 'Mac' and 'UNIX'.

                                      IF UNIX EOLs work on Mac, how does it work for Ruby on a PC??

                                      I'm not here much anymore.

                                      1 Antwort Letzte Antwort Antworten Zitieren 0
                                      • D Offline
                                        driven
                                        zuletzt editiert von

                                        @dan rathbun said:

                                                IF UNIX EOLs work on Mac, how does it work for Ruby on a PC??
                                        

                                        That I don't know, I was attempting to modify PC rubies to work on the Mac.... although I did send a couple back to one developer who then ran them on his PC... be handy if they do, I suppose one way to check is if you switch coding on something known to work on your PC and see if it still does... I'm by no means saying that notepad causes all problems, or that changing encode is a miracle cure, but it seems that it is capable of producing errors, and is probably a good place to start when debugging , it's easy.....

                                        Have you had a look at this editor/IDE?

                                        john

                                        PS, I've also set up SU on XP pro SP3 on one mac, but as it unix under the skin it may not be the best test bed...

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

                                        1 Antwort Letzte Antwort Antworten Zitieren 0
                                        • Dan RathbunD Offline
                                          Dan Rathbun
                                          zuletzt editiert von

                                          Well being a Mac guy.. be careful here:

                                          Notepad is a crappy plain jane text editor that comes with Windows; and is even known to screw up files made for windows.

                                          Notepad++ is a full featured code editor based on the Scintilla core (which is cross-platform.) I just don't know anyone's ever compiled a Mac version.

                                          Haven't had time to look at that editor, I'm happy with Notepad++ as an editor, that can be expanded with plugins. (such as a console, debugger interface etc.)

                                          The problem is not a lack of editors or IDEs, or even those that work with Ruby,.. it's that Sketchup does NOT use standard Ruby. The answer is to get both Sketchup and an IDE to be using (or acceesing,) the same instance of Ruby. We don't have a choice NOW, because it's Sketchup that loads the Ruby instance, and into that instance is where Sketchup loads it's API extensions.

                                          I WISH for the future, that the Google Team can be convinced to let us have more control over Ruby.

                                          • A configure setting where WE tell Sketchup the location and name of the Ruby Interpreter binary (so it can be pointed to the standard Ruby bin directory of whatever version we want to run or test.)* The option to load the SU API extensions into a Ruby Process that is already running, and started by the user, or the IDE, rather than Sketchup. (Hoping here that when SU crashes, it doesn't take Ruby down with it.)

                                          I'm not here much anymore.

                                          1 Antwort Letzte Antwort Antworten Zitieren 0
                                          • M Offline
                                            MartinRinehart
                                            zuletzt editiert von

                                            @dan rathbun said:

                                            I'm happy with Notepad++ as an editor,

                                            It's really strong with HTML and JavaScript, but pretty weak on Ruby. Minimal coloring, only a faint try at matching begin/end constructs, ...

                                            Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

                                            1 Antwort Letzte Antwort Antworten Zitieren 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 5 / 5
                                            • Erster Beitrag
                                              Letzter Beitrag
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement