Copying from the code snippet causes mongosh to freeze

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Minor - P4
    • No version
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • Not Needed

      Steps to recreate 

      1. Open this wiki page
      2. Open up a terminal
      3. Start mongosh to a valid mongo instance 
      4. Copy any code snippet from the wiki 
      5. Paste into terminal with mongosh 

      I tried this with both iTerm2 and the default Terminal application on Mac, and they both seem to freeze and fail 

      This creates a negative user experience when creating a Stream Processor as it breaks as soon as we need to interact with the shell, which is very frequent for Streams

        1. Screen Recording 2025-06-03 at 15.45.05.mov
          19.03 MB
          Jordan Tse
        2. Screen Recording 2025-06-03 at 16.40.45.mov
          28.45 MB
          Jordan Tse
        3. Screenshot 2025-06-16 at 17.44.35.png
          663 kB
          Jordan Tse

            Assignee:
            Kevin Mas Ruiz
            Reporter:
            Jordan Tse
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: