EBADF: bad file descriptor, uv_pipe_open
Attempting to use the Eslint extension in VSCode results in the following error being spammed in the console, and the extension failing to start
Error: EBADF: bad file descriptor, uv_pipe_open at Object._forkChild (node:child_process:173:5) at setupChildProcessIpcChannel (node:internal/bootstrap/pre_execution:451:30) at prepareMainThreadExecution (node:internal/bootstrap/pre_execution:71:3) at node:internal/main/run_main_module:7:1 { errno: -4083, code: 'EBADF', syscall: 'uv_pipe_open' } [Info - 20:24:56] Connection to server got closed. Server will restart. [Info - 20:24:56] ESLint server stopped. [Info - 20:24:56] ESLint server is starting [Error - 20:24:56] Server initialization failed. Message: Pending response rejected since connection got disposed Code: -32097 [Info - 20:24:56] ESLint server stopped. [Error - 20:24:56] ESLint client: couldn't create connection to server. Message: Pending response rejected since connection got disposed Code: -32097 node:child_process:173 p.open(fd); ^
Error: EBADF: bad file descriptor, uv_pipe_open at Object._forkChild (node:child_process:173:5) at setupChildProcessIpcChannel (node:internal/bootstrap/pre_execution:451:30) at prepareMainThreadExecution (node:internal/bootstrap/pre_execution:71:3) at node:internal/main/run_main_module:7:1 { errno: -4083, code: 'EBADF', syscall: 'uv_pipe_open' } [Info - 20:24:57] Connection to server got closed. Server will restart. [Info - 20:24:57] ESLint server is starting [Error - 20:24:57] Server initialization failed. Message: Pending response rejected since connection got disposed Code: -32097 [Info - 20:24:57] ESLint server stopped. [Error - 20:24:57] ESLint client: couldn't create connection to server. Message: Pending response rejected since connection got disposed Code: -32097 [Error - 20:24:57] Starting the server failed. Message: Pending response rejected since connection got disposed Code: -32097 node:child_process:173 p.open(fd); ^
Error: EBADF: bad file descriptor, uv_pipe_open at Object._forkChild (node:child_process:173:5) at setupChildProcessIpcChannel (node:internal/bootstrap/pre_execution:451:30) at prepareMainThreadExecution (node:internal/bootstrap/pre_execution:71:3) at node:internal/main/run_main_module:7:1 { errno: -4083, code: 'EBADF', syscall: 'uv_pipe_open' } [Info - 20:24:57] Connection to server got closed. Server will restart. [Info - 20:24:57] ESLint server is starting [Error - 20:24:57] Server initialization failed. Message: Pending response rejected since connection got disposed Code: -32097 [Info - 20:24:57] ESLint server stopped. [Error - 20:24:57] ESLint client: couldn't create connection to server. Message: Pending response rejected since connection got disposed Code: -32097 [Error - 20:24:57] Restarting server failed Message: Pending response rejected since connection got disposed Code: -32097 node:child_process:173 p.open(fd); ^
Error: EBADF: bad file descriptor, uv_pipe_open at Object._forkChild (node:child_process:173:5) at setupChildProcessIpcChannel (node:internal/bootstrap/pre_execution:451:30) at prepareMainThreadExecution (node:internal/bootstrap/pre_execution:71:3) at node:internal/main/run_main_module:7:1 { errno: -4083, code: 'EBADF', syscall: 'uv_pipe_open' } [Info - 20:24:57] Connection to server got closed. Server will restart. [Info - 20:24:57] ESLint server is starting [Error - 20:24:57] Server initialization failed. Message: Pending response rejected since connection got disposed Code: -32097 [Info - 20:24:57] ESLint server stopped. [Error - 20:24:57] ESLint client: couldn't create connection to server. Message: Pending response rejected since connection got disposed Code: -32097 [Error - 20:24:57] Restarting server failed Message: Pending response rejected since connection got disposed Code: -32097 node:child_process:173 p.open(fd); ^
Error: EBADF: bad file descriptor, uv_pipe_open at Object._forkChild (node:child_process:173:5) at setupChildProcessIpcChannel (node:internal/bootstrap/pre_execution:451:30) at prepareMainThreadExecution (node:internal/bootstrap/pre_execution:71:3) at node:internal/main/run_main_module:7:1 { errno: -4083, code: 'EBADF', syscall: 'uv_pipe_open' } [Error - 20:24:57] The ESLint server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information. [Error - 20:24:57] Server initialization failed. Message: Pending response rejected since connection got disposed Code: -32097 [Error - 20:24:57] ESLint client: couldn't create connection to server. Message: Pending response rejected since connection got disposed Code: -32097 [Error - 20:24:57] Restarting server failed Message: Pending response rejected since connection got disposed Code: -32097
This results in the extension being entirely unusable.
This issue only occured after installing Volta
Interestingly, running which eslint gives an error that its not found in the path, however running eslint -v is successful.