bundler-cache feature breaks ruby-lsp and other default gem behavior
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- ruby
- Ambito
- developer-experience, devops
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Ruby
- Stelle
- 107
- Fork
- 38
- Merge medio
- 7m
- PR unite (30g)
- 2
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di rails/devcontainer
-
Find a way to release a new image for released Ruby versions automaticallyForse già presa @rafaelfranca l’ha presa 297 giorni fa. Aperta
rails/devcontainer#105 · 6 reazioni · 1 assegnatario ·
Tutte le issue di rails/devcontainer
Issue simili
-
documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
bridgetownrb/bridgetown#1130 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
stripe/stripe-ruby#1994 ·
I maintainer di solito rispondono entro 1 giorno
-
[Fehler]: /abdeckstift wirft 500 — part_type aus der Phonemreduction-Umbenennung nicht mitgezogenApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
wort-schule/wort.schule#787 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
lugassawan/swe-workbench#799 ·
I maintainer di solito rispondono entro 1 giorno
-
2.8.6: NoMethodError "undefined method 'first'" in profdata_coverage_dir whenever --scheme is usedAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
SlatherOrg/slather#586 · 2 commenti ·