oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
74.42k stars 2.78k forks source link

VSCode extension issue using the embedded CLI of VSCode #15425

Open ScreamZ opened 10 hours ago

ScreamZ commented 10 hours ago

What version of Bun is running?

1.1.37+8ca0eb831

What platform is your computer?

Darwin 24.0.0 arm64 arm

What steps can reproduce the bug?

I'm not able to tell exactly when it started but using the VSCode extension for bun now trigger an error in the console, before running the expected TypeScript code.


Inside VSCode terminal

A simple

// poke.ts
console.log("hello world");

now run bun poke.ts and get:

What is the expected behavior?

There should be no error in the console.

What do you see instead?

382 | function reset() {
383 |   if (enableANSIColors)
384 |     return "\x1B[49m";
385 |   return "";
386 | }
387 |   Bun.connect({
                   ^
ENOENT: Failed to connect
   errno: 2
 syscall: "connect"

      at notify (internal:debugger:387:14)
      at internal:debugger:73:13

Additional information

No response

Jonatthu commented 9 hours ago

Also, vscode fails in debug tests randomly.

bun test v1.1.37 (8ca0eb83)

src/middleware/publicProcedure.test.ts:
Debugger attached.

# Unhandled error between tests
-------------------------------
4 | 
5 | import { createTestSuite, createTestTrpcCaller } from '~@/utils/test.helpers';
6 | 
7 | const suite = await createTestSuite();
8 | 
9 | describe('publicProcedure', () => {
    ^
TypeError: Cannot convert a symbol to a string
      at /publicProcedure.test.ts:9:1
-------------------------------

 0 pass
 1 fail
 1 error
Ran 1 tests across 1 files. [3.66s]
Debugger detached.
RiskyMH commented 3 hours ago

The main issue should be fixed in canary, but people have reported it still slow afterwards.

bun upgrade --canary