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

OmniSharp popups use wrong encoding for non-English characters #129

Open
oleg-glushko opened this issue Nov 27, 2023 · 10 comments
Open

OmniSharp popups use wrong encoding for non-English characters #129

oleg-glushko opened this issue Nov 27, 2023 · 10 comments
Labels
bug Something isn't working
Milestone

Comments

@oleg-glushko
Copy link

As the title says, here's an example:

NetPad
@tareqimbasher
Copy link
Owner

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

@oleg-glushko
Copy link
Author

Yes, it uses a Cyrillic encoding.

@my20002000
Copy link

same problem in chinese
image

@tareqimbasher tareqimbasher added the bug Something isn't working label Dec 27, 2023
@JarmanQian
Copy link

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

image

@tareqimbasher
Copy link
Owner

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 tareqimbasher reopened this May 20, 2024
@tareqimbasher
Copy link
Owner

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

@oleg-glushko
Copy link
Author

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..."

@tareqimbasher
Copy link
Owner

@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)

@oleg-glushko
Copy link
Author

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.

@tareqimbasher
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants