Closed olafurw closed 1 year ago
known issue with launch-editor, used via vite's openInEditor middleware: https://github.com/yyx990803/launch-editor/issues/35
I don't expect this to get fixed soon, would recommend using a home directory without spaces or other special characters in it, or if that doesn't work, maybe you can create C:\develop
and put your projects there .
Yes, the situation is unfortunate, but problems with non-ascii characters and spaces in paths are still common in even in 2023.
For the launch command you may be able to use the LAUNCH_EDITOR
environment variable, put a script without spaces in there and call the properly quoted path from that script
My project is in c:\work
it's the location of vscode that's messing this up.
Thanks for the suggestions and the link to the other bug. Cheers.
Here's a Windows .bat file that people can repurpose as they wish if anyone finds this bug report.
You save this in a location with no spaces or accented characters and point to it using the LAUNCH_EDITOR
environment variable.
@echo off
set filename=%1
set line=%2
set column=%3
"%appdata%\..\Local\Programs\Microsoft VS Code\Code.exe" -r -g "%filename%":%lineNumber%:%columnNumber%
For me filename
already included the quotation marks so the extra ones caused it to go a bit haywire with file names containing spaces. If that's the case for someone else try this:
@echo off
set filename=%1
set lineNumber=%2
set columnNumber=%3
"%appdata%\..\Local\Programs\Microsoft VS Code\Code.exe" -r -g %filename%:%lineNumber%:%columnNumber%
Thanks for the .bat! 😄
Describe the bug
On a Windows machine and using the inspector, hitting Shift+Ctrl, I get the svelte selection but when I click on a component, I get this error.
VSCode is inside of this path
C:\Users\Ólafur Waage\AppData\Local\Programs\Microsoft VS Code
.It's both missing the accent above the
Ó
and it doesn't show my last name, which has spaces after the first name.Reproduction URL
http://example.com
Reproduction
I can't show a reproduction URL because I can't change the paths of where vscode and the project is within StackBlitz.
Using Windows 10, happens both if I run it through Powershell or the windows cmd.
Logs