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

Failed to activate asdf environment: Unexpected token '/', "/bin/sh: 2"... is not valid JSON #1985

Closed
kiran-4444 opened this issue Apr 28, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@kiran-4444
Copy link

Description

I'm using asdf version manager. I've setup ruby-lsp in vscode and using the following workspace config:

{
    "rubyLsp.bundleGemfile": "./Gemfile",
    "rubyLsp.formatter": "rubocop",
    "rubyLsp.rubyVersionManager": {
        "identifier": "asdf"
    },
    "rubyLsp.enabledFeatures": {
        "codeActions": true,
        "diagnostics": true,
        "documentHighlights": true,
        "documentLink": true,
        "documentSymbols": true,
        "foldingRanges": true,
        "formatting": true,
        "hover": true,
        "inlayHint": true,
        "onTypeFormatting": true,
        "selectionRanges": true,
        "semanticHighlighting": true,
        "completion": true,
        "codeLens": true,
        "definition": true,
        "workspaceSymbol": true,
        "signatureHelp": true
    }
}

But some how when I try to start the server, I get this error:

image

@kiran-4444 kiran-4444 added the bug Something isn't working label Apr 28, 2024
@guicattani
Copy link

Try updating your asdf installation :) with asdf update

@cveneziani
Copy link

I had the same issue, ran asdf update, restarted VS Code and now it's working fine.
Thanks for the hint 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants