oleg-shilo / cs-script.vscode

VSCode extension for CS-Script
MIT License
37 stars 7 forks source link

Does not work with non-ascii characters in file or folder names #33

Open seppo498573908457 opened 1 year ago

seppo498573908457 commented 1 year ago

Folder named "Sähkö" gets ignored and CS-script generates a new folder called "S�hk�".

oleg-shilo commented 1 year ago

And what is this folder role? Is it a part of the script path? Can you elaborate, please? What is the test case that let me reproduce the problem?

seppo498573908457 commented 1 year ago

The role of the folder is to contain code files or the whole project.

My first attempt to use CS-script: 1) Create C:\Sähkö 2) Open VS Code and open that folder in it. 3) Add a C# file in the folder, Program.cs 4) When trying to open the file in CS-Script, it gives error message saying that the file was not found. 5) If you click on the Create File link that is with the above error message, you get a new folder and empty file C:\S�hk�\Program.cs

oleg-shilo commented 1 year ago

Interestingly enough I have indeed could reproduce your problem. Though it was not caused by the file encoding but by some project generation flaw. Fixed. I was able to open and edit/debut your very script (from C:\Sähkö folder) as a VSCode project.

Please update to v2.2.0.

=============

Please note that you do not have to load the script as a project. You can get IntelliSense and debug functionality even if you do not load workspace/project but open script file only:

image