vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Mac: Watcher fails on folders with glob characters in name

Open digeff opened this issue 10 years ago • 10 comments

  • 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.

digeff avatar Mar 22 '16 21:03 digeff

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)

digeff avatar Mar 22 '16 22:03 digeff

This is: https://github.com/paulmillr/chokidar/issues/300

bpasero avatar Mar 23 '16 05:03 bpasero

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?

digeff avatar Mar 23 '16 15:03 digeff

+1 for a warning, the escaping needs to be supported in chokidar

bpasero avatar Mar 23 '16 15:03 bpasero

Still not working with these steps:

  • Open a folder named myNewApp% $$ @! Tabs app
  • Run echo "hi" > foo.txt in the terminal to create a file foo.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.

roblourens avatar Jun 02 '17 16:06 roblourens

panel-red

Works for me, what are you doing differently?

bpasero avatar Jun 03 '17 07:06 bpasero

Ok, that scenario works when I open the parent folder of 'myNewApp ...'. It doesn't work when I open 'myNewApp' itself. Should it?

jun-03-2017 14-47-26

roblourens avatar Jun 03 '17 21:06 roblourens

Confirmed, reopening.

chrmarti avatar Jun 06 '17 17:06 chrmarti

We should get rid of chokidar...

bpasero avatar Jun 08 '17 07:06 bpasero

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!

vscodebot[bot] avatar Oct 07 '19 19:10 vscodebot[bot]