biome-vscode
biome-vscode copied to clipboard
🐛 Error: `Biome client: couldn't create connection to server.` (`ETXTBSY` or `ENOENT`)
VS Code version
1.90.2
Extension version
2.3.0
Biome version
1.7.3
Operating system
- [X] Windows
- [ ] macOS
- [X] Linux
Description
While using VS Code error pop-ups regularly appear about Biome not connecting to server. Most observable when switching back to VS Code window. I feel like I have seen this across all places I use Biome VS Code extension, but now that I am trying to capture instances of errors, I only see it on Linux (Ubuntu WSL on Windows 11).
Full VS Code about:
Version: 1.90.2 (system setup)
Commit: 5437499feb04f7a586f677b155b039bc2b3669eb
Date: 2024-06-18T22:34:26.404Z
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Windows_NT x64 10.0.22631
Steps to reproduce
- Have time pass (seems like most common trigger is switching back to VS Code)
Biome related vscode settings:
{
"editor.defaultFormatter": "biomejs.biome",
// Also configure the formatter on a per-language basis for some common languages/file-types, to make sure it is applied
// even if someone's User Settings specify a different formatter at this level (which overrides the root-level
// 'editor.defaultFormatter').
"[json]": {
"editor.defaultFormatter": "biomejs.biome",
},
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome",
},
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome",
},
// Don't search for the biome executable in the path, as it's not a globally installed tool.
"biome.searchInPath": false,
}
Expected behavior
No error pop-up just refocusing on VS Code
Does this issue occur when using the CLI directly?
Not sure / Not applicable
Logs
(There is no output from `Biome trace`. These are from `Biome` output. Includes some of the oldest logs and then could instances of the new. It looks like multiple instances of connection to Biome server are trying to be established - is that right?)
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@[email protected]/node_modules/@biomejs/cli-linux-x64/biome
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Executing Biome from: /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
[cli-stdout] data 46
[cli] exit 0
Connecting to "/home/username/.cache/biome/biome-socket-1.7.3" ...
[Info - 10:32:58 AM] Server initialized with PID: 1757
Reloading biome executable.
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@[email protected]/node_modules/@biomejs/cli-linux-x64/biome
[cli-stderr] end
[cli-stderr] finish
[cli-stdout] end
[cli-stdout] finish
[cli-stdout] close
[cli] close 0
[cli-stderr] close
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Executing Biome from: /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
[cli-stdout] data 46
[cli] exit 0
Connecting to "/home/username/.cache/biome/biome-socket-1.7.3" ...
[Info - 11:26:38 AM] Server initialized with PID: 12413
Reloading biome executable.
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@[email protected]/node_modules/@biomejs/cli-linux-x64/biome
[cli-stderr] end
[cli-stderr] finish
[cli-stdout] end
[cli-stdout] finish
[cli-stdout] close
[cli] close 0
[cli-stderr] close
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Executing Biome from: /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
[cli-stdout] data 46
[cli] exit 0
Connecting to "/home/username/.cache/biome/biome-socket-1.7.3" ...
[Info - 11:32:21 AM] Server initialized with PID: 14126
Reloading biome executable.
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@[email protected]/node_modules/@biomejs/cli-linux-x64/biome
[cli-stderr] end
[cli-stderr] finish
[cli-stdout] end
[cli-stdout] finish
[cli-stdout] close
[cli] close 0
[cli-stderr] close
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Reloading biome executable.
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@[email protected]/node_modules/@biomejs/cli-linux-x64/biome
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Executing Biome from: /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Executing Biome from: /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
[cli-stdout] data 46
[cli-stdout] data 46
[cli] exit 0
[cli-stderr] end
[cli-stderr] finish
[cli-stderr] close
[cli-stdout] end
[cli-stdout] finish
[cli] exit 0
Connecting to "/home/username/.cache/biome/biome-socket-1.7.3" ...
[cli] close 0
[cli-stdout] close
[Info - 11:35:47 AM] Server initialized with PID: 15424
. . .
Reloading biome executable.
Reloading biome executable.
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@[email protected]/node_modules/@biomejs/cli-linux-x64/biome
Reloading biome executable.
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@[email protected]/node_modules/@biomejs/cli-linux-x64/biome
Reloading biome executable.
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@[email protected]/node_modules/@biomejs/cli-linux-x64/biome
Reloading biome executable.
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@[email protected]/node_modules/@biomejs/cli-linux-x64/biome
Reloading biome executable.
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@[email protected]/node_modules/@biomejs/cli-linux-x64/biome
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@[email protected]/node_modules/@biomejs/cli-linux-x64/biome
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Error copying file: EntryNotFound (FileSystemError): Unable to delete nonexistent file 'vscode-remote://wsl+ubuntu-20.04/home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome'
Executing Biome from: /home/username/ff/FluidFramework/node_modules/.pnpm/@[email protected]/node_modules/@biomejs/cli-linux-x64/biome
[cli-stdout] data 46
[cli-stderr] end
[cli-stderr] finish
[cli-stdout] end
[cli-stdout] finish
[cli-stdout] close
[cli-stderr] close
[cli] exit 0
[cli] close 0
Connecting to "/home/username/.cache/biome/biome-socket-1.7.3" ...
[Info - 10:32:37 AM] Server initialized with PID: 18211
Executing Biome from: /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Executing Biome from: /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Executing Biome from: /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Executing Biome from: /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
[cli-stdout] data 46
[cli-stdout] end
[cli-stdout] finish
[cli-stderr] end
[cli-stderr] finish
[cli-stdout] data 46
[cli] exit 0
Connecting to "/home/username/.cache/biome/biome-socket-1.7.3" ...
[cli] exit 0
[cli-stderr] close
[cli] close 0
[cli-stdout] close
[cli-stdout] end
[cli-stdout] finish
[cli-stderr] end
Connecting to "/home/username/.cache/biome/biome-socket-1.7.3" ...
[cli-stderr] finish
[cli-stderr] close
[cli] close 0
[cli-stdout] close
[cli-stdout] data 46
[cli-stderr] end
[cli-stderr] finish
[cli-stdout] end
[cli-stdout] finish
[cli] exit 0
Connecting to "/home/username/.cache/biome/biome-socket-1.7.3" ...
[cli-stdout] close
[cli] close 0
[cli-stderr] close
[Info - 10:32:37 AM] Server initialized with PID: 18211
[Info - 10:32:37 AM] Server initialized with PID: 18211
[Info - 10:32:37 AM] Server initialized with PID: 18211
Executing Biome from: /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
[cli-stdout] data 46
[cli-stderr] end
[cli-stderr] finish
[cli-stdout] end
[cli-stdout] finish
[cli-stdout] close
[cli-stderr] close
[cli] exit 0
[cli] close 0
Connecting to "/home/username/.cache/biome/biome-socket-1.7.3" ...
[Info - 10:32:37 AM] Server initialized with PID: 18211
Reloading biome executable.
Reloading biome executable.
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@[email protected]/node_modules/@biomejs/cli-linux-x64/biome
Reloading biome executable.
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@[email protected]/node_modules/@biomejs/cli-linux-x64/biome
Reloading biome executable.
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@[email protected]/node_modules/@biomejs/cli-linux-x64/biome
Reloading biome executable.
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@[email protected]/node_modules/@biomejs/cli-linux-x64/biome
Reloading biome executable.
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@[email protected]/node_modules/@biomejs/cli-linux-x64/biome
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@[email protected]/node_modules/@biomejs/cli-linux-x64/biome
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Executing Biome from: /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Executing Biome from: /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
[Error - 10:32:38 AM] Biome client: couldn't create connection to server.
Error: spawn ETXTBSY
at ChildProcess.spawn (node:internal/child_process:421:11)
at spawn (node:child_process:780:9)
at getSocket (/home/username/.vscode-server/extensions/biomejs.biome-2.3.0/out/main.js:36509:57)
at createMessageTransports (/home/username/.vscode-server/extensions/biomejs.biome-2.3.0/out/main.js:36553:22)
at LanguageClient2.createMessageTransports (/home/username/.vscode-server/extensions/biomejs.biome-2.3.0/out/main.js:17925:18)
at LanguageClient2.createConnection (/home/username/.vscode-server/extensions/biomejs.biome-2.3.0/out/main.js:15548:39)
at LanguageClient2.start (/home/username/.vscode-server/extensions/biomejs.biome-2.3.0/out/main.js:15124:41)
at n.value (/home/username/.vscode-server/extensions/biomejs.biome-2.3.0/out/main.js:36249:26)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Reloading client failed: Error: spawn ETXTBSY
Reloading client failed: Error: spawn ETXTBSY
Executing Biome from: /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Executing Biome from: /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
[cli-stdout] data 46
[cli-stderr] end
[cli-stderr] finish
[cli-stdout] end
[cli-stdout] finish
[cli-stdout] close
[cli-stderr] close
[cli] exit 0
[cli] close 0
Connecting to "/home/username/.cache/biome/biome-socket-1.7.3" ...
[Info - 10:32:38 AM] Server initialized with PID: 18211
Executing Biome from: /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Executing Biome from: /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
[cli-stdout] data 46
[cli-stderr] end
[cli-stderr] finish
[cli-stdout] end
[cli-stdout] finish
[cli-stdout] close
[cli-stderr] close
[cli] exit 0
[cli] close 0
Connecting to "/home/username/.cache/biome/biome-socket-1.7.3" ...
[Info - 10:32:39 AM] Server initialized with PID: 18211