bundler-cache feature breaks ruby-lsp and other default gem behavior
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/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, devops
Hướng nghiên cứu
Reproduce the issue by running rails and ruby-lsp with and without the bundler-cache feature in the described Ruby 3.3.5 devcontainer environment. Inspect how the bundler-cache feature configures gem paths and command availability; done means both commands run successfully while bundler-cache remains enabled.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Love the boot time saves provided by bundler-cache but it breaks most default external gem behavior.
rails and other gems are not available on the command line after enabling bundler-cache as a feature
this prevents ruby-lsp and other common IDE add-ons from running correctly.
without bundler-cache feature:
vscode ➜ /workspaces/myapp (ad6c9fe7) $ rails
Beginning in Rails 4.....
vscode ➜ /workspaces/myapp (ad6c9fe7) $ ruby-lsp
server starts and everything works
with bundler-cache feature:
vscode ➜ /workspaces/myapp (ad6c9fe7) $ rails
bash: rails: command not found
vscode ➜ /workspaces/myapp (ad6c9fe7) $ ruby-lsp
Ruby LSP> Skipping custom bundle setup since /workspaces/myapp/.ruby-lsp/Gemfile.lock already exists and is up to date
Ruby LSP> Running bundle install for the custom bundle. This may take a while...
Ruby LSP> Command: (bundle check || bundle install) 1>&2
The Gemfile's dependencies are satisfied
bundler: failed to load command: ruby-lsp (/bundle/vendor/ruby/3.3.0/bin/ruby-lsp)
/bundle/vendor/ruby/3.3.0/gems/bundler-2.4.10/lib/bundler/rubygems_integration.rb:308:in `block in replace_bin_path': can't find executable ruby-lsp for gem ruby-lsp. ruby-lsp is not currently included in the bundle, perhaps you meant to add it to your Gemfile?
I'm not enough of a smarty to know the right fix for this. I'm assuming a modification of the gem paths needs to be done but I'm unsure of the best way to implement that change within this feature bundle.
Would love if anyone has and ideas or pointers on the right direction of a fix. Thank you all <3
environment: unchanged Dockerfile for ruby 3.3.5, activestorage, postgres-client, github-cli & node devcontainer features
- Ngôn ngữ chính
- Ruby
- Star
- 107
- Fork
- 38
- Merge trung bình
- 7 phút
- Pull request đã merge (30 ngày)
- 2
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
- Không 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 rails/devcontainer
-
Find a way to release a new image for released Ruby versions automaticallyCó thể đã có người làm @rafaelfranca đã nhận 299 ngày trước. Đang mở
rails/devcontainer#105 · 6 reaction · 1 người được giao ·
Tất cả issue của rails/devcontainer
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
scanaislop/aislop#482 ·
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 78/100
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 66/100
-
ETQ admin, le select de condition d'une annotation répétable liste les champs publics deux foisĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
demarche-numerique/demarche.numerique.gouv.fr#14301 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Wrong permissions for sqliteĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
voxpupuli/puppet-powerdns#251 ·