# Unable to setup vscode for extension developmeent - Y2024

**URL:** <https://forums.sketchup.com/t/unable-to-setup-vscode-for-extension-developmeent-y2024/270358>\
**Category:** Developers\
**Tags:** sketchup\
**Created:** [April 27, 2024, 9:54pm UTC](https://forums.sketchup.com/t/unable-to-setup-vscode-for-extension-developmeent-y2024/270358 "2024-04-27T21:54:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![YouElz](https://avatars.discourse-cdn.com/v4/letter/y/c6cbf5/32.png) [@YouElz](https://forums.sketchup.com/u/YouElz)\
**Post date:** [April 27, 2024, 9:54pm UTC](https://forums.sketchup.com/t/unable-to-setup-vscode-for-extension-developmeent-y2024/270358/1 "2024-04-27T21:54:09Z")

</div>

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](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.**  
 ![image](https://global.discourse-cdn.com/sketchup/original/3X/d/c/dce3ed499a4be1fdb55adef6e1f94a8374f95e41.png)  
**2. Installed Rubocop:**

```auto
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:**

```auto
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.**  
 ![image](https://global.discourse-cdn.com/sketchup/original/3X/2/9/292182309caac252b4b3d4e20f4484e6b6fad162.png)

When I try to run “Listen for debug-ide” lanch.json I get this error.  
 ![image](https://global.discourse-cdn.com/sketchup/original/3X/4/f/4f69965c49659399161b62fe3ef73792c4acab83.png)

When I updated the type in lanch.json to “ruby\_lsp”, I got another error.

 ![image](https://global.discourse-cdn.com/sketchup/original/3X/0/9/09c1bce5cfe97c3c9d7bf16267be1e8f7ca3a354.png)

```auto
{
  {
    // 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}"
      }
    ]
  }

```
