tt_su
April 5, 2024, 2:47pm
1
A few updated Developer Resources related to SketchUp 2024.0:
rubocop-sketchup
Rubocop cops for SketchUp - test against our Extension Warehouse technical requirements and other pitfalls
Updated with support for 2024.0
SketchUp Ruby API stubs
Auto-generated stubs for the SketchUp Ruby API. Useful for IDE intellisense and auto-complete.
Includes 2024.0 features.
SketchUp Ruby API Debugger
Ruby API debugger for SketchUp 2014 and later.
Updated for SketchUp 2024.0’s new Ruby version: 3.2
Ruby C Extension Examples
Ruby C extension examples
Updated for SketchUp 2024.0’s new Ruby version: 3.2
TestUp
TestUp 2 for SketchUp - A GUI wrapper for running Minitest in SketchUp
Updated for SketchUp 2024.0’s new Ruby version: 3.2
SpeedUp - Ruby Profiler
Updated for SketchUp 2024.0’s new Ruby version: 3.2
8 Likes
@tt_su The 2024 Release Notes do not mention the addition of bundled gems .
2 Likes
@tt_su The following page says that SU 2024 uses Ruby 2.2 ! (should say 3.2 )
1 Like
I will like to know more about these bundled gems.
I think macOS has included bundled gems for at least a few versions.
On Windows, the installed bundled gems are listed at:
C:/Program Files/SketchUp/SketchUp 2024/Tools/gems/3.2.0/specifications
In that folder there is also a default folder, it contains the gemspecs for all default gems.
The bundled gems are installed in:
C:/Program Files/SketchUp/SketchUp 2024/Tools/gems/3.2.0/gems
Bundled gems have existed since Ruby 2.2. Before Ruby 2.2, all items that were considered part of Ruby’s ‘std-lib’ (standard Library) were included in the Ruby repository.
Since then, the std-lib now has two categories:
‘Default gems’ are std-lib items whose code is included in the Ruby repo, and they cannot be uninstalled via the gem uninstall command.
‘Bundled gems’ are std-lib items that are not included in the Ruby repo, and they can be uninstalled.
These changes affect CI and other things unrelated to Ruby’s use in SketchUp.
2 Likes
Wisext
June 17, 2024, 8:33am
6
Hi,
Is the Debugger working again with VSCode?
Reading this thread started in November, I didn’t find a definitive and stable solution to this problem.
On the Github, it says that it works with the vscode-ruby extension.
There is indeed an active extension with this name: vscode-ruby - Visual Studio Marketplace
Is it this extension?
1 Like
Wisext
June 18, 2024, 1:21pm
7
Self-response that may help the community.
The vscode-ruby extension is the following (deprecated): Ruby by Peng Lv
It appears that this solution works on my PC:
Download the .svix file of the deprecated plugin (on marketplace.visualstudio.com )
Install it manually in VSCode.
That’s all .
Note that everything was already configured for debugging (launch.json & tasks.json to launch SketchUp in debug mode). I didn’t have to uninstall or deactivate any other plugins.
4 Likes