tapio / live-server

A simple development http server with live reload capability.
http://tapiov.net/live-server/
4.41k stars 484 forks source link

Live-server opening the wrong directory #364

Open ghost opened 3 years ago

ghost commented 3 years ago

Issue description

I'm calling live-server on Visual Studio Code terminal, but it doesn't open the current directory html file. It opens a folder where the file's folder is contained.

It should open: C:\Users\Guilherme\Documents\Javascript\complete-javascript-course-master\03-Developer-Skills\starter\index.html

It opens: C:\Users\Guilherme\Documents\Javascript

Software details

MyNameIsTakenOMG commented 3 years ago

Same here, unluckily, the problem seems still existing.

sarahbellum commented 2 years ago

Any updates on this. Seeing a similar issue. it Opens a completely different file for me. Thanks!

AD-6Skyraider commented 2 years ago

Currently looking for a solution for this as well.

Astartic commented 1 year ago

I am having a similar issue. Are any solutions posted anywhere?

homerjam commented 12 months ago

+1

DimeNiceTry commented 5 months ago

I had problem like this. I deleted files of project then created project with same name. Then when I was open new project with Live Server it was open files that doesn't even exist on my PC.

I soluted this problem by clearing logs of extention. U need to open the extentions file (idk where is it in Mac OS or Linux). In Windows this file is located in %USERPROFILE%.vscode\extensions. So I opened "ritwickdey.live-server" directory and deleted CHANGELOG.md file then restart VS Code. This helped me.