NetPad icon indicating copy to clipboard operation
NetPad copied to clipboard

OmniSharp popups use wrong encoding for non-English characters

Open oleg-glushko opened this issue 2 years ago • 4 comments

As the title says, here's an example:

NetPad

oleg-glushko avatar Nov 27 '23 10:11 oleg-glushko

Thank you for reporting. I assume your machine locale is non-English?

tareqimbasher avatar Nov 27 '23 11:11 tareqimbasher

Yes, it uses a Cyrillic encoding.

oleg-glushko avatar Nov 27 '23 12:11 oleg-glushko

same problem in chinese image

my20002000 avatar Nov 30 '23 07:11 my20002000

@my20002000 非英语环境似乎都有问题,目前是把 AppData\Local\NetPad[你的版本]\zh-Hans 文件夹改个名字,这样至少能看到英文提示 :D image

image

JarmanQian avatar Apr 03 '24 05:04 JarmanQian

Didn't mean to close it. v0.7.1 will include a fix that hopefully resolves this. Will keep it open for feedback after release.

tareqimbasher avatar May 20 '24 13:05 tareqimbasher

v0.7.1 is released. Can you guys please try it out and let me know if your issue is resolved?

tareqimbasher avatar May 20 '24 19:05 tareqimbasher

The Result window displays characters correctly. But now I have another issue with 0.7.1 - IntelliSense doesn't work, so it's impossible to tell if encoding was fixed. All I get is a temporary popup saying "Loading..."

oleg-glushko avatar May 22 '24 23:05 oleg-glushko

@oleg-glushko Does intellisense still not work after closing out NetPad entirely and then restarting it? If so, can you check the Log file (open Settings and click on Open App Data Folder, there should be a Logs folder there)

tareqimbasher avatar May 23 '24 11:05 tareqimbasher

Ah, I see... There's the statically defined SDK in global.json pointing to 7.0.0. When I changed it to 8.0.0, everything started working, including the encoding in pop-ups.

2024-05-23T09:44:38.4614042+10:00 [ERR] (PID: 22936|OmniSharp.Stdio.OmniSharpStdioServer) OmniSharpServer Error Output: System.InvalidOperationException: Failed to find all versions of .NET Core MSBuild. Call to hostfxr_resolve_sdk2. There may be more details in stderr.
2024-05-23T09:44:38.4614591+10:00 [ERR] (PID: 22936|OmniSharp.Stdio.OmniSharpStdioServer) OmniSharpServer Error Output: https://aka.ms/dotnet/sdk-not-found
2024-05-23T09:44:38.4614968+10:00 [ERR] (PID: 22936|OmniSharp.Stdio.OmniSharpStdioServer) OmniSharpServer Error Output: Learn about SDK resolution:
2024-05-23T09:44:38.4615319+10:00 [ERR] (PID: 22936|OmniSharp.Stdio.OmniSharpStdioServer) OmniSharpServer Error Output: Install the [7.0.0] .NET SDK or update [C:\Program Files\NetPad\resources\bin\global.json] to match an installed SDK.
2024-05-23T09:44:38.4615703+10:00 [ERR] (PID: 22936|OmniSharp.Stdio.OmniSharpStdioServer) OmniSharpServer Error Output: Installed SDKs:
2024-05-23T09:44:38.4616161+10:00 [ERR] (PID: 22936|OmniSharp.Stdio.OmniSharpStdioServer) OmniSharpServer Error Output: global.json file: C:\Program Files\NetPad\resources\bin\global.json
2024-05-23T09:44:38.4616513+10:00 [ERR] (PID: 22936|OmniSharp.Stdio.OmniSharpStdioServer) OmniSharpServer Error Output: Requested SDK version: 7.0.0
2024-05-23T09:44:38.4616898+10:00 [ERR] (PID: 22936|OmniSharp.Stdio.OmniSharpStdioServer) OmniSharpServer Error Output: A compatible .NET SDK was not found.
2024-05-23T09:44:38.4617636+10:00 [ERR] (PID: 22936|OmniSharp.Stdio.OmniSharpStdioServer) OmniSharpServer Error Output: https://aka.ms/dotnet/sdk-not-found
2024-05-23T09:44:38.4618094+10:00 [ERR] (PID: 22936|OmniSharp.Stdio.OmniSharpStdioServer) OmniSharpServer Error Output: Learn about SDK resolution:
2024-05-23T09:44:38.4618531+10:00 [ERR] (PID: 22936|OmniSharp.Stdio.OmniSharpStdioServer) OmniSharpServer Error Output: Install the [7.0.0] .NET SDK or update [C:\Program Files\NetPad\resources\bin\global.json] to match an installed SDK.
2024-05-23T09:44:38.4618902+10:00 [ERR] (PID: 22936|OmniSharp.Stdio.OmniSharpStdioServer) OmniSharpServer Error Output: Installed SDKs:
2024-05-23T09:44:38.4619900+10:00 [ERR] (PID: 22936|OmniSharp.Stdio.OmniSharpStdioServer) OmniSharpServer Error Output: global.json file: C:\Program Files\NetPad\resources\bin\global.json
2024-05-23T09:44:38.4620676+10:00 [ERR] (PID: 22936|OmniSharp.Stdio.OmniSharpStdioServer) OmniSharpServer Error Output: Requested SDK version: 7.0.0
2024-05-23T09:44:38.4621663+10:00 [ERR] (PID: 22936|OmniSharp.Stdio.OmniSharpStdioServer) OmniSharpServer Error Output: A compatible .NET SDK was not found.
2024-05-23T09:44:38.4632303+10:00 [INF] (PID: 22936|OmniSharp.Stdio.Host) Starting OmniSharp on Windows 10.0.19045.0 (x64)
>dotnet sdk check
.NET SDKs:
Version      Status
------------------------
6.0.422      Up to date.
8.0.205      Up to date.

oleg-glushko avatar May 23 '24 23:05 oleg-glushko

Thank you for the info! I'll resolve that issue in the next release.

tareqimbasher avatar May 26 '24 21:05 tareqimbasher

This issue is resolved with the v0.7.2 release.

tareqimbasher avatar Jul 09 '24 00:07 tareqimbasher