Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watching doesn't work if parent directory contains special characters #42

Closed
SpaceK33z opened this issue Dec 24, 2016 · 7 comments
Closed
Labels

Comments

@SpaceK33z
Copy link
Member

Easiest way to reproduce this is by running the webpack tutorial from a directory that contains parentheses in the name.

This is an issue in chokidar (see paulmillr/chokidar#533). There is a PR open to fix it.

This will also be fixed if we move to another watching library, which #41 intends to do.

For more info:

@marcoqu
Copy link

marcoqu commented Mar 1, 2017

Hi, any news on this?
Is watchpack going to move to sane or are we waiting a patch for chokidar?
Just asking because I'm stuck on a Dropbox Business folder, and there's no way to make it work...

Any workaround?
Thanks

@gbmeireles
Copy link

gbmeireles commented Mar 8, 2017

@marcoqu I am trying to get it working by making a link to a folder without any especial characters.
On windows on an admin prompt:
mklink /J "C:\Projects" "C:\Dropbox (Business)\Projects"

@shshaw
Copy link

shshaw commented Mar 8, 2017

@gbmeireles In this case, C:\Projects is the link and C:\Dropbox (Business)\Projects is where the actual files reside?

@gbmeireles
Copy link

@shshaw Yes, that`s right.

@gbmeireles
Copy link

gbmeireles commented Mar 8, 2017

@shshaw @marcoqu I did not manage to make the symlink approach work like I expected. What did work for me was moving the folder to a valid path and then making a symlink back to the original path but that may not be possible for everyone. Sorry.

@marcoqu
Copy link

marcoqu commented Mar 9, 2017

@gbmeireles @shshaw The issue with dropbox businness and watchpack is that watchpack does not work with folders with brackets or with symlinks, and dropbox also doens't sync symlinks. So that won't fix it.

The hack that made it work for me is manually replacing is-glob used by chokidar with the latest version (3.1.0?). That actually worked. See also: paulmillr/chokidar#533

You should be able to use npm shrinkwrap to override deep dependencies from webpack/watchpack:
How do I override nested NPM dependency versions?

@Jorenm
Copy link

Jorenm commented May 26, 2017

Here's a copy of the shrinkwrap I used to fix it:

{
  "dependencies": {
    "chokidar": {
      "version": "1.6.1",
      "from": "chokidar@1.6.1",
      "dependencies": {
        "is-glob": {
          "version": "3.1.0",
          "from": "is-glob@2.0.1"
        }
      }
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants