sketchup-ruby-api-tutorials icon indicating copy to clipboard operation
sketchup-ruby-api-tutorials copied to clipboard

Ruby extension now deprecated - will not install

Open tgreiser opened this issue 2 years ago • 4 comments

The "Ruby" VS Code extension by Peng Lv is now deprecated and will no longer install. It is referenced here:

https://github.com/SketchUp/sketchup-ruby-api-tutorials/wiki/VSCode-Debugger-Setup#preparing-the-ide

The new recommended extension is Ruby LSP, but it is not compatible with the tutorial launch.json.

tgreiser avatar Oct 23 '23 22:10 tgreiser

I've noticed VSCode has given deprecation warnings. Haven't had time to look into what's required for the migration.

Though, didn't realize it won't install any more. I thought you could still install and use deprecated extensions.

Have you tried using the new extension?

thomthom avatar Oct 24 '23 09:10 thomthom

I tried it, but ruby-lsp has a different syntax for the launch.json configurations and I couldn't figure out how to pass the remoteHost, remotePort, etc.

Sample launch.json

{
    // 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": [
        {
            "type": "ruby_lsp",
            "name": "Debug",
            "request": "launch",
            "program": "ruby ${file}",
        },
        {
            "type": "ruby_lsp",
            "request": "launch",
            "name": "Debug test file",
            "program": "ruby -Itest ${relativeFile}"
        },
        {
            "type": "ruby_lsp",
            "request": "attach",
            "name": "Attach to existing server",
        }
    ]
}

I was able to install the old extension by manually copying my extensions folder from a backup, but not via the VS Code UI.

tgreiser avatar Oct 24 '23 22:10 tgreiser

I'm encountering a similar problem. Regrettably, I no longer have access to the previous extension. I've recently begun experimenting with Ruby and delving into SketchUp extension development. Could someone kindly share the updated configuration for launch.json that is compatible with the Ruby-lsp extension?

image

YouElz avatar Apr 28 '24 02:04 YouElz

I managed to uninstall the Ruby LSP and install the deprecated version. Then installed manually into vscode.

Now, Lanuch.json is fully recognized.

image

YouElz avatar Apr 28 '24 09:04 YouElz