-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
Generator._queues
doesn't refresh after Env.create
, Env.instantiate
or Generator.composeWith
#241
Comments
Try to debug with env |
Yeah, exactly. With the So not even invoking |
@manuth I really don't get what you are trying to explain. Without a real test case, I think the problem is |
Are you creating another custom priority at
|
This is exactly what's causing the problem. |
No, custom priorities are individual queues, there is no way to share a custom priority.
Both cases will cause unexpected behaviours.
|
I recommend to create something like:
And make |
Got it! |
In order to extend generators with
customPriorities
correctly, I'd expect that the_queues
of every generator in anEnvironment
are refreshed as soon as a new priority is added to theEnvironment.runLoop
.Reproducing the Error
Create a generator with a step
cleanup
which should execute beforeend
by passing these options tosuper
:./lib/generators/a/index.js
Create a generator which inherits said generator:
./lib/generators/b/index.js
Expected Result
After manipulating the
runLoop
of the environment, the queues of the generator should be reordered.Therefore the console output should look as followed:
In case you invoked
this.composeWith
:In case you invoked
this.env.create
orthis.env.instantiate
:Actual Result
Instead of said console output, following is logged:
In case you invoked
this.composeWith
:In case you invoked
this.env.create
orthis.env.instantiate
:The text was updated successfully, but these errors were encountered: