Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Paths need to be escaped

オープン
#4,223 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Vraiment がすでに取り組んでいます。

2026年10月5日 から。

  • #4224 @Vraiment による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
ruby

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Ruby
スター
2k
フォーク
284
平均マージ
11時間 11分
マージ済み PR(30日)
10

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Shopify/ruby-lsp のほかの issue

Shopify/ruby-lsp の issue をすべて見る

似ている issue

Ruby の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。