sketchucation logo sketchucation
    • 登入
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    HELP setting up a SU code editor

    已排程 已置頂 已鎖定 已移動 Developers' Forum
    97 貼文 11 Posters 6.4k 瀏覽 11 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • D 離線
      driven
      最後由 編輯

      404 - Unknown site

      favicon

      (www.aptana.org)

      Hi,

      a couple of us aspiring ruby coders have been trying to set up Aptana Studio to be specific to SU, and to be perfectly honest, need help

      Aptana seems like the best choice because it's cross platform, eclipse based, open sourced, with an active community and it's FREE

      Can some of the guru's take a look,
      suggest some baseline settings we should use,
      show us how to reference the API and
      maybe provide a 'Best Practice' Template we can all learn with/from

      I'm sure we can cobble something together ourselves,
      but since we'll send them to you for help,
      wouldn't it be nice if they follow some your guidelines

      as always, comments please

      john

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

      1 條回覆 最後回覆 回覆 引用 0
      • thomthomT 離線
        thomthom
        最後由 編輯

        This sticky got a nice list of resources: http://forums.sketchucation.com/viewtopic.php?f=180&t=10142

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

        1 條回覆 最後回覆 回覆 引用 0
        • thomthomT 離線
          thomthom
          最後由 編輯

          Here's my own starter template. By no means claim to be best practice.

          What I'd say is the most important here is:
          Base module wrapping around all the code with my initials to make it more likely to be a unique namespace.

          The rest is just convenient, such as the start_operation helper method, menu item code snippet and the header. Stuff that I always use when I write a new plug. The top comment would probably be best formatted in RDoc or something similar.


          template.rb

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

          1 條回覆 最後回覆 回覆 引用 0
          • thomthomT 離線
            thomthom
            最後由 編輯

            Would be very interesting if someone found a way to hook this IDE into SU so one could step through code and profile.

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

            1 條回覆 最後回覆 回覆 引用 0
            • D 離線
              driven
              最後由 編輯

              cheers for that thomthom,

              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....

              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

              and so we can co-work, on a single script direct from the editor, over platforms/time and space....

              The reason I've gone for this one is it looks very good for WD input as well.

              john

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

              1 條回覆 最後回覆 回覆 引用 0
              • D 離線
                driven
                最後由 編輯

                @thomthom said:

                Would be very interesting if someone found a way to hook this IDE into SU so one could step through code and profile.

                I think you can with this, that's what I'm trying to do...
                your Template with defaults

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

                1 條回覆 最後回覆 回覆 引用 0
                • D 離線
                  driven
                  最後由 編輯

                  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 條回覆 最後回覆 回覆 引用 0
                  • thomthomT 離線
                    thomthom
                    最後由 編輯

                    @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 條回覆 最後回覆 回覆 引用 0
                    • D 離線
                      driven
                      最後由 編輯

                      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 條回覆 最後回覆 回覆 引用 0
                      • thomthomT 離線
                        thomthom
                        最後由 編輯

                        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 條回覆 最後回覆 回覆 引用 0
                        • D 離線
                          driven
                          最後由 編輯

                          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 條回覆 最後回覆 回覆 引用 0
                          • D 離線
                            driven
                            最後由 編輯

                            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 條回覆 最後回覆 回覆 引用 0
                            • D 離線
                              driven
                              最後由 編輯

                              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 條回覆 最後回覆 回覆 引用 0
                              • thomthomT 離線
                                thomthom
                                最後由 編輯

                                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 條回覆 最後回覆 回覆 引用 0
                                • M 離線
                                  MartinRinehart
                                  最後由 編輯

                                  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 條回覆 最後回覆 回覆 引用 0
                                  • thomthomT 離線
                                    thomthom
                                    最後由 編輯

                                    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 條回覆 最後回覆 回覆 引用 0
                                    • thomthomT 離線
                                      thomthom
                                      最後由 編輯

                                      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 條回覆 最後回覆 回覆 引用 0
                                      • D 離線
                                        driven
                                        最後由 編輯

                                        @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 條回覆 最後回覆 回覆 引用 0
                                        • D 離線
                                          driven
                                          最後由 編輯

                                          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 條回覆 最後回覆 回覆 引用 0
                                          • Chris FullmerC 離線
                                            Chris Fullmer
                                            最後由 編輯

                                            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 條回覆 最後回覆 回覆 引用 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 1 / 5
                                            • 第一個貼文
                                              最後的貼文
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement