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

Fails when editor is installed in directory containing spaces on windows #35

Closed
CodeWitchBella opened this issue Mar 13, 2022 · 4 comments · Fixed by #78
Closed

Fails when editor is installed in directory containing spaces on windows #35

CodeWitchBella opened this issue Mar 13, 2022 · 4 comments · Fixed by #78
Labels
bug Something isn't working

Comments

@CodeWitchBella
Copy link

My vscode is installed in C:\Users\Isabella Skořepová\AppData\Local\Programs\Microsoft VS Code\Code.exe, which is the default installation location. The first space is mostly my fault created when I was installing the system, but the other two are added by vscode installer.

It fails with error

'C:\Users\Isabella' is not recognized as an internal or external command, operable program or batch file.

Sidenote: I am using vite, but I see the same issue when trying to import the middleware directly in a vite.config.ts file.

@kiccer
Copy link

kiccer commented Apr 24, 2022

Get the same error.

@oneezy
Copy link

oneezy commented May 11, 2022

I had a similar issue today in a Svelte app. removing the space in one of my project folder names fixed the issue but it was pretty hard bug to find

@al123xiaaaa
Copy link

al123xiaaaa commented Jul 24, 2022

same error
my vscode path is

C:\Users\xiaguangwei\AppData\Local\Programs\Microsoft VS Code\

but I got this error

'C:\Users\xiaguangwei\AppData\Local\Programs\Microsoft' is not recognized as an internal or external command,
operable program or batch file.

Could not open HelloWorld.vue in the editor.
The editor process exited with an error: (code 1).

@dominikg
Copy link
Contributor

see sveltejs/vite-plugin-svelte#608 (comment) for a .bat script that can be used with the LAUNCH_EDITOR env to work around this.

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

Successfully merging a pull request may close this issue.

6 participants