You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open any .cs file in the editor that contains following code:
constfloat//this is where i forgot to write the rest of the line lolangVel=(firstChunk.vel.magnitude, angVel, firstChunk.ContactPoint.x, firstChunk.contactPoint.y)switch{( <= 1f, _, _, _)=>0f,( >= 1f,0f, not 0,0)=> Random.Range(5,10f)* Mathf.Sign(firstChunk.vel.x),( >= 1f, _, not 0,-1)=>1f,
_ => angVel,};rot= Mathf.LerpAngle(rot,rot+angVel,1f);
Expected behavior
A compiler error is displayed for assigning a non-static expression to a const value.
Actual behavior
microsoft.codeanalysis.languageserver.exe crashes with a stack overflow
This causes the LSP to implode. the compiler exhibits similar behavior
Additional context
Bug is seemingly context-independent as it occurs even if i paste the snippet into a completely blank project. Doesn't show up for shorter switches.
The text was updated successfully, but these errors were encountered:
Environment data
dotnet --info
output: info.txtVS Code version: 1.93.1
C# Extension version: 2.45.25, 2.39.29, presumably others
OmniSharp log
4-C#.log
Steps to reproduce
Expected behavior
A compiler error is displayed for assigning a non-static expression to a const value.
Actual behavior
microsoft.codeanalysis.languageserver.exe
crashes with a stack overflowThis causes the LSP to implode. the compiler exhibits similar behavior
Additional context
Bug is seemingly context-independent as it occurs even if i paste the snippet into a completely blank project. Doesn't show up for shorter switches.
The text was updated successfully, but these errors were encountered: