Skip to content

watchman error on deleted vcs dir #25

Closed

Description

@dturner-tw

If you watch a directory that contains a vcs directory, and then later delete that directory, watchman does not detect this, so it continues to attempt to use that directory for cookies, and thus nothing works.

(This is probably an edge case, but it is worth reporting)

Activity

  1. sunshowers commented on Mar 4, 2014

    @sunshowers
    Contributor

    Yeah, we assume that the VCS dir is permanent. This shouldn't be very hard to fix.

  2. wez commented on Aug 5, 2015

    @wez
    Contributor

    Proposed approach to tackle this is check for ENOTDIR when creating a cookie file fails, then re-compute the cookie dir location

  3. wez commented on Feb 22, 2018

    @wez
    Contributor

    Finally fixed this(!)

  4. kareemaly commented on Mar 14, 2018

    @kareemaly

    Running this command watchman watch-del /path/to/dir fixed the issue for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions