sketchucation logo sketchucation
    • 登入
    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!
    🔌 Smart Spline | Fluid way to handle splines for furniture design and complex structures. Download

    [Plugin] Ruby Console+ (3.0.2) – updated 30.10.2017

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

      Minor update (1.0.9):

      • added icon
      1 條回覆 最後回覆 回覆 引用 0
      • A 離線
        Aerilius
        最後由 編輯

        I added improvements for higher dpi settings.

        1 條回覆 最後回覆 回覆 引用 0
        • A 離線
          Aerilius
          最後由 編輯

          A new version has been uploaded!
          Ruby Console+ 2.0 is more robust, more powerful and more beautiful!

          1 條回覆 最後回覆 回覆 引用 0
          • renderizaR 離線
            renderiza
            最後由 編輯

            The perfect companion for testing code thanks!

            [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

            1 條回覆 最後回覆 回覆 引用 0
            • A 離線
              Anton_S
              最後由 編輯

              Wow!!! 😍

              Aerilius, you're so amazing!!!

              Variety of style templates, bigger input zone, that's just amazing

              1 條回覆 最後回覆 回覆 引用 0
              • A 離線
                Aerilius
                最後由 編輯

                An update is ready!
                By replacing ace editor 1.1.0 by version 1.1.2, we now have auto-completion (ctrl+space) and code snippets support. I connected the autocompleter to Ruby so that it displays only completions (methods etc.) that are available in the current context.

                http://sketchucation.com/forums/download/file.php?id=115857

                Apart from that, modified scripts are now reloaded automatically.

                1 條回覆 最後回覆 回覆 引用 0
                • A 離線
                  Anton_S
                  最後由 編輯

                  Amazing update! 👍

                  I can't wait to check it, since I'm not at my home computer now.

                  1 條回覆 最後回覆 回覆 引用 0
                  • M 離線
                    matt.gordon320
                    最後由 編輯

                    Hello!

                    I'm getting this error. I'm using Fredo's Additional Plugin Folders script to control who in our firm has access to which plugins, just for reference. Any thoughts on what it might be?

                    Thanks!


                    AE-Console Error.png

                    1 條回覆 最後回覆 回覆 引用 0
                    • A 離線
                      Aerilius
                      最後由 編輯

                      That is a Javascript error caused by something in ace.js (you're not getting a popup error because I redirect such errors into the console). When I integrated ace into the webdialog there were a couple of incompatibilities with IE, that I tried to patch. It seems I didn't get that one. I'll try to work-around it. Thanks for reporting!

                      1 條回覆 最後回覆 回覆 引用 0
                      • jolranJ 離線
                        jolran
                        最後由 編輯

                        Thank you Aerilius. This one will be used a lot! Very useful.

                        I also got that JS error at first launch. Did not hinder me to use the dialog though, so it was surpressed.
                        This morning I did not get that error.
                        Another thing, I have to launch the plugin twice to get dialog showing. Persistantly. Tried relaunching SU 3 times, all the same. Not a big deal, but someone impatient 😄 might Think the plugin doesent work.

                        1 條回覆 最後回覆 回覆 引用 0
                        • A 離線
                          Aerilius
                          最後由 編輯

                          The JavaScript error should be supressed in version 2.1.1.

                          jolran, I can't reproduce it. When you open the Ruby Console+ for the first time (where it doesn't open), does something appear in the native Ruby Console?

                          1 條回覆 最後回覆 回覆 引用 0
                          • Rich O BrienR 離線
                            Rich O Brien Moderator
                            最後由 編輯

                            Is it in the PluginStore? I see no update listed

                            Download the free D'oh Book for SketchUp 📖

                            1 條回覆 最後回覆 回覆 引用 0
                            • Rich O BrienR 離線
                              Rich O Brien Moderator
                              最後由 編輯

                              Nevermind...I was just too eager on the trigger

                              Download the free D'oh Book for SketchUp 📖

                              1 條回覆 最後回覆 回覆 引用 0
                              • jolranJ 離線
                                jolran
                                最後由 編輯

                                Hi. Yes there seams to be Typerror during load.

                                Ruby console spits this out. Next time I launch dialog opens, and no error message.

                                Error; #<TypeError; can't convert Symbol into String>
                                C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/ae_Console/Console.rb;297;in `join'
                                C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/ae_Console/Console.rb;297;in `initialize'
                                C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/ae_Console/Console.rb;297;in `map'
                                C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/ae_Console/Console.rb;297;in `initialize'
                                C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/ae_Console/Console.rb;295;in `each'
                                C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/ae_Console/Console.rb;295;in `initialize'
                                C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/ae_Console/Console.rb;90;in `new'
                                C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/ae_Console/Console.rb;90;in `open'
                                C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/ae_Console/Console.rb;578
                                
                                1 條回覆 最後回覆 回覆 引用 0
                                • M 離線
                                  matt.gordon320
                                  最後由 編輯

                                  Error is no longer coming up for me, just like jolran said. Thanks gents! Looking forward to using what looks to be an awesome console upgrade!

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • Dan RathbunD 離線
                                    Dan Rathbun
                                    最後由 編輯

                                    v2.1.3

                                    Testing the namespace feature does not seem to work.

                                    when I first open the Console+, and type self, it returns an instance of AE::Console

                                    If I try to switch to a module it does not work.
                                    Sometimes the text changes in the box, other times it does not and keeps resetting to "global".

                                    If I cause an error by typing "module Dan" the output is an exception backtrace, and self becomes main.

                                    Other times it starts as main, after attempting to set to some class like String, it is instead within AE::Console.

                                    I'm not here much anymore.

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • A 離線
                                      Aerilius
                                      最後由 編輯

                                      Yes, the namespace feature is the last missing piece that doesn't work in some versions of Ruby. I've fixed it, but not yet published, because I also want to inspect a problem with garbage collection (closed AE::Console instances stay in memory).

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • tt_suT 離線
                                        tt_su
                                        最後由 編輯

                                        @aerilius said:

                                        (closed AE::Console instances stay in memory).

                                        I had the same issue with SKUI. After diggin into it it appeared to be the callback handlers that held on to variables from the scope they where defined in causing circular references back to the webdialog. I had to do some awkward workaround to avoid that:
                                        https://github.com/thomthom/SKUI/blob/master/src/SKUI/window.rb#L461

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • A 離線
                                          Aerilius
                                          最後由 編輯

                                          Thanks, I'll look into that.
                                          As far as I could analyze my code, it should not permanently keep references of these dialogs. So I've started compiling a patched Ruby version that can reverse-lookup references of an object.

                                          1 條回覆 最後回覆 回覆 引用 0
                                          • tt_suT 離線
                                            tt_su
                                            最後由 編輯

                                            The issue I found wasn't explicitly holding on to variables, but when you create a block in Ruby the outer variables will be available to the block - this implicitly binds objects to that block.
                                            So when you create a block for the event handlers of a webdialog you implicitly bind the webdialog variable from the outer scope to the block which ends up creating a circular reference.

                                            1 條回覆 最後回覆 回覆 引用 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 4 / 4
                                            • 第一個貼文
                                              最後的貼文
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement