Pasted text is truncated in v27 REPL

Offen
#67,423 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
52/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
javascript, node.js

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
JavaScript
Sterne
124k
Forks
38k
Ø Merge
4 T. 2 Std.
Gemergte PRs (30 T.)
266

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus nodejs/node

Alle Issues in nodejs/node

Ähnliche Issues

Weitere Issues zu JavaScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.