DEV Community

Faisal Albasu
Faisal Albasu

Posted on

Don't do this when saving your project

I'm writing this on a Friday night but I've been struggling with this issue since Monday. This is for anyone who is in the same situation as me so as not to waste time as I did searching through Google and a long Github thread for a solution.

I recently changed my computer so I had to reinstall all my apps from scratch and while opening VS code for the first time I came across this annoying bug of Google Chrome not refreshing even after setting up a live server and changing my settings to auto-save after 500ms. I had to go through the Repository for several days and I stumbled upon this thread, turns out a lot of other have been having the same problem for over a year. After scouring for what seemed like an eternity, I came across this 👇

Screen Shot 2020-12-04 at 23.25.04

and this pretty much sums the whole solution to the problem. But just to elaborate a little, you shouldn't use a period when naming your folder. I don't know why exactly but that is the case and make sure to avoid it. Of course, not everybody has the exact same problem so it might not work for people having a slightly different issue but it worked for me and you also should at least cross-check your work if you're having a similar issue.

I know this is all over the place but I just thought I should immediately put it out so as to help other people avoid making the same mistake and wasting an infinite amount of time as I did.

Top comments (3)

Collapse
 
hbaguette profile image
H-Baguette

Unsure if this is what's causing it in this specific instance, but on *nix systems, a file or folder starting with a '.' indicates it should be hidden from the user by default. It's usually used for things like config folders.

Collapse
 
albas99 profile image
Faisal Albasu

Oh, then maybe the issue is on Mac and possibly Windows also

Collapse
 
hbaguette profile image
H-Baguette

IIRC Macs function similarly to *nix, so it wouldn't be surprising if they handled dotfiles the same way, too.