Closed abbradar closed 1 year ago
On the contrary, I am happy to fix bugs for you! Let me look into this. If you haven't heard back from me for a couple days, ping me again!
From: Nikolay Amiantov @.> Sent: Tuesday, April 25, 2023 3:15:28 PM To: langfield/ki @.> Cc: Subscribed @.***> Subject: [langfield/ki] AssertionError in whatthepatch when parsing a binary diff (Issue #127)
I have encountered an issue when pulling changes from Anki: Traceback (most recent call last): File "/nix/store/6fhnx3gzcns4h41m9v73nxknrgdhd6l4-python3. 10-ki-unstable-git-2023-01-25/bin/. ki-wrapped", line 9, in
I have encountered an issue when pulling changes from Anki:
Traceback (most recent call last):
File "/nix/store/6fhnx3gzcns4h41m9v73nxknrgdhd6l4-python3.10-ki-unstable-git-2023-01-25/bin/.ki-wrapped", line 9, in
I have dumped the raw git diff and indeed, it's a binary diff on which the error is reproducible. I plan to also submit a bug report to whatthepatch repo.
Have someone encountered this, maybe there is a known workaround? On a sidenote, this project seems being rewritten in Haskell right now, so the Python version is not actively maintained — is that right?
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/langfield/ki/issues/127__;!!KGKeukY!zUoKpttl4Vf8HBAVgcb7ZZNcWtSmZfBts9PvgqQYef1XRtnWf0txH_3DYA8A6OBZ6I-k6irQts7jDfSm_wXODOejwdf35g$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AISQNI3WWV3VVJT3C7TOZWTXDAPFBANCNFSM6AAAAAAXLNWFCA__;!!KGKeukY!zUoKpttl4Vf8HBAVgcb7ZZNcWtSmZfBts9PvgqQYef1XRtnWf0txH_3DYA8A6OBZ6I-k6irQts7jDfSm_wXODOebqC00CA$. You are receiving this because you are subscribed to this thread.Message ID: @.***>
Ah, I see you've posted the binary diff in your issue for whatthepatch
, great! I'll get right on it.
Re: the Haskell rewrite. I'm working on it. I've got 1 of 3 ops implemented, but currently I think it's still a bit clunky. I am going to try and golf the code a bit, test the clone
op well, and then move on to pull
and push
. Slow and steady.
Thank you for the reply! :) Someone has already tackled the issue.
No rush with the rewrite, I know it takes time.
I'm actually unable to reproduce this on whatthepatch==1.0.2
, and I can't get their test to fail in the expected way either. Can you give a MWE?
Ohh, that's my mistake -- I have removed the upper bounds on the required packages to get it to build with the Python packages from NixOS, and forgot it later. My warranty is null and void, I know!
Let me try the same thing with an older whatthepatch
release. And would you mind if I try to build Ki with Poetry and send a PR for that? This would allow Nix to build it with precisely the package versions that you specify — Nix requires a lockfile with a checksum for every dependency for that.
No worries!
Unfortunately, I think I will not be adding a dependency on poetry.
From: Nikolay Amiantov @.> Sent: Wednesday, April 26, 2023 10:07:39 AM To: langfield/ki @.> Cc: langfield @.>; Comment @.> Subject: Re: [langfield/ki] AssertionError in whatthepatch when parsing a binary diff (Issue #127)
Ohh, that's my mistake -- I have removed the upper bounds on the required packages to get it to build with the Python packages from NixOS, and forgot it later. My warranty is null and void, I know! Let me try the same thing with an older whatthepatch
Ohh, that's my mistake -- I have removed the upper bounds on the required packages to get it to build with the Python packages from NixOS, and forgot it later. My warranty is null and void, I know!
Let me try the same thing with an older whatthepatch release. And would you mind if I try to build Ki with Poetryhttps://urldefense.com/v3/__https://python-poetry.org/__;!!KGKeukY!3Fn1Vw8P9KEpGaZl8l80BH0BtDB5IIC7SY9an5ChuueEsFTmYJTWQq9hHM2jy6CKXwaIESvYdGluUWvI7Z6K3dgSQ4Jlow$ and send a PR for that? This would allow Nix to build it with precisely the package versions that you specify — Nix requires a lockfile with a checksum for every dependency for that.
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/langfield/ki/issues/127*issuecomment-1523485590__;Iw!!KGKeukY!3Fn1Vw8P9KEpGaZl8l80BH0BtDB5IIC7SY9an5ChuueEsFTmYJTWQq9hHM2jy6CKXwaIESvYdGluUWvI7Z6K3dhUgIl4uQ$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AISQNI4D7XAEGA64UO7ZK33XDET2XANCNFSM6AAAAAAXLNWFCA__;!!KGKeukY!3Fn1Vw8P9KEpGaZl8l80BH0BtDB5IIC7SY9an5ChuueEsFTmYJTWQq9hHM2jy6CKXwaIESvYdGluUWvI7Z6K3dgl33_P5Q$. You are receiving this because you commented.Message ID: @.***>
I have encountered an issue when pulling changes from Anki:
I have dumped the raw git diff and indeed, it's a binary diff on which the error is reproducible. I plan to also submit a bug report to
whatthepatch
repo.Have someone encountered this, maybe there is a known workaround? On a sidenote, this project seems being rewritten in Haskell right now, so the Python version is not actively maintained — is that right?