Roslyn: `C# Interactive` is broken in VS16.8 preview5

Created on 23 Oct 2020  路  10Comments  路  Source: dotnet/roslyn

Version Used:
VS16.8 preview5

馃敆 Also reported at AB#1231577

Steps to Reproduce:

  1. Open C# Interactive;
  2. Output any non-ascii string like ("娴嬭瘯");
  3. #reset core(#reset 32 or #reset 64 works well)

Expected Behavior:

  1. non-ascii string should be supported;
  2. Switch to core runtime without error;

This only happen on one of my PC, not sure what's the difference between them, and FUSLOGVW.exe show nothing for this
See https://github.com/dotnet/roslyn/issues/48874#issuecomment-715654253 instead if not reproducable in your PC for extra steps;

Actual Behavior:

  1. Encoding not work
    image
  1. Failed to load System.IO.Pipelines, Version=4.0.2.1
> #reset core
Resetting execution engine.
Failed to launch 'c:\program files (x86)\microsoft visual studio\2019\preview\common7\ide\commonextensions\microsoft\managedlanguages\vbcsharp\languageservices\InteractiveHost\Core\InteractiveHost64.exe' process (exit code: 1) with output: 
System.IO.FileNotFoundException: Could not load file or assembly 'System.IO.Pipelines, Version=4.0.2.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. 系统锟揭诧拷锟斤拷指锟斤拷锟斤拷锟侥硷拷锟斤拷
File name: 'System.IO.Pipelines, Version=4.0.2.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
   at StreamJsonRpc.JsonMessageFormatter..ctor(Encoding encoding)
   at StreamJsonRpc.JsonMessageFormatter..ctor()
   at Microsoft.CodeAnalysis.Interactive.InteractiveHost.CreateRpc(Stream stream, Object incomingCallTarget)
   at Microsoft.CodeAnalysis.Interactive.InteractiveHost.Service.RunServerAsync(String pipeName, Int32 clientProcessId, Func`2 invokeOnMainThread)
   at Microsoft.CodeAnalysis.Interactive.InteractiveHostEntryPoint.Main(String[] args)

Not sure if the 2 error is related.

Area-Interactive Bug Developer Community Urgency-Soon

Most helpful comment

Any news? 16.8.1 still here

All 10 comments

Note: I can reproduce it when system codepage is 936. Cannot reproduce if it's 65001.
FYI: https://github.com/dotnet/runtime/issues/43295#issuecomment-707176857

For the FileNotFoundException, ensure dotnet-sdk-5.0.100-rc.2.20479.15 is installed(already bundled in VS16.8 preview5), and any runtime or sdk of dotnet-5.0.100-rc.1 is completed removed.

Double check and make sure Not exists C:\Program Files\dotnet\host\fxr\5.0.0-rc.1.20451.14\hostfxr.dll and C:\Program Files\dotnet\shared\Microsoft.NETCore.App\5.0.0-rc.1.20451.14

For some unknown reason, when install dotnet-sdk-5.0.100-rc.1.20452.10 and then install 5.0.0-rc2.20489.15 (x64) from Visual Studio(update VS), uninstall dotnet-sdk-5.0.100-rc.1.20452.10 will actual remove nothing from disk

Seems System.IO.Pipelines used to be a part of Microsoft.NETCore.App 5.0.0 rc1, but removed in rc2.

I have the same problem in CP 932.
image

Any news? 16.8.1 still here

49491

Issue still exits in VS2019 16.8.3

image

The milestone of fixing PR is 16.9, later than 16.9P2.
It's expected that it's still not fixed in 16.9P2.

So why not 16.8.x? This is an ugly quality issue.

So why not 16.8.x?

Because it does not meet the 16.8.x bar. THe fix will be released in 16.9.

Was this page helpful?
0 / 5 - 0 ratings