Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Paths need to be escaped

Aperta
#4,223 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Vraiment ci sta già lavorando.

Dal 5/10/2026.

  • #4224 di @Vraiment — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
ruby

Direzione di ricerca

Start by tracing how the test command is assembled, using the paths to minitest_reporter.rb, test_unit_reporter.rb, and the RSpec spec file shown in the reproduction. Reproduce the failure in a gem directory containing a space, then verify that running the test succeeds with paths handled correctly; a linked pull request is already open.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug
Description
Ruby LSP Information
VS Code Version

1.140.0

Ruby LSP Extension Version

0.10.6

Ruby LSP Server Version

0.26.11

Ruby LSP Add-ons
  • RuboCop (1.91.0)
Ruby Version

4.0.7

Ruby Version Manager

rbenv

Reproduction steps
  1. Create a gem in a directory with a space: mkdir 'some directory' && cd 'some directory' && bundle gem my_gem'
  2. Ensure gems are installed within the directory: bundle config set --local path tmp/vendor/bundle
  3. Add RSpec as a dependency
  4. Open the Gem with VSCode
  5. Add an RSpec test
  6. Execute the test
  7. It will fail to execute

Code snippet or error message

Running tests with command:
"bundle exec ruby -r$HOME/some directory/my_gem/tmp/vendor/bundle/ruby/4.0.0/gems/ruby-lsp-0.26.11/lib/ruby_lsp/test_reporters/minitest_reporter.rb -r$HOME/some directory/my_gem/tmp/vendor/bundle/ruby/4.0.0/gems/ruby-lsp-0.26.11/lib/ruby_lsp/test_reporters/test_unit_reporter.rb -Ispec $HOME/some\ directory/my_gem/spec/my_gem/json_analyzer_spec.rb --name "/^MyGem#testing\$/""

$HOME/.rbenv/versions/4.0.7/bin/ruby: No such file or directory -- directory/my_gem/tmp/vendor/bundle/ruby/4.0.0/gems/ruby-lsp-0.26.11/lib/ruby_lsp/test_reporters/minitest_reporter.rb (LoadError)

Test run cancelled.

Note the error message: No such file or directory -- directory/my_gem/... it means the actual issue is a space on the gem search path rather than a space on the gem itself.

Lingua principale
Ruby
Stelle
2k
Fork
284
Merge medio
11h 11m
PR unite (30g)
10

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Shopify/ruby-lsp

Tutte le issue di Shopify/ruby-lsp

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.