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 分钟
- 30 天内合并 PR
- 10
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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 个 reaction ·
维护者通常 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 个 reaction ·
维护者通常 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 天内回复
相似的 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
维护者通常 1 天内回复
-
accessibility
难度 1/5 1 小时以内 新手友好度 72/100
slovensko-digital/ops-portal#212 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100