Paths need to be escaped
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- ruby
- Lĩnh vực
- developer-experience, testing
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Ruby
- Star
- 2k
- Fork
- 283
- Merge trung bình
- 8 giờ 37 phút
- Pull request đã merge (30 ngày)
- 12
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Shopify/ruby-lsp
-
Dependencies view: `getParent` loops forever on untitled documents, extension host runs out of memoryCó thể đã có người làm @efegokdemir đã nhận 12 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Linux file system with square brackets in the directory/filename are failing to be indexedCó thể đã có người làm @andriytyurnikov đã nhận 216 ngày trước. Đang mởbug help-wanted pinned
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Shopify/ruby-lsp#3503 · 8 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Diagnostics use a stale parse_result when the request is read before its didChange is appliedĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
Maintainer thường phản hồi trong vòng 1 ngày
-
rbenv activation leaks RBENV_VERSION and RBENV_DIR into process.env of the extension hostCó thể đã có người làm @efegokdemir đã nhận 7 ngày trước. Đang mởbug
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 45/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Rename of a class moves its file and leaves require_relative on the old pathCó thể đã có người làm @efegokdemir đã nhận 13 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Shopify/ruby-lsp
Issue tương tự
-
Lint/NoReturnInMemoization flags `return` in local variable `||=` and `&&=` assignmentsCó thể đã có người làm @RaphaelFakhri đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Shopify/ruby-style-guide#815 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
zerocracy/judges-action#2849 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
bigbluebutton/bigbluebutton#26166 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
TarteelAI/quranic-universal-library#916 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày