SketchUp 2024.0 Developer Resources

A few updated Developer Resources related to SketchUp 2024.0:

rubocop-sketchup

  • Updated with support for 2024.0

SketchUp Ruby API stubs

  • Includes 2024.0 features.

SketchUp Ruby API Debugger

  • Updated for SketchUp 2024.0’s new Ruby version: 3.2

Ruby C Extension Examples

  • Updated for SketchUp 2024.0’s new Ruby version: 3.2

TestUp

  • 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

@tt_su The 2024 Release Notes do not mention the addition of bundled gems.

@tt_su The following page says that SU 2024 uses Ruby 2.2 ! (should say 3.2)

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:

  1. ‘Default gems’ are std-lib items whose code is included in the Ruby repo, and they cannot be uninstalled via the gem uninstall command.
  2. ‘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.

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

There is indeed an active extension with this name: vscode-ruby - Visual Studio Marketplace
Is it this extension?

Self-response that may help the community.
The vscode-ruby extension is the following (deprecated): Ruby by Peng Lv
image

It appears that this solution works on my PC:

  1. Download the .svix file of the deprecated plugin (on marketplace.visualstudio.com)

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