You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an scd file at "/media/dlm/T7/23-24-fall/大课-exam-works". Also in that directory, there's a text file "zipdir.txt".
In SC-IDE:
p = thisProcess.nowExecutingPath.dirname +/+ "zipdir.txt";
-> /media/dlm/T7/23-24-fall/大课-exam-works/zipdir.txt
f = File(p, "r");
f.isOpen;
-> true
f.close;
In VSCode:
p = thisProcess.nowExecutingPath.dirname +/+ "zipdir.txt";
> /media/dlm/T7/23-24-fall/%E5%A4%A7%E8%AF%BE-exam-works/zipdir.txt -- nope
f = File(p, "r");
f.isOpen;
> false -- nope
f = File("/media/dlm/T7/23-24-fall/大课-exam-works/zipdir.txt", "r");
f.isOpen;
> true -- yep
f.close;
So the vscode-sc plug-in is handling Unicode characters in user code correctly, but it isn't sending a correctly encoded "current document" path to sclang.
(I remember how much work Moss had to do on Unicode in sclang and scsynth... a very annoying class of issue!)
The text was updated successfully, but these errors were encountered:
I think we just need to re-encode the url %00 forms back to unicode characters. I can look into this - James, let me know if you have any clues. I can see that I've already added a note for myself in extString.sc in LanguageServer.quark:
// @TODO More url encode replacements...
var replacements = (
"%20": " "
);
I have an scd file at "/media/dlm/T7/23-24-fall/大课-exam-works". Also in that directory, there's a text file "zipdir.txt".
In SC-IDE:
In VSCode:
So the vscode-sc plug-in is handling Unicode characters in user code correctly, but it isn't sending a correctly encoded "current document" path to sclang.
(I remember how much work Moss had to do on Unicode in sclang and scsynth... a very annoying class of issue!)
The text was updated successfully, but these errors were encountered: