Skip to content

File is not tracked when is/was ignored and watchman is enabled #8427

@fgsch

Description

@fgsch

Description

I had a file in .gitignore. jj file track --include-ignored didn't track the file.
I then removed the pattern from .gitignore. Running git status shows the file as untracked, but jj still doesn't track it automatically or manually after running jj file track.

@bryceberger asked whether I was using watchman and commented they had issues with it not picking up new files if they were originally on the ignore list.

I disabled watchman and the file started showing.

Steps to Reproduce the Problem

  1. Enable watchman
  2. Add file to .gitignore
  3. Run jj file track --include-ignored file
  4. Remove file from .gitignore
  5. Run jj status or jj file track file

Expected Behavior

  1. File is tracked automatically when removed from .gitignore
  2. File is tracked even if it's in .gitignore after running jj file track --include-ignored file

Actual Behavior

File is not tracked

Specifications

  • Platform: macos 26.1
  • Version: jj 0.36.0
  • Watchman: 2025.12.22.00

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions