Skip to content

bug: Copy tasks leads to EBUSY: resource busy or locked on Windows OR flattened structure on Mac #5966

Closed

Description

@DrKlonk

Prerequisites

Stencil Version

4.21.0

Current Behavior

When we have a copy task for <subfolder> for the dist buildTarget, to ../<subfolder>, we get an error on Windows. On Mac, the structure gets flattened. The folder structure is lost.

Expected Behavior

I expect the assets folder to be copied as is. And I expect to be able to copy it to one folder higher than the dist folder.

System Info

System: node 20.15.0
    Platform: windows (10.0.22631)
   CPU Model: 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz (8 cpus)
    Compiler: C:\Users\Joran\code\test\node_modules\@stencil\core\compiler\stencil.js
       Build: 1724698030
     Stencil: 4.21.0
  TypeScript: 5.5.3
      Rollup: 2.56.3
      Parse5: 7.1.2
      jQuery: 4.0.0-pre
      Terser: 5.31.1

Steps to Reproduce

Create a Stencil project version 4.21.0

Create an assets folder in src
Create a subfolder in the assets folder

Add a copytask to the dist buildTarget with

copy: [{ src: 'assets', dest: '../assets', warn: true }]

Run npm run build

On Windows, it leads to an EBUSY error (reverting to 4.20.0 resolves the issue)
On Mac, it leads to all the folders contents to be flattened, i.e. the folder structure in src is lost in the build.

Code Reproduction URL

https://github.com/DrKlonk/stencil-copy-bug

Additional Information

Related to, but different from #5956

Activity

  1. changed the title [-]bug: Copy tasks leads to EBUSY: resource busy or locked[/-] [+]bug: Copy tasks leads to EBUSY: resource busy or locked on Windows OR flattened structure on Mac[/+] on Sep 3, 2024
  2. added
    Bug: Validated
    and removed on Sep 5, 2024
  3. christian-bromann commented on Sep 5, 2024

    @christian-bromann
    Member

    Thanks for raising the issue @DrKlonk the Stencil team currently has a lot of competing priorities and can't promise to be able to take a look at this anytime soon. We recommend to get involved and help us resolve this bug by providing a pull request with a fix. We are happy to provide necessary guidance and appreciate any help!

  4. luisbytes commented on Sep 11, 2024

    @luisbytes

    Hello @christian-bromann, I think this could be the problem #5899

    As @DrKlonk comments in the previous version, the error does not occur.

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

    Bug: Validated

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions