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

BEAR_DEPS executing dependency bear after and not before actual bear #6089

Open
mksoska opened this issue Nov 30, 2019 · 0 comments
Open

BEAR_DEPS executing dependency bear after and not before actual bear #6089

mksoska opened this issue Nov 30, 2019 · 0 comments

Comments

@mksoska
Copy link

mksoska commented Nov 30, 2019

Overview Description

Hi, while I was developing my own bear in coala, I was struggling with BEAR_DEPS. Bears stated in this option should run first, but it seems like those dependency bears are executed not before but after my bear.
Here are some pictures step by step:

Screenshot 2019-11-30 at 16 18 12

I specified that I want to run IndentationBear as dependency bear. In run method you don't see "results = dependency_results[IndentationBear]", because I don't need to later proceed the bear results, l just want to run it on that file.

What happens next is that my own bear is executed:
Screenshot 2019-11-30 at 16 33 19

And after my bear finishes the check of a file, the IndentationBear is executed.
Screenshot 2019-11-30 at 16 35 37

The same thing happened when I tried BEAR_DEPS with coala-tutorial files from coala documentation, so I guess this problem isn't caused by code implemented with my bear.
This whole thing is even stranger, because the debug logging says, that those dependency bears are executed correctly right at the start.
Screenshot 2019-11-30 at 16 40 57

Additional Information:

If you need any addition info or even the code of my bear, I don't have any problem to share it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant