Closed tomocrafter closed 1 month ago
@tomocrafter are you intentionally setting BUNDLE_PATH
for some reason? Does deleting that file solve the problem?
I wonder if this issue isn't the same as #2532. I've been reflecting on how to solve that one, but I haven't arrived at a decent approach just yet.
The BUNDLE_PATH
setting should be fine and the fact that it's a local setting should have been fixed by #2535.
Thank you both for lookind into this issue.
@andyw8 This repository is work-related, and the config is shared by all members.
@vinistock The issue #2532 says "non-default version of bundler", How can I get the "default version of bundler" to test if this issue is related?
Honestly, I haven't been able to fix the problem because I also haven't been able to reproduce it properly. Every time I try require "bundler"
requires exactly the right version of Bundler, which then doesn't require a restart and doesn't reproduce the issue.
If you want to take a stab at debugging this yourself (since you can reproduce it), you might be able to get a sense of what's going on by adding some $stderr.puts
in our setup_bundler.rb
logic and the exe/ruby-lsp
executable.
I still need to investigate it further to fully understand how we can address the problem.
It is very strange, but I was debugging by adding puts to ruby-lsp source code and restarting ruby-lsp by running ruby-lsp
multiple times and I did nothing but suddenly it started working somehow.
What I did is just adding bunch of puts to source code, and now it works if I reverted all debug puts. I have no idea.
Thanks for the update.
Description
This is intended duplication issue of #1713, it seems another problem is causing prevent from booting.
The project which occuring this error have
.bundle/config
under project root directory withRuby LSP Information
VS Code Version
1.93.1
Ruby LSP Extension Version
0.8.1
Ruby LSP Server Version
Unknown (vscode extension could not detected so I ran
ruby-lsp --version
and output was0.18.1
)Ruby LSP Addons
Ruby Version
3.3.4
Ruby Version Manager
mise
Installed Extensions
Click to expand
- yaml2json (0.0.6) - rails-db-schema (0.2.9) - vscode-apollo (2.3.2) - nord-visual-studio-code (0.19.0) - markdown-mermaid (1.25.0) - systemd-unit-file (1.0.6) - yash (0.2.9) - vscode-eslint (3.0.10) - vscode-deno (3.41.0) - vscode-sqlfluff (3.2.1) - gitlens (15.5.1) - vsc-material-theme-icons (3.8.8) - prettier-vscode (11.0.0) - hadolint (1.1.2) - dependi (0.7.10) - auto-rename-tag (0.1.10) - remotehub (0.64.0) - vscode-github-actions (0.26.5) - go (0.42.1) - gc-excelviewer (4.2.62) - vscode-graphql (0.12.0) - vscode-graphql-syntax (1.3.6) - vscode-settings-cycler (1.0.1) - vscode-ansi (1.1.7) - intellij-idea-keybindings (1.7.2) - haml (1.4.1) - ts-type-expand (1.2.0) - vscode-rdbg (0.2.2) - regexp-preview (0.1.5) - Kotlin (1.7.1) - rainbow-csv (3.12.0) - template-string-converter (0.6.1) - git-graph (1.30.0) - vscode-mjml (1.0.6) - vscode-scss (0.10.0) - vscode-docker (1.29.2) - csharp (2.45.25) - vscode-dotnet-runtime (2.1.6) - debugpy (2024.10.0) - isort (2023.10.1) - python (2024.14.1) - vscode-pylance (2024.9.2) - jupyter (2024.8.1) - jupyter-keymap (1.1.2) - jupyter-renderers (1.0.19) - remote-containers (0.384.0) - remote-ssh (0.114.3) - remote-ssh-edit (0.86.0) - vscode-remote-extensionpack (0.25.0) - azure-repos (0.40.0) - cmake-tools (1.19.52) - cpptools (1.21.6) - cpptools-extension-pack (1.3.0) - cpptools-themes (2.0.0) - hexeditor (1.10.0) - makefile-tools (0.11.13) - remote-explorer (0.4.3) - remote-repositories (0.42.0) - remote-server (1.5.2) - vsliveshare (1.0.5941) - sqltools (0.28.3) - sqltools-driver-pg (0.5.4) - prettify-ts (0.1.5) - bun-vscode (0.0.15) - coffeesense (1.15.0) - material-icon-theme (5.11.1) - vscode-react-refactor (1.1.3) - prisma (5.19.1) - quick-lint-js (3.2.0) - java (1.34.0) - rust-analyzer (0.3.2121) - ruby-extensions-pack (0.1.12) - ruby-lsp (0.8.1) - svelte-vscode (109.0.1) - even-better-toml (0.19.2) - cmake (0.0.17) - vscode-mdx (1.8.11) - errorlens (3.20.0) - vscode-lldb (1.10.0) - highlight-matching-tag (0.11.0) - vscode-gradle (3.16.4) - vscode-java-debug (0.58.0) - vscode-java-dependency (0.24.0) - vscode-java-pack (0.29.0) - vscode-maven (0.44.0) - vscode-icons (12.9.0) - JavaScriptSnippets (1.8.0) - vscode-caddyfile-syntax (1.0.4)Ruby LSP Settings
Click to expand
##### Workspace ```json {} ``` ##### User ```json { "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": "mise", "miseExecutablePath": "/usr/bin/mise" }, "customRubyCommand": "", "formatter": "syntax_tree", "linters": null, "bundleGemfile": "", "testTimeout": 30, "branch": "", "pullDiagnosticsOn": "both", "useBundlerCompose": false, "bypassTypechecker": false, "rubyExecutablePath": "", "indexing": {}, "erbSupport": true } ```Bundler version is latest at this time:
Bundler version 2.5.19
Reproduction steps
code .
Code snippet or error message