Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

-S script/rails console is picking up RVM's .irbrc

Aperta
#160 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java, rails, ruby
Ambito
cli

Direzione di ricerca

The payload names no source file. Start by building a WAR with Warbler and running -S script/rails console to reproduce the RVM prompt, then check whether IRB loads the user's ~/.irbrc in that context. The issue has no comments or linked pull request and gets no maintainer response, so confirm the approach with maintainers before you write a fix. Done means the console no longer picks up the RVM configuration.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

With RVM, and maybe other situations, we see this kind of thing:

$ java -jar app.war -S script/rails c
Loading production environment (Rails 3.2.12)
jruby-1.7.4.dev :001 > JRUBY_VERSION
 => "1.7.3" 
jruby-1.7.4.dev :002 > IRB.conf[:PROMPT_MODE]
 => :RVM 

Basically, its picks up the RVM .irbrc configuration, which thinks our JRuby runtime is the RVM ruby in use. But actually we are using the JRuby inside of the WAR.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/1446619-s-script-rails-console-is-picking-up-rvm-s-irbrc?utm_campaign=plugin&utm_content=tracker%2F136961&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F136961&utm_medium=issues&utm_source=github).
Lingua principale
Ruby
Stelle
901
Fork
206
Merge medio
1g 10h
PR unite (30g)
3

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di jruby/warbler

Tutte le issue di jruby/warbler

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.