WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

REPL unusable within VSCode's integrated terminal #25389

@headquarter8302

Description

@headquarter8302

What version of Bun is running?

1.3.4+5eb2145b3

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What steps can reproduce the bug?

  1. Open Visual Studio Code
  2. Open its integrated terminal
  3. Run bun repl
  4. Wait for the REPL to load
  5. Garbled output

What is the expected behavior?

The REPL to load normally and be usable

What do you see instead?

Welcome to Bun v1.3.4
Type ".help" for more information.
[!] Please note that the REPL implementation is still experimental!
    Don't consider it to be representative of the stability or behavior of Bun overall.
> [ws/message] An unexpected error occured: Received message for unknown request ID: undefined
Received Data: {"method":"Console.messageAdded","params":{"message":{"source":"console-api","level":"log","text":"Welcome to Bun v1.3.4\nType \".help\" for more information.","type":"log","line":580,"column":18,"url":"C:\\Users\\ASUS\\AppData\\Local\\Temp\\bunx-1771422724-bun-repl@latest\\node_modules\\bun-repl\\src\\repl.ts","repeatCount":1,"timestamp":1765098630.285894,"parameters":[{"type":"string","value":"Welcome to Bun v1.3.4\nType \".help\" for more information."}],"stackTrace":{"callFrames":[{"functionName":"start","url":"C:\\Users\\ASUS\\AppData\\Local\\Temp\\bunx-1771422724-bun-repl@latest\\node_modules\\bun-repl\\src\\repl.ts","scriptId":"2","lineNumber":580,"columnNumber":18},{"functionName":"processTicksAndRejections","url":"","scriptId":"3","lineNumber":7,"columnNumber":39}]}}}}
[ws/message] An unexpected error occured: Received message for unknown request ID: undefined
Received Data: {"method":"Console.messageAdded","params":{"message":{"source":"console-api","level":"warning","text":"\u001b[33m\u001b[2m[!] Please note that the REPL implementation is still experimental!\n    Don't consider it to be representative of the stability or behavior of Bun overall.\u001b[0m","type":"log","line":582,"column":19,"url":"C:\\Users\\ASUS\\AppData\\Local\\Temp\\bunx-1771422724-bun-repl@latest\\node_modules\\bun-repl\\src\\repl.ts","repeatCount":1,"timestamp":1765098630.2862303,"parameters":[{"type":"string","value":"\u001b[33m\u001b[2m[!] Please note that the REPL implementation is still experimental!\n    Don't consider it to be representative of the stability or behavior of Bun overall.\u001b[0m"}],"stackTrace":{"callFrames":[{"functionName":"start","url":"C:\\Users\\ASUS\\AppData\\Local\\Temp\\bunx-1771422724-bun-repl@latest\\node_modules\\bun-repl\\src\\repl.ts","scriptId":"2","lineNumber":582,"columnNumber":19},{"functionName":"processTicksAndRejections","url":"","scriptId":"3","lineNumber":7,"columnNumber":39}]}}}}
[ws/message] An unexpected error occured: Received message for unknown request ID: undefined
Received Data: {"method":"Console.messageAdded","params":{"message":{"source":"console-api","level":"error","text":"[ws/message] An unexpected error occured:","type":"log","line":135,"column":22,"url":"C:\\Users\\ASUS\\AppData\\Local\\Temp\\bunx-1771422724-bun-repl@latest\\node_modules\\bun-repl\\src\\repl.ts","repeatCount":1,"timestamp":1765098630.293049,"parameters":[{"type":"string","value":"[ws/message] An unexpected error occured:"},{"type":"string","value":"Received message for unknown request ID: undefined"},{"type":"string","value":"\nReceived Data:"},{"type":"string","value":"{\"method\":\"Console.messageAdded\",\"params\":{\"message\":{\"source\":\"console-api\",\"level\":\"log\",\"text\":\"Welcome to Bun v1.3.4\\nType \\\".help\\\" for more information.\",\"type\":\"log\",\"line\":580,\"column\":18,\"url\":\"C:\\\\Users\\\\ASUS\\\\AppData\\\\Local\\\\Temp\\\\bunx-1771422724-bun-repl@latest\\\\node_modules\\\\bun-repl\\\\src\\\\repl.ts\",\"repeatCount\":1,\"timestamp\":1765098630.285894,\"parameters\":[{\"type\":\"string\",\"value\":\"Welcome to Bun v1.3.4\\nType \\\".help\\\" for more information.\"}],\"stackTrace\":{\"callFrames\":[{\"functionName\":\"start\",\"url\":\"C:\\\\Users\\\\ASUS\\\\AppData\\\\Local\\\\Temp\\\\bunx-1771422724-bun-repl@latest\\\\node_modules\\\\bun-repl\\\\src\\\\repl.ts\",\"scriptId\":\"2\",\"lineNumber\":580,\"columnNumber\":18},{\"functionName\":\"processTicksAndRejections\",\"url\":\"\",\"scriptId\":\"3\",\"lineNumber\":7,\"columnNumber\":39}]}}}}"}],"stackTrace":{"callFrames":[{"functionName":"","url":"C:\\Users\\ASUS\\AppData\\Local\\Temp\\bunx-1771422724-bun-repl@latest\\node_modules\\bun-repl\\src\\repl.ts","scriptId":"2","lineNumber":135,"columnNumber":22}]}}}}
[ws/message] An unexpected error occured: Received message for unknown request ID: undefined
Received Data: {"method":"Console.messageAdded","params":{"message":{"source":"console-api","level":"error","text":"[ws/message] An unexpected error occured:","type":"log","line":135,"column":22,"url":"C:\\Users\\ASUS\\AppData\\Local\\Temp\\bunx-1771422724-bun-repl@latest\\node_modules\\bun-repl\\src\\repl.ts","repeatCount":1,"timestamp":1765098630.2935696,"parameters":[{"type":"string","value":"[ws/message] An unexpected error occured:"},{"type":"string","value":"Received message for unknown request ID: undefined"},{"type":"string","value":"\nReceived Data:"},{"type":"string","value":"{\"method\":\"Console.messageAdded\",\"params\":{\"message\":{\"source\":\"console-api\",\"level\":\"warning\",\"text\":\"\\u001b[33m\\u001b[2m[!] Please note that the REPL implementation is still experimental!\\n    Don't consider it to be representative of the stability or behavior of Bun overall.\\u001b[0m\",\"type\":\"log\",\"line\":582,\"column\":19,\"url\":\"C:\\\\Users\\\\ASUS\\\\AppData\\\\Local\\\\Temp\\\\bunx-1771422724-bun-repl@latest\\\\node_modules\\\\bun-repl\\\\src\\\\repl.ts\",\"repeatCount\":1,\"timestamp\":1765098630.2862303,\"parameters\":[{\"type\":\"string\",\"value\":\"\\u001b[33m\\u001b[2m[!] Please note that the REPL implementation is still experimental!\\n    Don't consider it to be representative of the stability or behavior of Bun overall.\\u001b[0m\"}],\"stackTrace\":{\"callFrames\":[{\"functionName\":\"start\",\"url\":\"C:\\\\Users\\\\ASUS\\\\AppData\\\\Local\\\\Temp\\\\bunx-1771422724-bun-repl@latest\\\\node_modules\\\\bun-repl\\\\src\\\\repl.ts\",\"scriptId\":\"2\",\"lineNumber\":582,\"columnNumber\":19},{\"functionName\":\"processTicksAndRejections\",\"url\":\"\",\"scriptId\":\"3\",\"lineNumber\":7,\"columnNumber\":39}]}}}}"}],"stackTrace":{"callFrames":[{"functionName":"","url":"C:\\Users\\ASUS\\AppData\\Local\\Temp\\bunx-1771422724-bun-repl@latest\\node_modules\\bun-repl\\src\\repl.ts","scriptId":"2","lineNumber":135,"columnNumber":22}]}}}}
...

If I hadn't manually Ctrl+C'd the program, garbled output with lots of backslashes will overwhelm the buffer,

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions