Skip to content

failed to stat a resource for file watching #695

Open

Description

@Eskibear

Repro steps: Open spring-petclinic.

MainThreadFileSystem#$watch(): failed to stat a resource for file watching (extension: vscjava.vscode-java-dependency, path: file:///c:/Users/yanzh/Desktop/spring-petclinic/target/generated-sources/annotations, recursive: true, session: 0.2511242984362432): EntryNotFound (FileSystemError): Error: ENOENT: no such file or directory, stat 'c:\Users\yanzh\Desktop\spring-petclinic\target\generated-sources\annotations'

Activity

  1. Eskibear commented on Oct 27, 2022

    @Eskibear
    MemberAuthor

    Also occur in vscode-java-test extension.

    ERR MainThreadFileSystem#$watch(): failed to stat a resource for file watching (extension: vscjava.vscode-java-dependency, path: file:///c:/Users/yanzh/Desktop/spring-petclinic/target/generated-sources/annotations, recursive: true, session: 0.21007677817315185): EntryNotFound (FileSystemError): Error: ENOENT: no such file or directory, stat 'c:\Users\yanzh\Desktop\spring-petclinic\target\generated-sources\annotations'

    ERR MainThreadFileSystem#$watch(): failed to stat a resource for file watching (extension: vscjava.vscode-java-dependency, path: file:///c:/Users/yanzh/Desktop/spring-petclinic/target/generated-test-sources/test-annotations, recursive: true, session: 0.5921958898854154): EntryNotFound (FileSystemError): Error: ENOENT: no such file or directory, stat 'c:\Users\yanzh\Desktop\spring-petclinic\target\generated-test-sources\test-annotations'

    ERR MainThreadFileSystem#$watch(): failed to stat a resource for file watching (extension: vscjava.vscode-java-test, path: file:///c:/Users/yanzh/Desktop/spring-petclinic/target/generated-test-sources/test-annotations, recursive: true, session: 0.48545096781711017): EntryNotFound (FileSystemError): Error: ENOENT: no such file or directory, stat 'c:\Users\yanzh\Desktop\spring-petclinic\target\generated-test-sources\test-annotations'

  2. jdneo commented on Oct 31, 2022

    @jdneo
    Member

    I found that though there is an error in the console, the file watcher works as expected after the folder is created on disk.

    I filed an issue upstream: microsoft/vscode#165025

    Let's wait and see the response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstream

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions