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

fix(compile), avoid showing the same component-id multiple times #8701

Merged
merged 2 commits into from
Mar 21, 2024

Conversation

davidfirst
Copy link
Member

It's easy to reproduce it by running bit create node-env my-env && bit compile.
Until now it used a pub-sub mechanism for the compilation events. In this case, because bit install wasn't running yet, the aspect failed to load and fallback to re-compile. Practically, compiling the component twice, sending two events and then reporting these two events to the user.
In this PR, the event of completing the compile has been removed. It gets the results directly instead of using events.

@davidfirst davidfirst merged commit 8f9aa25 into master Mar 21, 2024
11 checks passed
@davidfirst davidfirst deleted the duplicate-compile-msg branch March 21, 2024 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants