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

VSCode won't launch on Windows if path contains # character #56506

Closed
alanrenmsft opened this issue Aug 15, 2018 · 4 comments
Closed

VSCode won't launch on Windows if path contains # character #56506

alanrenmsft opened this issue Aug 15, 2018 · 4 comments
Assignees
Labels
electron Issues and items related to Electron upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@alanrenmsft
Copy link
Contributor

I've tried searching in existing issues but couldn't find one tracking this issue.

  • VSCode Version:
    1.27.0 Insider build as well as other versions

  • OS Version:
    Windows 10 Version 1709

Steps to Reproduce:

  1. Download the VScode installer for windows and set the install path to a folder with # character in the name for example: C:\Program Files\Microsoft VS # Code
  2. Try launching VS code from a cmd window.

Result:
VS code is not launching with the following error in the cmd window:

The factory method of "vs/base/node/paths" has thrown an exception
{ Error: Cannot find module 'c:\Program Files\Microsoft VS Code '
at Module._resolveFilename (module.js:543:15)
at Function.Module._resolveFilename (C:\Program Files\Microsoft VS Code # Insiders\resources\electron.asar\common\reset-search-paths.js:35:12)
at Function.Module._load (module.js:473:25)
at Module.require (module.js:586:17)
at require (internal/module.js:11:18)
at Function.i [as __$__nodeRequire] (C:\Program Files\Microsoft VS Code # Insiders\resources\app\out\vs\loader.js:30:770)
at Object. (C:\Program Files\Microsoft VS Code # Insiders\resources\app\out\vs\code\electron-main\main.js:135:413)
at Function.t._safeInvokeFunction (C:\Program Files\Microsoft VS Code # Insiders\resources\app\out\vs\loader.js:19:248)
at Function.t._invokeFactory (C:\Program Files\Microsoft VS Code # Insiders\resources\app\out\vs\loader.js:19:495)
at t.complete (C:\Program Files\Microsoft VS Code # Insiders\resources\app\out\vs\loader.js:19:732)
at s._onModuleComplete (C:\Program Files\Microsoft VS Code # Insiders\resources\app\out\vs\loader.js:30:25)
at s._resolve (C:\Program Files\Microsoft VS Code # Insiders\resources\app\out\vs\loader.js:29:599)
at s.defineModule (C:\Program Files\Microsoft VS Code # Insiders\resources\app\out\vs\loader.js:23:862)
at o (C:\Program Files\Microsoft VS Code # Insiders\resources\app\out\vs\loader.js:31:180)
at Object. (C:\Program Files\Microsoft VS Code # Insiders\resources\app\out\vs\code\electron-main\main.js:135:265)

Does this issue occur when all extensions are disabled?: Yes

@joaomoreno
Copy link
Member

@alanrenmsft Do you have to run Code from a path with #? I'm tempted to close this as "won't fix".

@joaomoreno joaomoreno added the info-needed Issue requires more information from poster label Aug 17, 2018
@joaomoreno joaomoreno assigned joaomoreno and unassigned bpasero and aeschli Aug 17, 2018
@bpasero
Copy link
Member

bpasero commented Aug 17, 2018

This could be electron/electron#10311 (even though that one talks about a leading "#").

@joaomoreno joaomoreno added upstream Issue identified as 'upstream' component related (exists outside of VS Code) electron Issues and items related to Electron and removed info-needed Issue requires more information from poster labels Aug 17, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 1, 2018
@microsoft microsoft unlocked this conversation Oct 3, 2018
@bpasero
Copy link
Member

bpasero commented Oct 3, 2018

@alanrenmsft for some reason I cannot reproduce this issue. I installed VSCode Insiders to this folder: "C:\Program Files\Microsoft VS # Code Insiders" and it starts fine. I do not remember we pushed a fix for this but could you maybe try again with latest insiders?

@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
electron Issues and items related to Electron upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

5 participants