Skip to content

OS X: Nonexistent path in query output #76

Closed

Description

@dturner-tw

To repro:

git clone https://github.com/torvalds/linux
cd linux
watchman watch .
sleep 15 #or so -- until watchman is finished loading up the initial state.
watchman -j < query1
find . -name 'u*.c'|xargs sed -i '' 's/memory/forget/g'; sleep
1;watchman -j < ~/query2

query1 and query2 are the same but for the "since" field. You can use any value for since for query1, but query2 should use the "clock" field from the output of query1. Here is the query:

["query", "/Users/dturner/linux", {"expression": ["anyof", ["type",
"f"], ["type", "d"], ["type", "l"]], "since":
"c:1421691971:94141:1:222", "empty_on_fresh_instance": true, "fields":
["name", "exists", "ctime_ns", "mtime_ns", "size", "uid", "gid",
"ino", "dev", "mode"]}]

The bug is that the output contains entries like
arch/hexagon/mm//Users/dturner/linux/arch/hexagon/mm/.uaccess.c.15532

Of course, there are no files by that name. It looks like a full path is occasionally being concatenated instead of a filename.

Activity

  1. added a commit that references this issue on Feb 4, 2015
    005a93c
  2. dturner-tw commented on Feb 5, 2015

    @dturner-tw
    ContributorAuthor

    Thanks!

  3. added a commit that references this issue on Mar 14, 2022
  4. added a commit that references this issue on Mar 20, 2022
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