I’m new to SketchUp extension development and could really use some guidance. I’ve spent several hours attempting to set up the boilerplate example project found at https://github.com/SketchUp/sketchup-extension-vscode-project?tab=readme-ov-file, but unfortunately, I’ve hit a roadblock.
Here’s the setup I’ve followed:
1. Installed a standalone Ruby environment.
2. Installed Rubocop:
gem install rubocop
gem install rubocop-sketchup
3. Downloaded the project folder and opened it in Visual Studio Code.
4. Copied the required debug file SURubyDebugger.dll into the SketchUp 2023 folder.
5. Successfully tested the command:
SketchUp.exe -rdebug "ide port=7000"
6. Installed the Ruby Language Server Protocol (LSP) extension for Visual Studio Code as the Ruby extension is deprecated.
When I try to run “Listen for debug-ide” lanch.json I get this error.
When I updated the type in lanch.json to “ruby_lsp”, I got another error.
{
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Listen for rdebug-ide",
"type": "ruby_lsp",
"request": "attach",
"cwd": "${workspaceRoot}",
"remoteHost": "127.0.0.1",
"remotePort": "7000",
"remoteWorkspaceRoot": "${workspaceRoot}"
}
]
}