ritwickdey / vscode-live-server

Launch a development local Server with live reload feature for static & dynamic pages.
https://ritwickdey.github.io/vscode-live-server
MIT License
5.7k stars 1.25k forks source link

live server does not work #2937

Open Ashrafpoless opened 4 months ago

Ashrafpoless commented 4 months ago

Type: Bug

live server does not work

Extension version: 5.7.9 VS Code version: Code 1.89.1 (dc96b837cf6bb4af9cd736aa3af08cf8279f7685, 2024-05-07T05:16:23.416Z) OS version: Linux x64 6.5.0-28-generic snap Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-8365U CPU @ 1.60GHz (8 x 1899)| |GPU Status|2d_canvas: unavailable_software
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: disabled_off| |Load (avg)|1, 1, 1| |Memory (System)|7.56GB (4.00GB free)| |Process Argv|--no-sandbox --force-user-env --crash-reporter-id 5b646475-343a-4932-9aab-f8c8c96c3d71| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|ubuntu| |XDG_CURRENT_DESKTOP|Unity| |XDG_SESSION_DESKTOP|ubuntu| |XDG_SESSION_TYPE|wayland|
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 tftest:31042121 vscorecescf:30445987 vscod805cf:30301675 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 h48ei257:31000450 pythontbext0:30879054 accentitlementst:30995554 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 jchc7451:30973076 dsvsc021:30996838 0ee40948:31013168 pythoncenvpt:31043157 a69g1124:31038041 pythonprt:31039817 dwnewjupytercf:31039676 ```
pedro-pelicioni commented 4 months ago

Go to “Edit system environment variables”

Click on “Environment Variables”

In the System tab, look for “PATH” or “Path”

Click on “Edit”

Add C:\Windows\System32

Click Ok and close everything.

If it doesn't work:

Uninstall the extension

Restart your computer.

Reinstall the extension

Go to the live server extension's settings

Click in "Edit in settings.json"

Remove the line “liveServer.settings.NoBrowser”: true,"

And manually add your preferred browser. Example:

“liveServer.settings.CustomBrowser”:“chrome:PrivateMode”

IF this help you, please follow me! 🤘