Giter Club home page Giter Club logo

Comments (2)

grahamb avatar grahamb commented on May 17, 2024

I'm the reporter on microsoft/vscode#142694. Just to be clear, this issue manifests itself as any change made to a deeply-nested file not being reflected in VSCode. The mkdir -p demo was just a simple case. I'm seeing this in real projects with deeply-nested structures, most of which were created from within VSCode itself. My last comment on microsoft/vscode#142694 has a demo of this happening.

from watcher.

king-11 avatar king-11 commented on May 17, 2024

similar issuer encountered with rust analyzer not being able to detect file changes. setting up watcher in rust analyzer instead seems to work maybe taking a look at what they are doing might help

rust-lang/rust-analyzer#15603 (comment)

Reproduce steps:

  1. create an empty project, with a module file like tmp.rs
  2. in root file(main.rs or lib.rs), write mod tmp;
  3. open project with VSCode, no error
  4. in terminal, create another module, like cp ./tmp.rs ./tmp2.rs
  5. in root file, write mod tmp2;
  6. You would find it reports an error unresolved module, can't find module file: tmp2.rs or...

Open the file tmp2.rs in VSCode would load the module.

And I found that

  • RA does respect change/deletion from other tools
  • once we opened tmp2.rs file once, then RA respects creation with steps 4-6 after we delete tmp2.rs

Maybe this is a bug of VSCode? Not sure...

from watcher.

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.