Pasted text is truncated in v27 REPL

Aperta
#67,423 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript, node.js

Direzione di ricerca

Start by investigating the Node.js REPL's paste handling when syntax highlighting is enabled; the issue does not identify a file or test. Reproduce by pasting the supplied multiline object and compare the result with highlighting enabled and disabled. Done means the full pasted object appears in the REPL with highlighting enabled.

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

Descrizione

Version

v27.0.0

Platform
Darwin KXT44HPV2P 25.6.0 Darwin Kernel Version 25.6.0: Tue Aug 18 17:48:46 PDT 2026; root:xnu-12377.161.15.700.19~2/RELEASE_ARM64_T6041 arm64
Subsystem

repl

What steps will reproduce the bug?

Paste the following text into the REPL:

{
      "xxx": {
        "nnn": "yyy",
        "vvv": "123",
        "xyz": 123,
        "ddd": "aaa"
      },
      "yyy": "zzz",
      "zzz": {
        "yyy": [
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          }
        ],
        "aaa": [
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          }
        ]
      },
      "uuu": {
        "yyy": [
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          }
        ],
        "aaa": [
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          },
          {
            "name": "aaa",
            "type": "aaa"
          }
        ]
      },
      "bbb": {
        "a": "aaa",
        "b": "aaa",
        "c": "aaa",
        "d": "aaa",
        "e": "aaa",
        "f": "aaa",
        "g": "aaa",
        "h": "aaa",
        "i": "aaa",
        "g": "aaa",
        "k": "aaa"
      }
    }
How often does it reproduce? Is there a required condition?

Only when syntax highlighting is enabled

What is the expected behavior? Why is that the expected behavior?

The entirety of the pasted object should appear in the REPL

What do you see instead?

The pasted text is truncated approximately 79 lines in

Additional information

No response

Lingua principale
JavaScript
Stelle
124k
Fork
38k
Merge medio
4g 2h
PR unite (30g)
266

Preparare l'ambiente

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 nodejs/node

Tutte le issue di nodejs/node

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.