-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
commands: expected type <-chan interface{}, got <nil> #4495
Comments
I'm having trouble reproducing this. What happens here is that sometimes it doesn't print an error. The |
I can reproduce it about 50% of the time. You need to let the command run for a second before hitting ^C. Try adding a bunch of large files so |
@Stebalien Is someone currently working on this? (I'm checking because I saw this issue in the release blockers list.) There seems to be a race condition between the goroutine of the |
@schomatis thanks for diagnosing this! Nobody's currently working on it, feel free. I took one look, gave up, and migrated this command to the new commands lib (#4764). However, having a proper fix would be really nice. |
@Stebalien This seems more a problem of the legacy commands library than the In case the fix should happen inside the commands library (and I'm inclined to think so) I'm going to need more guidance as to where it should be placed. |
I see what the problem is now. So, when we switched to the new cmds library, we appear to have partially migrated marshalers. We used to call the marshaler once for the entire stream. We now call it for each item. However, the interface still acts like we're calling it once. This makes it really error prone, hacky, and shitty. I'm going to try some sed magic to fix this. |
So, this really just sucks all around. I think the best way to fix this is to:
I really have no idea how I missed this in review. |
All done. |
When sending a SIGINT to
ipfs repo verify
, I occasionally get:This was originally reported at #4360 (comment) (and believed fixed). However, the issue itself was a separate problem so I'm opening a new issue.
The text was updated successfully, but these errors were encountered: