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

Add server side support for refreshing source generated files #75939

Merged
merged 2 commits into from
Nov 16, 2024

review feedback

c3f434b
Select commit
Loading
Failed to load commit list.
Merged

Add server side support for refreshing source generated files #75939

review feedback
c3f434b
Select commit
Loading
Failed to load commit list.
Build Analysis / Build Analysis succeeded Nov 16, 2024 in 0s

.NET Result Analysis

Details

Tip

To unconditionally bypass the build analysis check (turn it green), you can use the escape mechanism feature. The completion time may vary, potentially taking several minutes, depending on the build analysis workload at the moment.

Test Failures (1 tests failed)

🔹 [All failing tests from roslyn-integration-CI]

    Roslyn.VisualStudio.NewIntegrationTests.VisualBasic.BasicWinForms.RenameControl(VS2022) [Details] [56.25% failure rate]
    [ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]

    Failing Configuration

    Data Driven SubResults
      Roslyn.VisualStudio.NewIntegrationTests.VisualBasic.BasicWinForms.RenameControl (VS2022)
      Exception Message
      System.InvalidOperationException : An error was encountered during code generation.  The changes you have made in the designer have not been committed to the source code.  It is recommended that you close and re-open the source file.  The error message follows: 
      

      Value does not fall within the expected range.
      ---- System.ArgumentException : Value does not fall within the expected range.


      Stack Trace

         at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object component, Object value)
      at Microsoft.VisualStudio.Extensibility.Testing.EditorInProcess.<EditWinFormButtonPropertyAsync>d__68.MoveNext() in /_/src/VisualStudio/IntegrationTest/New.IntegrationTests/InProcess/EditorInProcess.cs:line 1187
      --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
      at Roslyn.VisualStudio.NewIntegrationTests.VisualBasic.BasicWinForms.<RenameControl>d__8.MoveNext() in /_/src/VisualStudio/IntegrationTest/New.IntegrationTests/VisualBasic/BasicWinForms.cs:line 145
      --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
      --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      ----- Inner Stack Trace -----
      at Microsoft.VisualStudio.LanguageServices.Implementation.CodeModel.AbstractCodeModelService.LookupNode(SyntaxNodeKey nodeKey, SyntaxTree syntaxTree) in /_/src/VisualStudio/Core/Impl/CodeModel/AbstractCodeModelService.cs:line 160
      at Microsoft.VisualStudio.LanguageServices.Implementation.CodeModel.InternalElements.AbstractKeyedCodeElement.LookupNode() in /_/src/VisualStudio/Core/Impl/CodeModel/InternalElements/AbstractKeyedCodeElement.cs:line 54
      at Microsoft.VisualStudio.LanguageServices.Implementation.CodeModel.InternalElements.AbstractCodeElement.GetName() in /_/src/VisualStudio/Core/Impl/CodeModel/InternalElements/AbstractCodeElement.cs:line 102
      at Microsoft.VisualStudio.LanguageServices.Implementation.CodeModel.InternalElements.AbstractKeyedCodeElement.GetName() in /_/src/VisualStudio/Core/Impl/CodeModel/InternalElements/AbstractKeyedCodeElement.cs:line 108
      at Microsoft.VisualStudio.LanguageServices.Implementation.CodeModel.InternalElements.AbstractCodeElement.get_Name() in /_/src/VisualStudio/Core/Impl/CodeModel/InternalElements/AbstractCodeElement.cs:line 111
      at EnvDTE80.CodeElement2.get_Name()
      at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomGenerator.GenerateCodeFromType(CodeTypeDeclaration e, TextWriter w, CodeGeneratorOptions o)

Was this helpful? Yes No