GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Watch Mode stops functioning if emitted file is busy or locked · Issue #44 · webpack/watchpack

Watch Mode stops functioning if emitted file is busy or locked #44

New issue
Copy link
New issue
Copy link
Closed
Closed
Watch Mode stops functioning if emitted file is busy or locked#44
Copy link

Description

@SpaceK33z
SpaceK33z
opened on Dec 24, 2016
Issue body actions

Do you want to request a feature or report a bug?
A bug

What is the current behavior?
When in watch mode, if a file is busy when attempting to emit to it, watch stops functioning. The following error is appropriately logged:

Error: EBUSY: resource busy or locked, open '..\js\bundle.js'
    at Error (native)

If the current behavior is a bug, please provide the steps to reproduce.
run webpack --watch
save a watched file
output to a file which is currently being used by another process

What is the expected behavior?
An error is logged to the console but watch mode continues to function. This is the behavior of Grunt and Gulp watchers.

Please mention other relevant information such as the browser version, Node.js version, Operating System and programming language.
A valid reason why a file could be momentarily busy is if it is being synced to a server directory.

--

Here are the details of my setup:

  • webpack version: 2.1.0-beta.25
  • node version: 6.9.1
  • os: windows 10
  • browser: chrome 55

--

Moved from webpack/webpack#3523

Reacted by Brent and Jessy V

Activity

  1. mika76 commented on Jun 5, 2017

    @mika76
    mika76
    on Jun 5, 2017
    More actions

    ping 🏓

    This is such an irritating little issue, couldn't someone please take it up? 🙏

    Reacted by Mladen Mihajlović, Jeroen Vinke, Michał Gajek, Brent, Jessy V and Keith Banner
  2. hotwer commented on Jun 11, 2018

    @hotwer
    hotwer
    on Jun 11, 2018
    More actions

    I agree, sometimes webpack takes a while to restart, having the watch restart by itself is important.

  3. tbondon commented on Jun 12, 2018

    @tbondon
    tbondon
    on Jun 12, 2018
    More actions

    I've had this problem for 2 weeks and finally found a solution, it may not be the case for everyone but I use OneDrive to save my files and coincidentally when i checked right after having the issue, OneDrive was uploading the damn file. So I just stopped OneDrive :P

  4. sokra commented on Jul 10, 2019

    @sokra
    sokra
    on Jul 10, 2019
    Member
    More actions

    old issue, create a new issue if this is still an issue

  5. sokra
    closed this as completedon Jul 10, 2019
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

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.