-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Command '.NET:New Project...' resulted in an error Stream terminated before required bytes where read. #1157
Comments
@bwulms - Thanks for reporting this issue. Can you answer few questions to help us investigate the root cause?
|
I also tried the following: This created a simple console project and a solution file. Failed at 'Open a solution' (1ms) with error: SolutionOpenError: Run into errors while opening the solution: Error: Stream terminated before required bytes were read. Please let me know If you need additional information. |
@bwulms - Thanks for information. @lifengl - Looking at the same error occurring open solution, looks like it is not related to particular action but something fundamentally erroring in extension activation. Perhaps some issue with creating RPC calls. I also found #679 which has same error. Any ideas how to recover from this error or what else is needed for investigation? |
The problem has been solved. It was caused by the migrate of my old mac (intel based) to my new mac (apple silicon). When I opened an existing solution I noticed the following error message in the C# Dev extension: .NET server STDERR: Failed to load /usr/local/share/dotnet/shared/Microsoft.NETCore.App/6.0.18/libhostpolicy.dylib, error: dlopen(/usr/local/share/dotnet/shared/Microsoft.NETCore.App/6.0.18/libhostpolicy.dylib, 0x0001): tried: '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/6.0.18/libhostpolicy.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/share/dotnet/shared/Microsoft.NETCore.App/6.0.18/libhostpolicy.dylib' (no such file), '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/6.0.18/libhostpolicy.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64')) Apparently the migration tool also migrated the installed dotnet versions of my old mac. To solve the problem I removed the directory /usr/local/share/dotnet completely and reinstalled the dotnet 8 sdk from scratch. Thank you for your time. |
Solved by removing dotnet completely by deleting /usr/local/share/dotnet and then installing only the arm version of the dotnet 8 sdk. |
im on windows 10 and have the same problem, reading here i realized i had more than 1 vscode versions installed |
This has been plaguing me for weeks! Thank you! |
Describe the Issue
I installed Visual Studio Code, C# Dev Kit and .NET SDK 8.0 on a new Macbook Air with M3.
I followed the steps as described at https://code.visualstudio.com/docs/csharp/get-started.
When I want to create a new project using .NET: New Project... command I get the following error:
Command '.NET:New Project...' resulted in an error
Stream terminated before required bytes where read.
Steps To Reproduce
There is no output in the debug console
Expected Behavior
I expect to be able to create a new C# project.
Environment Information
The text was updated successfully, but these errors were encountered: