Carriage return not added

Aperta
#925 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
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java, spring
Ambito
cli

Direzione di ricerca

Start at the finishInteractiveShell entry point shown in the issue and reproduce the sequence in the Jenkins test run, paying attention to the three .cr() calls and the output where the two y values share a line. Done means the session consistently adds the expected carriage return after each submitted value across the test run.

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

Descrizione

status/need-triage

Just before ending a session. I always print the last few lines in the terminal:

    protected static void finishInteractiveShell(InteractiveShellSession session, Path outputFile, boolean verify, boolean submit) {
        session.write(session.writeSequence().text(outputFile.toString()).cr().build());
        session.write(session.writeSequence().text(verify ? "y" : "n").cr().build());
        session.write(session.writeSequence().text(submit ? "y" : "n").cr().build());
    }

I run my tests in Jenkins and there is around 100 tests. This is flaky and sometimes it breaks as it doesn't add the carriage return after each line of code .cr().

Here is the output in the Jenkins build you can see the two y added at the end of the same line.

? Select an action: [Use arrows to move], filtering 'finish/tmp/junit10400994433265716921/TYPEZTUUTCOLAJ.jsonyy' 
Lingua principale
Java
Stelle
825
Fork
404
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

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 spring-projects/spring-shell

Tutte le issue di spring-projects/spring-shell

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.