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

Unexpected error on initialize #2865

Open
mattn opened this issue Nov 18, 2024 · 2 comments
Open

Unexpected error on initialize #2865

mattn opened this issue Nov 18, 2024 · 2 comments
Labels
bug Something isn't working vscode This pull request should be included in the VS Code extension's release notes

Comments

@mattn
Copy link

mattn commented Nov 18, 2024

Description

Ruby LSP Information

Ruby LSP Information

VS Code Version

1.95.3

Ruby LSP Extension Version

0.8.4

Ruby LSP Server Version

Unknown

Ruby LSP Addons

Ruby Version

3.1.5

Ruby Version Manager

rubyInstaller

Installed Extensions

Click to expand
  • aws-toolkit-vscode (3.28.0)
  • perlnavigator (0.8.15)
  • vscode-markdownlint (0.56.0)
  • vscode-eslint (3.0.10)
  • EditorConfig (0.16.4)
  • copilot (1.238.0)
  • copilot-chat (0.22.2)
  • github-vscode-theme (6.3.5)
  • remotehub (0.64.0)
  • vscode-pull-request-github (0.98.0)
  • go (0.42.1)
  • Ionide-fsharp (7.21.2)
  • graphql-for-vscode (1.15.3)
  • MagicPython (1.1.0)
  • Lisp (0.1.12)
  • vscode-docker (1.29.3)
  • vscode-language-pack-ja (1.94.2024100909)
  • csharp (2.50.25)
  • vscode-dotnet-runtime (2.2.0)
  • vscode-kubernetes-tools (1.3.18)
  • debugpy (2024.12.0)
  • isort (2023.10.1)
  • python (2024.16.1)
  • vscode-pylance (2024.10.1)
  • jupyter (2024.9.1)
  • jupyter-keymap (1.1.2)
  • jupyter-renderers (1.0.19)
  • remote-containers (0.388.0)
  • remote-ssh-edit (0.87.0)
  • remote-wsl (0.88.4)
  • azure-repos (0.40.0)
  • cmake-tools (1.19.52)
  • cpptools (1.22.9)
  • cpptools-extension-pack (1.3.0)
  • cpptools-themes (2.0.0)
  • makefile-tools (0.11.13)
  • powershell (2024.2.2)
  • remote-explorer (0.4.3)
  • remote-repositories (0.42.0)
  • java (1.35.1)
  • vscode-yaml (1.15.0)
  • ruby-lsp (0.8.4)
  • svelte-vscode (109.1.0)
  • cmake (0.0.17)
  • vscode-java-debug (0.58.0)
  • vscode-maven (0.44.0)
  • vscode-icons (12.9.0)
  • vscode-zig (0.5.9)

Ruby LSP Settings

Click to expand
Workspace
{}
User
{
  "enableExperimentalFeatures": false,
  "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,
    "typeHierarchy": true
  },
  "featuresConfiguration": {},
  "addonSettings": {},
  "rubyVersionManager": {
    "identifier": "auto"
  },
  "customRubyCommand": "",
  "formatter": "auto",
  "linters": null,
  "bundleGemfile": "",
  "testTimeout": 30,
  "branch": "",
  "pullDiagnosticsOn": "both",
  "useBundlerCompose": false,
  "bypassTypechecker": false,
  "rubyExecutablePath": "c:\\msys64\\mingw64\\bin\\ruby.exe",
  "indexing": {},
  "erbSupport": true
}

Reproduction steps

  1. Start the Ruby LSP using a certain editor
  2. Open a Ruby file
  3. Do something
  4. See unexpected behavior

Code snippet or error message

Image

@mattn mattn added bug Something isn't working vscode This pull request should be included in the VS Code extension's release notes labels Nov 18, 2024
@andyw8
Copy link
Contributor

andyw8 commented Nov 18, 2024

Could you please try running this on the terminal and check if it succeeds (from the root of your project):

BUNDLE_GEMFILE=.ruby-lsp/Gemfile bundle

@andyw8
Copy link
Contributor

andyw8 commented Nov 18, 2024

Also, this is likely encoding related, so it may help if you can share any details about the file encodings used in your codebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working vscode This pull request should be included in the VS Code extension's release notes
Projects
None yet
Development

No branches or pull requests

2 participants