Skip to content

tsc --watch doesn't work on NTFS partitions on LinuxΒ #63678

Closed
microsoft/typescript-go
#4661

Description

πŸ”Ž Search Terms

"tsc --watch", "fanotify_mark", "failed: no such device"

πŸ•— Version & Regression Information

  • This changed between versions 6.0.3 and 7.0.1-rc

⏯ Playground Link

No response

πŸ’» Code

Setup reproduction project:

npm init -y
npm i typescript
npx tsc --watch index.ts

Error occurs regardless of code, this is the code I used:

console.log("test")

Here's a copy of the project: Reproduction.zip

πŸ™ Actual behavior

Typescript compiles files once, but does not react to changes. Instead an error message is printed to console.

failed to watch directory /mnt/solid/Code/Experiment/Reproduction: fanotify_mark on '/mnt/solid/Code/Experiment/Reproduction' failed: no such device

OS: Linux ChodbaU 5.15.0-58-generic #64-Ubuntu SMP Thu Jan 5 11:43:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Filesystem: NTFS, loaded using fuseblk

πŸ™‚ Expected behavior

Typescript should react to file changes

Additional information about the issue

Everything works on my primary partition, which is ext3. I have encountered this error when upgrading my project to Typescript 7. I have verified that it is not an issue with my project by creating a simpler example.

One issue is relevant: #63646. I believe this is not a duplicate for the following reasons:

  • they also get a fanotify_mark error, but a different error message (operation not supported vs no such device)
  • they get their error in Docker while I encountered it on bare metal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Needs Investigation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions