Description
The .NET Runtime extension fails to acquire a lock during the acquisition process, resulting in a timeout error that prevents the extension from functioning.
Extension Version
3.1.0 (VS Code Insiders)
Error Message
.NET Acquisition Failed: Action: vscdGlLk-2bc5d34a-076d-466d-b3ce-991e87349d9d Failed to acquire lock /var/folders/q2/4nqfv8gs1mv4pdjjnj_4lrh00000gn/T/vscd-vscdGlLk.sock after 12001 retries out of 12001 total available attempts. Last error: EADDRINUSE.
Environment
- OS: macOS
- Extension Version: 3.1.0
- VS Code: Insiders build
Details
The extension attempts to acquire a lock at /var/folders/q2/4nqfv8gs1mv4pdjjnj_4lrh00000gn/T/vscd-vscdGlLk.sock but fails after 12001 retry attempts. The EADDRINUSE error indicates the socket address is already in use, suggesting either:
- Another VS Code process or instance is holding the lock
- A stale lock file is not being cleaned up properly
- The lock timeout configuration needs adjustment
Error Stack Trace
Error: .NET Acquisition Failed: Action: vscdGlLk-2bc5d34a-076d-466d-b3ce-991e87349d9d Failed to acquire lock /var/folders/q2/4nqfv8gs1mv4pdjjnj_4lrh00000gn/T/vscd-vscdGlLk.sock after 12001 retries out of 12001 total available attempts. Last error: EADDRINUSE.
at S.getErrorOrStringAsEventError (/Users/anonymous/.vscode-insiders/extensions/vscode-dotnet-runtime-library/dist/Acquisition/DotnetCoreAcquisitionWorker.js:301:20)
at S.next (/Users/anonymous/.vscode-insiders/extensions/vscode-dotnet-runtime-library/dist/Acquisition/DotnetCoreAcquisitionWorker.js:175:38)
at Generator.next (<anonymous>)
at s (/Users/anonymous/.vscode-insiders/extensions/vscode-dotnet-runtime-library/dist/Acquisition/DotnetCoreAcquisitionWorker.js:5:58)
Suggested Workarounds (from error message)
- Restart your machine
- Delete the lock file manually
- Increase the timeout time in extension settings
- Set
VSCODE_DOTNET_RUNTIME_DISABLE_MUTEX=true in environment variables
- Increase OS path length limit to at least 256 characters
- On Linux, set
XDG_RUNTIME_DIR to a writeable directory
Log File
A detailed log file is available at: /Users/m2ultra/Library/Application Support/Code - Insiders/logs/20260702T205927/window3/exthost/ms-dotnettools.vscode-dotnet-runtime/DotNetAcquisition-ms-dotnettools.vscode-dotnet-runtime-1783040502295.txt
Note: This file may contain personal data.
Description
The .NET Runtime extension fails to acquire a lock during the acquisition process, resulting in a timeout error that prevents the extension from functioning.
Extension Version
3.1.0 (VS Code Insiders)
Error Message
Environment
Details
The extension attempts to acquire a lock at
/var/folders/q2/4nqfv8gs1mv4pdjjnj_4lrh00000gn/T/vscd-vscdGlLk.sockbut fails after 12001 retry attempts. TheEADDRINUSEerror indicates the socket address is already in use, suggesting either:Error Stack Trace
Suggested Workarounds (from error message)
VSCODE_DOTNET_RUNTIME_DISABLE_MUTEX=truein environment variablesXDG_RUNTIME_DIRto a writeable directoryLog File
A detailed log file is available at:
/Users/m2ultra/Library/Application Support/Code - Insiders/logs/20260702T205927/window3/exthost/ms-dotnettools.vscode-dotnet-runtime/DotNetAcquisition-ms-dotnettools.vscode-dotnet-runtime-1783040502295.txtNote: This file may contain personal data.