late-ram-12573
08/17/2022, 1:35 PMwide-midnight-78598
08/17/2022, 1:37 PMlate-ram-12573
08/17/2022, 1:46 PMwide-midnight-78598
08/17/2022, 1:46 PMroots
was picking up the new folders on every command, without any funny business, I'll grab your repo and try nowlate-ram-12573
08/17/2022, 1:47 PMwide-midnight-78598
08/17/2022, 1:49 PMsj@tinyrick pants_exploration % ./pants roots
src/lib
src/projects
src/tools
sj@tinyrick pants_exploration % mkdir src/helloworld
sj@tinyrick pants_exploration % ./pants roots
src/helloworld
src/lib
src/projects
src/tools
Seems to work fine - I wonder if this is a WSL2 thing? Or, if maybe there is some strange AllRoots
caching, but only on windows?late-ram-12573
08/17/2022, 1:50 PMlate-ram-12573
08/17/2022, 1:50 PMwide-midnight-78598
08/17/2022, 1:50 PMwide-midnight-78598
08/17/2022, 1:51 PM./pants -ldebug roots
mkdir src/123456
./pants -ldebug roots
Curious if the debug logs shows anything, both "before" and "after" a changewide-midnight-78598
08/17/2022, 1:56 PM[GLOBAL]
pantsd = false
late-ram-12573
08/17/2022, 1:57 PMwide-midnight-78598
08/17/2022, 1:58 PMlate-ram-12573
08/17/2022, 1:59 PMwide-midnight-78598
08/17/2022, 1:59 PMlate-ram-12573
08/17/2022, 2:01 PMwide-midnight-78598
08/17/2022, 2:01 PM~
) fixes the issue."wide-midnight-78598
08/17/2022, 2:02 PMlate-ram-12573
08/17/2022, 2:06 PMwide-midnight-78598
08/17/2022, 2:09 PMwide-midnight-78598
08/17/2022, 2:12 PMenough-analyst-54434
08/17/2022, 2:17 PMdf -h
say? IIUC WSL2 uses, of all things, 9p for mounting Windows drives / folders. That's a network filesystem (from Plan 9!!) and network filesystems pretty famously don't work with many more advanced fs operations like locking and event notifications in general (NFS v4 I think finally mostly does work with locking, not sure about fs events).late-ram-12573
08/17/2022, 2:20 PMwide-midnight-78598
08/17/2022, 2:20 PMenough-analyst-54434
08/17/2022, 2:21 PMenough-analyst-54434
08/17/2022, 2:22 PMenough-analyst-54434
08/17/2022, 2:24 PMdf -T
?enough-analyst-54434
08/17/2022, 2:24 PMlate-ram-12573
08/17/2022, 2:27 PMlate-ram-12573
08/17/2022, 2:28 PMenough-analyst-54434
08/17/2022, 2:33 PMenough-analyst-54434
08/17/2022, 2:33 PM--no-pantsd
is not really any sort of solution at all. FS event handling is critical to perf.late-ram-12573
08/17/2022, 2:36 PMenough-analyst-54434
08/17/2022, 2:39 PMenough-analyst-54434
08/17/2022, 2:41 PMenough-analyst-54434
08/17/2022, 2:46 PMcat /proc/filesystems
say? Any ntfs in there?late-ram-12573
08/17/2022, 2:47 PMlate-ram-12573
08/17/2022, 2:48 PMenough-analyst-54434
08/17/2022, 2:49 PMenough-analyst-54434
08/17/2022, 2:53 PMapt update && apt install ntfs-3g
?I think WSL(2) defaults to an Ubuntu / Debian image.enough-analyst-54434
08/17/2022, 2:54 PMlate-ram-12573
08/17/2022, 2:57 PMhappy-kitchen-89482
08/17/2022, 3:00 PMenough-analyst-54434
08/17/2022, 3:01 PM--no-pantsd
- it forced the daemon to restart. The total wall time of rm -rf .pids && ./pants X
should be >= ./pants --no-pantsd X
enough-analyst-54434
08/17/2022, 3:01 PMlate-ram-12573
08/17/2022, 3:02 PMhappy-kitchen-89482
08/17/2022, 3:02 PMlate-ram-12573
08/17/2022, 3:03 PMhappy-kitchen-89482
08/17/2022, 3:04 PMhappy-kitchen-89482
08/17/2022, 3:06 PMenough-analyst-54434
08/17/2022, 3:07 PMenough-analyst-54434
08/17/2022, 3:07 PMenough-analyst-54434
08/17/2022, 3:07 PMenough-analyst-54434
08/17/2022, 3:08 PMlate-ram-12573
08/17/2022, 3:09 PMenough-analyst-54434
08/17/2022, 3:10 PMlate-ram-12573
08/17/2022, 3:11 PMhappy-kitchen-89482
08/17/2022, 3:11 PMlate-ram-12573
08/17/2022, 3:13 PM