Coder Social home page Coder Social logo

Comments (4)

llllvvuu avatar llllvvuu commented on April 27, 2024 1

I found the bisect:

git checkout dc113f8170 // latest `main` as of this post
git revert e40730f
npm run build && npm run build:compiler

I suspect the issue is that the modifiedTime is the modified time of the directory, not the file. At least when I console.log it and compare with stat this seems to be the case, and fileOrDirectory is printing as the directory and only relativeFileName has the file.

from typescript.

NMinhNguyen avatar NMinhNguyen commented on April 27, 2024

Just to add an observation: I think this issue is Sonoma specific as watch seems to work on 13.6.4 (Ventura).

from typescript.

llllvvuu avatar llllvvuu commented on April 27, 2024

When testing this issue, make sure you don't use Vim. Creating/deleting files seems to trigger the file watcher, so it's possible for Vim users to not notice this issue (possibly due to swap files) while VSCode users do.

Consistent repro can be done like:

tsc --watch --watchFile usefseventsonparentdirectory
echo "console.log('Hello world!')" > main.ts
cat main.js
echo "console.log('Hello world 2!')" > main.ts
cat main.js

from typescript.

o-alexandrov avatar o-alexandrov commented on April 27, 2024

For anyone (like me just now) who stumbles on this, the fix hasn't been released on npm yet in non-next tags.

from typescript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.