Mac: Watcher fails on folders with glob characters in name
- VSCode Version: 0.10.11
- OS Version: OS X 10.10.5 Yosemite
I don't know how to reproduce it, but a jsconfig.json file that was created on a plugin activation script didn't appear on VS Code, yet it did appear when I run ls on the folder. After I went to the workspace settings in VS Code, something refreshed, and the file finally appeared.
I think it might be related to a folder name. Try this on a workspace on a folder: /Users/workspaces/tests/myNewApp% $$ @! Tabs app/testsblah/ (This is a valid folder on my Mac)
This is: https://github.com/paulmillr/chokidar/issues/300
Would it be possible to automatically escape glob characters, so this would work as expected as in, instead of asking to watch: /Users/workspaces/tests/myNewApp% $$ @! Tabs app/testsblah/ ask to watch something like: /Users/workspaces/tests/myNewApp% $$ @! Tabs app/testsblah/
If this is not supported, could you at least show a warning when this happens:
- Sorry, but VS Code doesn't work well with this folder because etc.... So the user will understand what's happening?
+1 for a warning, the escaping needs to be supported in chokidar
Still not working with these steps:
- Open a folder named
myNewApp% $$ @! Tabs app - Run
echo "hi" > foo.txtin the terminal to create a filefoo.txt - It doesn't show up in the file explorer until I press Refresh
If I do the same steps in a folder without special characters, the file shows up in the explorer right away.

Works for me, what are you doing differently?
Ok, that scenario works when I open the parent folder of 'myNewApp ...'. It doesn't work when I open 'myNewApp' itself. Should it?

Confirmed, reopening.
We should get rid of chokidar...
We closed this issue because we are unable to reproduce the problem with the steps you describe. Chances are we've already fixed your problem in a recent version of VS Code. If not, please ask us to reopen the issue and provide us with more detail. Our issue reporting guidelines might help you with that.
Happy Coding!