Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruby extension now deprecated - will not install #30

Open
tgreiser opened this issue Oct 23, 2023 · 4 comments
Open

Ruby extension now deprecated - will not install #30

tgreiser opened this issue Oct 23, 2023 · 4 comments

Comments

@tgreiser
Copy link

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.

@thomthom
Copy link
Member

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?

@tgreiser
Copy link
Author

tgreiser commented Oct 24, 2023

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.

@YouElz
Copy link

YouElz commented Apr 28, 2024

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
Copy link

YouElz commented Apr 28, 2024

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

Now, Lanuch.json is fully recognized.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants