Forum

WSL UBUNTU - code n...
 
Powiadomienia
Wyczyść wszystko

WSL UBUNTU - code not working or start internal VSC installation

1 Wpisy
1 Użytkownicy
0 Reactions
1,097 Widoki
0
Rozpoczynający temat

cant start code .

1 odpowiedź
0
Rozpoczynający temat

One of the solutions

 

AT WINDOWS

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)

Ten wpis został zmodyfikowany 2 lata temu przez mrmucha

Twoja odpowiedź

Nazwa autora

E-mail autora

Twoje zapytanie *

 
Podgląd 0 rewizje Zapisano
Udostępnij: