Skip to content

Update to Microsoft.CodeAnalysis 3.3.1#5163

Merged
superyyrrzz merged 3 commits intodotnet:devfrom
dlech:csharp8
Oct 12, 2019
Merged

Update to Microsoft.CodeAnalysis 3.3.1#5163
superyyrrzz merged 3 commits intodotnet:devfrom
dlech:csharp8

Conversation

@dlech
Copy link
Contributor

@dlech dlech commented Oct 5, 2019

This updates to the latest Microsoft.CodeAnalysis packages for C#8 support.

Fixes the following error on a project that uses nullable reference types:

Microsoft.DocAsCode.Exceptions.DocfxException: Unable to generate spec reference for !: ---> System.IO.InvalidDataException: Fail to parse id for symbol  in namespace .
  at Microsoft.DocAsCode.Metadata.ManagedReference.YamlModelGenerator.AddSpecReference (Microsoft.CodeAnalysis.ISymbol symbol, System.Collections.Generic.IReadOnlyList`1[T] typeGenericParameters, System.Collections.Generic.IReadOnlyList`1[T] methodGenericParameters, System.Collections.Generic.Dictionary`2[TKey,TValue] references, Microsoft.DocAsCode.Metadata.ManagedReference.SymbolVisitorAdapter adapter) [0x0005e] in <27b606b838ab45b788854d5e45efa610>:0
  at Microsoft.DocAsCode.Metadata.ManagedReference.SymbolVisitorAdapter.AddSpecReference (Microsoft.CodeAnalysis.ISymbol symbol, System.Collections.Generic.IReadOnlyList`1[T] typeGenericParameters, System.Collections.Generic.IReadOnlyList`1[T] methodGenericParameters) [0x00000] in <27b606b838ab45b788854d5e45efa610>:0
Microsoft Reviewers: Open in CodeFlow

@dnfclas
Copy link

dnfclas commented Oct 5, 2019

CLA assistant check
All CLA requirements met.

@dlech
Copy link
Contributor Author

dlech commented Oct 5, 2019

Related: #4952

@superyyrrzz
Copy link
Contributor

CI build failed. We may need to update some tests cases:

Microsoft.DocAsCode.Metadata.ManagedReference.Tests.GenerateMetadataFromA
ssemblyTest.TestGenerateMetadataFromAssemblyWithReferences [FAIL]

@superyyrrzz superyyrrzz added the v2 label Oct 10, 2019
@dlech
Copy link
Contributor Author

dlech commented Oct 10, 2019

The current dev branch is also failing, so I could not tell if this was a new failure.

https://docfx.visualstudio.com/docfx/_build/results?buildId=964

@superyyrrzz
Copy link
Contributor

@dlech You are right. I will fix dev branch first.

dlech added 3 commits October 11, 2019 19:21
This updates to the latest Microsoft.CodeAnalysis packages for C#8
support.

Fixes the following error on a project that uses nullable reference
types:

Microsoft.DocAsCode.Exceptions.DocfxException: Unable to generate spec reference for !: ---> System.IO.InvalidDataException: Fail to parse id for symbol  in namespace .
  at Microsoft.DocAsCode.Metadata.ManagedReference.YamlModelGenerator.AddSpecReference (Microsoft.CodeAnalysis.ISymbol symbol, System.Collections.Generic.IReadOnlyList`1[T] typeGenericParameters, System.Collections.Generic.IReadOnlyList`1[T] methodGenericParameters, System.Collections.Generic.Dictionary`2[TKey,TValue] references, Microsoft.DocAsCode.Metadata.ManagedReference.SymbolVisitorAdapter adapter) [0x0005e] in <27b606b838ab45b788854d5e45efa610>:0
  at Microsoft.DocAsCode.Metadata.ManagedReference.SymbolVisitorAdapter.AddSpecReference (Microsoft.CodeAnalysis.ISymbol symbol, System.Collections.Generic.IReadOnlyList`1[T] typeGenericParameters, System.Collections.Generic.IReadOnlyList`1[T] methodGenericParameters) [0x00000] in <27b606b838ab45b788854d5e45efa610>:0
Since updating Microsoft.CodeAnalysis to 3.3.1, the automatic formatting
for tuples in C# has been fixed, so update tests accordingly.

dotnet/roslyn#29405
Since updating to Microsoft.CodeAnalysis 3.3.1, the default keyword is
resolved to a vaule instead of the a default expression.

Probably comes from dotnet/roslyn#37596
@dlech
Copy link
Contributor Author

dlech commented Oct 12, 2019

Thanks. I have fixed the tests that were failing because of the upgraded packages.

@superyyrrzz
Copy link
Contributor

@dlech Thank you for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants