Paths need to be escaped
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 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 の本文から書いたものです。
説明
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
- Create a gem in a directory with a space:
mkdir 'some directory' && cd 'some directory' && bundle gem my_gem' - Ensure gems are installed within the directory:
bundle config set --local path tmp/vendor/bundle - Add RSpec as a dependency
- Open the Gem with VSCode
- Add an RSpec test
- Execute the test
- 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
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Shopify/ruby-lsp のほかの issue
-
Multi-line `<%# %>` ERB comments are parsed as Ruby, so semantic highlighting colors the prose as method calls対応中かも @Pybsama が 71 日前に担当しました。 オープンbug Stale
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Shopify/ruby-lsp#4181 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Linux file system with square brackets in the directory/filename are failing to be indexed対応中かも @andriytyurnikov が 203 日前に担当しました。 オープンbug help-wanted pinned
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Shopify/ruby-lsp#3503 · コメント 8 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Rename of a class moves its file and leaves require_relative on the old path対応中かも @efegokdemir が今日担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 22/100
メンテナーはふだん 1 日以内に返信
-
check-labels intermittently fails due to the organization IP allow list対応中かも @soutaro が 7 日前に担当しました。 オープン
Shopify/ruby-lsp#4219 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
メンテナーはふだん 1 日以内に返信
Shopify/ruby-lsp の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
JetBrains/homebrew-utils#21 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ublue-os/homebrew-experimental-tap#774 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
r-uby-dev/llm#251 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
accessibility
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
slovensko-digital/ops-portal#212 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100