-
Notifications
You must be signed in to change notification settings - Fork 914
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
kedro --version
isn't working
#4296
Comments
This is the stack trace when run |
While investgating this issue, I think it's worth checking why CI didn't catch this error, we have this test inplace. def test_print_version(self):
"""Check that `kedro --version` and `kedro -V` outputs contain
the current package version."""
result = CliRunner().invoke(cli, ["--version"])
assert result.exit_code == 0
assert version in result.output |
how to reproduce the error? the command works well for me |
@DimedS |
I confirm |
I figured out what the problem is: kedro/kedro/framework/cli/cli.py Line 220 in a1fae50
Due to the changes in lazy loading PR, I re-ordered the global commands list to consider
So if any plugin with global commands (eg. Kedro-Viz) is installed in your env, the The solution is simply to re-order the command groups to |
Description
Reported by @noklam, since adding lazy loading of Kedro subcommands, the
--version
/-V
option isn't working.Context
This bug is originating in Kedro 0.19.7 -> #3883
The text was updated successfully, but these errors were encountered: