Skip to content
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

C# Dev kit ran into a problem #7619

Closed
james-white-x opened this issue Oct 2, 2024 · 5 comments
Closed

C# Dev kit ran into a problem #7619

james-white-x opened this issue Oct 2, 2024 · 5 comments

Comments

@james-white-x
Copy link

Type: Bug

Issue Description

An error came up on loading VSCode

Steps to Reproduce

Open VSCode, error, see log

Expected Behavior

Actual Behavior

Logs

=====================
10/2/2024 10:19:06 AM
LimitedFunctionality
System.AggregateException: Project system data flow 'Workspace update handler 26662591' closed because of an exception: Object reference not set to an instance of an object.. (Object reference not set to an instance of an object.)
---> (Inner Exception #0) StreamJsonRpc.RemoteInvocationException: Object reference not set to an instance of an object.
at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList1 arguments, IReadOnlyList1 positionalArgumentDeclaredTypes, IReadOnlyDictionary2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject) at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Handlers.DynamicItemHandler.<>c__DisplayClass6_0.<<HandleProjectChangeAsync>g__ProcessAdditionsAsync|4>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Handlers.DynamicItemHandler.HandleProjectChangeAsync(IWorkspaceProject context, IComparable version, IProjectChangeDescription projectChange, ContextState state, ITelemetryOperation telemetryOperation, IManagedProjectDiagnosticOutputService logger) at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Handlers.DynamicItemHandler.HandleAsync(IWorkspaceProject context, IComparable version, IImmutableDictionary2 projectChanges, ContextState state, ITelemetryOperation telemetryOperation, IManagedProjectDiagnosticOutputService logger)
at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Workspace.<>c__DisplayClass43_1.<g__ProcessSourceItemsHandlersAsync|6>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Workspace.<>c__DisplayClass43_0.<g__ApplyProjectEvaluationAsync|2>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Workspace.<>c__DisplayClass46_11.<<OnProjectChangedAsync>g__ApplyInBatchAsync|1>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.VisualStudio.Threading.ReentrantSemaphore.StackSemaphore.<>c__DisplayClass3_0.<<ExecuteAsync>b__0>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.VisualStudio.Threading.ReentrantSemaphore.StackSemaphore.ExecuteAsync(Func1 operation, CancellationToken cancellationToken)
at Microsoft.VisualStudio.ProjectSystem.OnceInitializedOnceDisposedUnderLockAsync.ExecuteUnderLockCoreAsync(Func2 action, CancellationToken cancellationToken) at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Workspace.OnEvaluationUpdateAsync(IProjectVersionedValue1 evaluationUpdate)
at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Workspace.<>c__DisplayClass42_0.<g__ApplyUpdateWithinLockAsync|1>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Workspace.<>c__DisplayClass42_0.<g__ApplyUpdateWithinLockAsync|1>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Workspace.<>c__DisplayClass42_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.VisualStudio.Threading.ReentrantSemaphore.StackSemaphore.<>c__DisplayClass3_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.VisualStudio.Threading.ReentrantSemaphore.StackSemaphore.ExecuteAsync(Func1 operation, CancellationToken cancellationToken) at Microsoft.VisualStudio.ProjectSystem.OnceInitializedOnceDisposedUnderLockAsync.ExecuteUnderLockCoreAsync(Func2 action, CancellationToken cancellationToken)
at Microsoft.VisualStudio.ProjectSystem.DataReceivingBlockSlim`1.ProcessInputQueueAsync(InputDataBuffer inputQueue)
<--- (Inner Exception #0)

10/2/2024 10:19:07 AM
LimitedFunctionality
System.AggregateException: Project system data flow 'Workspace update handler 1897574' closed because of an exception: Object reference not set to an instance of an object.. (Object reference not set to an instance of an object.)
---> (Inner Exception #0) StreamJsonRpc.RemoteInvocationException: Object reference not set to an instance of an object.
at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList1 arguments, IReadOnlyList1 positionalArgumentDeclaredTypes, IReadOnlyDictionary2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject) at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Handlers.DynamicItemHandler.<>c__DisplayClass6_0.<<HandleProjectChangeAsync>g__ProcessAdditionsAsync|4>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Handlers.DynamicItemHandler.HandleProjectChangeAsync(IWorkspaceProject context, IComparable version, IProjectChangeDescription projectChange, ContextState state, ITelemetryOperation telemetryOperation, IManagedProjectDiagnosticOutputService logger) at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Handlers.DynamicItemHandler.HandleAsync(IWorkspaceProject context, IComparable version, IImmutableDictionary2 projectChanges, ContextState state, ITelemetryOperation telemetryOperation, IManagedProjectDiagnosticOutputService logger)
at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Workspace.<>c__DisplayClass43_1.<g__ProcessSourceItemsHandlersAsync|6>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Workspace.<>c__DisplayClass43_0.<g__ApplyProjectEvaluationAsync|2>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Workspace.<>c__DisplayClass46_11.<<OnProjectChangedAsync>g__ApplyInBatchAsync|1>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.VisualStudio.Threading.ReentrantSemaphore.StackSemaphore.<>c__DisplayClass3_0.<<ExecuteAsync>b__0>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.VisualStudio.Threading.ReentrantSemaphore.StackSemaphore.ExecuteAsync(Func1 operation, CancellationToken cancellationToken)
at Microsoft.VisualStudio.ProjectSystem.OnceInitializedOnceDisposedUnderLockAsync.ExecuteUnderLockCoreAsync(Func2 action, CancellationToken cancellationToken) at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Workspace.OnEvaluationUpdateAsync(IProjectVersionedValue1 evaluationUpdate)
at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Workspace.<>c__DisplayClass42_0.<g__ApplyUpdateWithinLockAsync|1>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Workspace.<>c__DisplayClass42_0.<g__ApplyUpdateWithinLockAsync|1>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Workspace.<>c__DisplayClass42_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.VisualStudio.Threading.ReentrantSemaphore.StackSemaphore.<>c__DisplayClass3_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.VisualStudio.Threading.ReentrantSemaphore.StackSemaphore.ExecuteAsync(Func1 operation, CancellationToken cancellationToken) at Microsoft.VisualStudio.ProjectSystem.OnceInitializedOnceDisposedUnderLockAsync.ExecuteUnderLockCoreAsync(Func2 action, CancellationToken cancellationToken)
at Microsoft.VisualStudio.ProjectSystem.DataReceivingBlockSlim`1.ProcessInputQueueAsync(InputDataBuffer inputQueue)
<--- (Inner Exception #0)

C# log

Post the output from Output-->C# here

C# LSP Trace Logs

Post the output from Output-->C# LSP Trace Logs here. Requires `dotnet.server.trace` to be set to `Trace`

Environment information

VSCode version: 1.93.1
C# Extension: 2.45.25
Using OmniSharp: false

Dotnet Information .NET SDK: Version: 8.0.401 Commit: 811edcc344 Workload version: 8.0.400-manifests.56cd0383 MSBuild version: 17.11.4+37eb419ad

Runtime Environment:
OS Name: ubuntu
OS Version: 22.04
OS Platform: Linux
RID: linux-x64
Base Path: /usr/share/dotnet/sdk/8.0.401/

.NET workloads installed:
Configured to use loose manifests when installing new manifests.
There are no installed workloads to display.

Host:
Version: 8.0.8
Architecture: x64
Commit: 08338fcaa5

.NET SDKs installed:
8.0.401 [/usr/share/dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.8 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.8 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
None

Environment variables:
DOTNET_ROOT [/usr/share/dotnet]

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

Visual Studio Code Extensions
Extension Author Version Folder Name
aspnetcorerazor-html-css-class-completion kevin-chatham 1.0.3 kevin-chatham.aspnetcorerazor-html-css-class-completion-1.0.3
csdevkit ms-dotnettools 1.10.18 ms-dotnettools.csdevkit-1.10.18-linux-x64
csharp ms-dotnettools 2.45.25 ms-dotnettools.csharp-2.45.25-linux-x64
data-workspace-vscode ms-mssql 0.5.0 ms-mssql.data-workspace-vscode-0.5.0
git-graph mhutchie 1.30.0 mhutchie.git-graph-1.30.0
gitflow vector-of-bool 1.2.1 vector-of-bool.gitflow-1.2.1
githistory donjayamanne 0.6.20 donjayamanne.githistory-0.6.20
gitlens eamodio 15.5.1 eamodio.gitlens-15.5.1
mssql ms-mssql 1.24.0 ms-mssql.mssql-1.24.0
powershell ms-vscode 2024.2.2 ms-vscode.powershell-2024.2.2
prettier-sql-vscode inferrinizzard 1.6.0 inferrinizzard.prettier-sql-vscode-1.6.0
prettier-vscode esbenp 11.0.0 esbenp.prettier-vscode-11.0.0
snyk-vulnerability-scanner snyk-security 2.18.2 snyk-security.snyk-vulnerability-scanner-2.18.2
sql-bindings-vscode ms-mssql 0.4.0 ms-mssql.sql-bindings-vscode-0.4.0
sql-database-projects-vscode ms-mssql 1.4.3 ms-mssql.sql-database-projects-vscode-1.4.3
sqltools mtxr 0.28.3 mtxr.sqltools-0.28.3
sqltools-driver-mssql mtxr 0.4.3 mtxr.sqltools-driver-mssql-0.4.3
svg jock 1.5.4 jock.svg-1.5.4
todo-tree Gruntfuggly 0.0.226 gruntfuggly.todo-tree-0.0.226
vscode-color-picker AntiAntiSepticeye 0.0.4 antiantisepticeye.vscode-color-picker-0.0.4
vscode-dotnet-pack ms-dotnettools 1.0.13 ms-dotnettools.vscode-dotnet-pack-1.0.13
vscode-dotnet-runtime ms-dotnettools 2.1.7 ms-dotnettools.vscode-dotnet-runtime-2.1.7
vscode-eslint dbaeumer 3.0.10 dbaeumer.vscode-eslint-3.0.10
vscode-html-css ecmel 2.0.10 ecmel.vscode-html-css-2.0.10
vscode-import-cost wix 3.3.0 wix.vscode-import-cost-3.3.0
vscode-jest Orta 6.2.5 orta.vscode-jest-6.2.5
vscode-lottie lottiefiles 1.0.5 lottiefiles.vscode-lottie-1.0.5
vscode-markdownlint DavidAnson 0.56.0 davidanson.vscode-markdownlint-0.56.0
vscode-nuget-gallery patcx 1.2.1 patcx.vscode-nuget-gallery-1.2.1
vscode-pull-request-github GitHub 0.96.0 github.vscode-pull-request-github-0.96.0
vscode-xml redhat 0.27.1 redhat.vscode-xml-0.27.1-linux-x64
vscode-yaml redhat 1.15.0 redhat.vscode-yaml-1.15.0
vscodeintellicode-csharp ms-dotnettools 2.1.11 ms-dotnettools.vscodeintellicode-csharp-2.1.11-linux-x64

Extension version: 2.45.25
VS Code version: Code 1.93.1 (38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40, 2024-09-11T17:20:05.685Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Remote OS version: Linux x64 5.15.153.1-microsoft-standard-WSL2

System Info
Item Value
CPUs AMD Ryzen 7 Microsoft Surface (R) Edition (16 x 1996)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 15.45GB (3.92GB free)
Process Argv --crash-reporter-id f28b5a18-e7d9-4c97-873a-6695beca75bd
Screen Reader no
VM 0%
Item Value
Remote WSL: Ubuntu
OS Linux x64 5.15.153.1-microsoft-standard-WSL2
CPUs AMD Ryzen 7 Microsoft Surface (R) Edition (6 x 0)
Memory (System) 3.83GB (0.21GB free)
VM 0%
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyonecf:30548226
a9j8j154:30646983
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
9c06g630:31013171
a69g1124:31058053
dvdeprecation:31068756
dwnewjupytercf:31046870
newcmakeconfigv2:31071590
impr_priority:31102340
nativerepl2:31139839
refactort:31108082
pythonrstrctxt:31112756
flightc:31134773
wkspc-onlycs-t:31132770
nativeloc1:31134641
wkspc-ranged-t:31125599
cf971741:31144450
autoexpandse:31146404
cc771715:31146322

@dibarbet
Copy link
Member

dibarbet commented Oct 2, 2024

@james-white-x the next time you hit this, could you please zip up the contents of the ms-dotnettools.csdevkit directory inside the result of running the "Open extension logs folder" in VSCode? And send them to me (my email is [email protected])

@JoaoGuedesRev
Copy link

+1 same issue same log error

@james-white-x
Copy link
Author

james-white-x commented Oct 8, 2024

@dibarbet

Did you get my email? I sent it through but have not seen any updates

@dibarbet
Copy link
Member

dibarbet commented Oct 8, 2024

@james-white-x yup I did. Unfortunately it looks like the failing component isn't logging enough details - that should be addressed in the upcoming prerelease. I have a couple additional leads that I'm following up on as well.
See also this issue on the devkit side - microsoft/vscode-dotnettools#1470

@dibarbet
Copy link
Member

dibarbet commented Oct 8, 2024

Closing as duplicate of microsoft/vscode-dotnettools#1470

I was able to get a repro there. Investigation is ongoing on the Razor side.

@dibarbet dibarbet closed this as not planned Won't fix, can't repro, duplicate, stale Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants