Microsoft.CodeAnalysis.LanguageServer.UnitTests.ProtocolConversionsTests.CreateRelativePatternBaseUri_LocalPaths_Unix(filePath: "\\\\\\\\\\", expectedRelativeUri: "file:///////%E2%80%8E") (<
1ms): Error Message: System.IndexOutOfRangeException : Index was outside the bounds of the array.
Stack Trace:
at System.Uri.CreateUriInfo(Flags cF)
at System.Uri.EnsureUriInfo()
at System.Uri.ParseRemaining()
at System.Uri.InitializeUri(ParsingError err, UriKind uriKind, UriFormatException& e)
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind, UriCreationOptions& creationOptions)
at System.Uri..ctor(String uriString, UriKind uriKind)
at Microsoft.CodeAnalysis.LanguageServer.ProtocolConversions.CreateAbsoluteUri(String absolutePath) in /home/jaredpar/code/roslyn/src/LanguageServer/Protocol/Extensions/ProtocolConversions.
cs:line 205
at Microsoft.CodeAnalysis.LanguageServer.ProtocolConversions.CreateRelativePatternBaseUri(String path) in /home/jaredpar/code/roslyn/src/LanguageServer/Protocol/Extensions/ProtocolConversio
ns.cs:line 243
at Microsoft.CodeAnalysis.LanguageServer.UnitTests.ProtocolConversionsTests.CreateRelativePatternBaseUri_LocalPaths_Unix(String filePath, String expectedRelativeUri) in /home/jaredpar/code/
roslyn/src/LanguageServer/ProtocolUnitTests/ProtocolConversionsTests.cs:line 155
at InvokeStub_ProtocolConversionsTests.CreateRelativePatternBaseUri_LocalPaths_Unix(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
In commit 1689311 inside PR #83052 several cases were deleted from the theory
CreateAbsoluteUri_LocalPaths_Unix. These were failing on Linux with various errors. Given that the tests hadn't previously ran on Linux the suspicion is these were not correct.Error messages include: