Skip to content

[linux] New registered File Watcher doesn't work correctly #5738

Open
@svor

Description

Description

I've created new FileSystemWatcher in the next way:

    const csprojPattern = '**/*.*';
    const csprojWatcher = theia.workspace.createFileSystemWatcher(csprojPattern, false, true, true);
    csprojWatcher.onDidCreate(url => {
        outputChannel.appendLine('*********File created:  ' + url);
        //restoreProject(url, outputChannel);
    });

Where '**/*.*' means that I want to catch all files.

The problem is that this file watcher, which should catch all created files, skips some events during cloning the project.

Reproduction Steps

  1. Download this plug-in which creates new file watcher to catch all created files:
    file-watcher.zip
  2. Extract and put file-watcher/file_watcher.theia into theia/plugins folder and run theia
  3. Open an empty workspace and clone https://github.com/gothinkster/aspnetcore-realworld-example-app
  4. Open output view with name logs
  5. path_to_workspace/aspnetcore-realworld-example-app/src/Conduit/Conduit.csproj was cloned but there is no log about it in output view.

OS and Theia version:

OS: Fedora28 (5.0.9-100.fc28.x86_64)
Theia: @theia/example-browser 0.8.0

Metadata

Assignees

No one assigned

    Labels

    OS/Linuxissues related to the Linux OSbugbugs found in the applicationfile-watchersissues related to filesystem watchers - nsfwfilesystemissues related to the filesystem

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions