Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
3 tasks done
DrKlonk opened this issue Sep 3, 2024 · 2 comments · Fixed by #6020
Closed
3 tasks done
Labels
Bug: Validated This PR or Issue is verified to be a bug within Stencil

Comments

@DrKlonk
Copy link

DrKlonk commented Sep 3, 2024

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

@ionitron-bot ionitron-bot bot added the triage label Sep 3, 2024
@DrKlonk DrKlonk 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 Sep 3, 2024
@christian-bromann christian-bromann added Bug: Validated This PR or Issue is verified to be a bug within Stencil and removed triage labels Sep 5, 2024
@christian-bromann
Copy link
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!

@luisbytes
Copy link

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
Labels
Bug: Validated This PR or Issue is verified to be a bug within Stencil
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants