Bundler settings containing spaces are rewritten with colons when composing the bundle
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 84/100
Línea de trabajo
Empieza en SetupBundler#bundler_settings_as_env e inspecciona cómo convierte la configuración de Bundler en variables de entorno. Reproduce el problema con los pasos bundle config set --local path "vendor/my bundle" del issue y luego comprueba que el bundle compuesto conserva el espacio en su ruta y que la configuración de listas sigue funcionando. Se considera terminado cuando se conserva la ruta y el servidor deja de cerrarse con el error de separador de ruta indicado.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
SetupBundler#bundler_settings_as_env passes every Bundler setting to the composed bundle's bundle install as an environment variable, and runs every value through .tr(" ", ":"):
value = Array(settings[e]).join(":").tr(" ", ":")
That suits list settings like without, but it also rewrites file paths. A path setting that contains a space ends up pointing at a path that doesn't exist, and the server fails to start.
We hit it with BUNDLE_SSL_CA_CERT. Aikido's endpoint agent on macOS sets it to /Library/Application Support/AikidoSecurity/EndpointProtection/run/endpoint-protection-ruby-combined-ca.pem. The composed bundle gets /Library/Application:Support/..., so whenever it needs to fetch a gem, bundle install fails with:
OpenSSL::X509::StoreError: X509_LOOKUP_load_file: BIO lib
Claude code shows the error as:
Language server "plugin:ruby-lsp:ruby-lsp" couldn't start. The Errors tab in /plugin may have the reason.
plugin:ruby-lsp:ruby-lsp @ unknown (user)
LSP server plugin:ruby-lsp:ruby-lsp crashed with exit code 1
A plain bundle install in the same shell works.
Ruby LSP Information
- ruby-lsp 0.26.11
- Bundler 4.0.20, Ruby 3.4.12, macOS
- Editor: Claude Code, which runs
ruby-lspdirectly. The failure is in the server's bundle setup, so the editor shouldn't matter.
Reproduction steps
A path setting shows it without any certificate setup:
mkdir lsp-space && cd lsp-space
printf 'source "https://rubygems.org"\ngem "rake"\n' > Gemfile
bundle lock
bundle config set --local path "vendor/my bundle"
ruby-lsp < /dev/null
The composed bundle installs into vendor/my:bundle, then the server exits with status 13:
Bundled gems are installed into `./vendor/my:bundle`
Your bundle path contains text matching ":", which is the path separator for
your system. Bundler cannot function correctly when the Bundle path contains the
system's PATH separator. Please change your bundle path to not match ":".
Suggested fix
Drop the .tr(" ", ":"). Bundler::Settings#[] already returns an array for list settings, because to_array splits on spaces and colons. So .join(":") alone gives development:test for BUNDLE_WITHOUT="development test" and leaves vendor/my bundle unchanged. The .tr came in with #2595.
- Lenguaje dominante
- Ruby
- Estrellas
- 2k
- Forks
- 300
- Merge medio
- 2 h 54 min
- PR fusionados (30 d)
- 9
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Shopify/ruby-lsp
-
Dependencies view: `getParent` loops forever on untitled documents, extension host runs out of memoryPosiblemente ocupada @efegokdemir la tomó hace 44 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
Linux file system with square brackets in the directory/filename are failing to be indexedPosiblemente ocupada @andriytyurnikov la tomó hace 249 días. Abiertobug help-wanted pinned
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Shopify/ruby-lsp#3503 · 9 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
Los mantenedores suelen responder en 1 día
-
Composed bundle rewrites project binstubs when Bundler bin is setPosiblemente ocupada @efegokdemir la tomó hace 1 día. Abiertobug
Dificultad 3/5 1-2 días Aptitud para principiantes 42/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
Los mantenedores suelen responder en 1 día
Todos los issues de Shopify/ruby-lsp
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
TarteelAI/quranic-universal-library#1111 ·
Los mantenedores suelen responder en 1 día
-
Generated cask uses deprecated `postflight` stanza; Homebrew 7 warns on every commandPosiblemente ocupada @k4kratik la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
sachincool/cruft#4 ·
-
load_reserved() and store_conditional() call memory_model_acquire() before the memory accessAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
riscv/riscv-unified-db#2859 ·
Los mantenedores suelen responder en 2 días
-
agent-driven deployment documentation future releases nice to have
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
changesets
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
openstreetmap/openstreetmap-website#7629 · 1 comentario ·
Los mantenedores suelen responder en 1 día