WSL UBUNTU - code n...
Clear all

WSL UBUNTU - code not working or start internal VSC installation

1 Posty
1 Users
0 Reactions
819 Widok
Topic starter

cant start code .

1 Answer
Topic starter

One of the solutions



make sure that C:\Program Files\Microsoft VS Code exist

make sure that C:\Program Files\Microsoft VS Code is in good condition, download VSC for windows, find different copy of Microsoft VS Code (look here C:\Users\johndoe\AppData\Local\Programs\Microsoft VS Code and copy content to C:\Program Files\Microsoft VS Code, after fresh VSC code installation)


possible error with corrupted C:\Program Files\Microsoft VS Code (due to crash of update)

C:\Program Files\Microsoft VS Code\resources\app\out\cli.js:1

SyntaxError: Invalid or unexpected token
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1230:20)
at Module._compile (node:internal/modules/cjs/loader:1272:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1371:10)
at Module.load (node:internal/modules/cjs/loader:1171:32)
at Module._load (node:internal/modules/cjs/loader:1012:12)
at f._load (node:electron/js2c/asar_bundle:2:13377)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:96:12)
at node:internal/main/run_main_module:23:47

set right alias for code

alias code='/mnt/c/Users/johndoe/AppData/Local/Programs/Microsoft\ VS\ Code/bin/code'

and put same line into ~/.bashrc file (use nano ~/.bashrc)

This post was modified 8 miesięcy temu by mrmucha


Author Name

Author Email

Your question *

Preview 0 Revisions Saved