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

VS Code not able to start after latest update due to special characters in path #58042

Closed
adiessl opened this issue Sep 6, 2018 · 6 comments
Closed
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@adiessl
Copy link

adiessl commented Sep 6, 2018

Issue Type: Bug

After updating VS Code to the latest version (1.27.0) I was unable to get it to start properly.

image

Starting via command line with the verbose flag shows the following error message:

PS C:\Users\a.dießl> code --verbose

Error: Failed opening file C:\Users\a.dießl\AppData\Roaming\Code\logs\20180906T083348\main.log for writing: No such file or directory
    at new RotatingLogger (C:\Program Files\Microsoft VS Code\resources\app\node_modules.asar\spdlog\index.js:16:3)
    at Object.t.createSpdLogService (C:\Program Files\Microsoft VS Code\resources\app\out\vs\code\electron-main\main.js:231:857)
    at C:\Program Files\Microsoft VS Code\resources\app\out\vs\code\electron-main\main.js:547:639
    at Object.v [as _notify] (C:\Program Files\Microsoft VS Code\resources\app\out\vs\code\electron-main\main.js:85:807)
    at Object.enter (C:\Program Files\Microsoft VS Code\resources\app\out\vs\code\electron-main\main.js:89:85)
    at n.Class.derive._oncancel._run (C:\Program Files\Microsoft VS Code\resources\app\out\vs\code\electron-main\main.js:90:932)
    at n.Class.derive._oncancel._completed (C:\Program Files\Microsoft VS Code\resources\app\out\vs\code\electron-main\main.js:90:373)
    at Server.<anonymous> (C:\Program Files\Microsoft VS Code\resources\app\out\vs\code\electron-main\main.js:174:783)
    at Object.onceWrapper (events.js:313:30)
    at emitNone (events.js:106:13)
    at Server.emit (events.js:208:7)
    at emitListeningNT (net.js:1378:10)
    at _combinedTickCallback (internal/process/next_tick.js:135:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
[main 8:33:48 AM] Starting VS Code
[main 8:33:48 AM] from: c:\Program Files\Microsoft VS Code\resources\app

The reason for this seems to be that the path contains a "special" character, in my case the German letter ß (a.die├ƒl should be a.dießl). If I start VS Code via code --user-data-dir C:\vscode everything works as expected. This bug is present in VS Code after either using the system installer or the user installer.

How to reproduce the problem? Maybe create a test folder containing special characters (e.g. C:\téßt) and open VS Code via code --user-data-dir C:\téßt.


VS Code version: Code 1.27.0 (7b9afc4, 2018-09-05T05:29:44.670Z)
OS version: Windows_NT x64 10.0.17134

System Info
Item Value
CPUs Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz (4 x 3408)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Memory (System) 23.89GB (15.93GB free)
Process Argv C:\Program Files\Microsoft VS Code\Code.exe --user-data-dir C:\vscode
Screen Reader no
VM 0%
Extensions: none
@jibsen
Copy link

jibsen commented Sep 6, 2018

Same problem here, my user name contains the Danish character 'ø'.

Is there a way to download the previous version?

@adiessl
Copy link
Author

adiessl commented Sep 6, 2018

As a workaround you could start VS Code with the --user-data-dir flag. You can even add it to the shortcut like so:
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Visual Studio Code
image

@muhammedtas
Copy link

Same here!

@joaomoreno
Copy link
Member

@vscodebot vscodebot bot added the *duplicate Issue identified as a duplicate of another issue(s) label Sep 6, 2018
@vscodebot
Copy link

vscodebot bot commented Sep 6, 2018

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Sep 6, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

5 participants