Open sandydoo opened 3 years ago
Getting same kind of error during the initial build. Maybe related https://github.com/embroider-build/embroider/issues/722
Progress!
So dummy apps are special in that they get an owning addon that’s always rebuilt, right?
Well, this treeInstance.sync()
that gets run on rebuilds is problematic. It’s sort of nuking the working directory. My poor little in-repo addon comes along next in the queue and doesn’t get a sync()
, so it’s never added back to the working directory. That’s why the lib
folder goes missing on rebuilds.
Also, it’s deleting something called .embroider-reuse.json
— looks important 🤷
Doing a sync()
on the in-repo addon is enough to fix the issue, but:
TreeSync
instance? e.g. .embroider-reuse.json
. What else is being deleted here?
I’ve got an addon with an in-repo addon that crashes on subsequent builds. The initial build goes well, but if you modify any file and cause a rebuild, it crashes.
The entire
lib
folder disappears from the temporary working directory after the rebuild, so, naturally, it crashes whenever anything in the pipeline tries to read the in-repo component file.And it only happens in an addon. I couldn’t replicate this in an app.
Steps to reproduce
ember s
Works on both of the Embroider optimization settings. You don‘t even need to use anything from the in-repo addon to get it to crash.
Versions
Updates
JOBS=1
gets us a slightly more informative error:@embroider
to0.40.0
. Still reproducable.