-
Notifications
You must be signed in to change notification settings - Fork 41
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
error when writing diff output to file #453
Labels
bug
Something isn't working
Comments
This is a new issue in v0.10. Diff to file output was working fine in v0.9 |
Confirmed. It appears to be a regression in v0.10.1. v.0.10.0
v0.10.1
|
Fixed... fix will be in the next release of course, but until then, a very workable workaround is to redirect stdout using the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following command:
$ kart diff -o json --output test.json
causes this exception:
File "kart_cli.py", line 4, in
File "kart\cli.py", line 333, in entrypoint
File "lib\site-packages\click\core.py", line 829, in call
File "lib\site-packages\click\core.py", line 782, in main
File "kart\cli.py", line 157, in invoke
File "lib\site-packages\click\core.py", line 1259, in invoke
File "lib\site-packages\click\core.py", line 1066, in invoke
File "lib\site-packages\click\core.py", line 610, in invoke
File "lib\site-packages\click\decorators.py", line 21, in new_func
File "kart\diff.py", line 198, in diff
File "kart\text_diff_writer.py", line 33, in init
File "kart\output_util.py", line 247, in resolve_output_path
AttributeError: 'str' object has no attribute 'open'
[12092] Failed to execute script kart_cli
Looks like resolve_output_path is assuming that the object is a Path object, while it's just a plain string
The text was updated successfully, but these errors were encountered: