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

Solo 200 resubmit G - Handle differences in encoding between launcher versions #337

Conversation

MatzElectronics
Copy link
Collaborator

Continues addressing #279
The launcher was not encoding one direction of its serial comms stream. There is a PR in the lanucher's repo holding on this change:
BlocklyPropLanucher-96
This adds code to compensate for that issue across all versions of the launcher.

@zfi
Copy link
Contributor

zfi commented Mar 4, 2020

@PropGit - If this is fixed in the Launcher, do we still need to fiddle with the stream on our side? This seems like we're trying to compensate for an issue that we can address in the Launcher.

@MatzElectronics
Copy link
Collaborator Author

MatzElectronics commented Mar 4, 2020 via email

@pjewald
Copy link
Collaborator

pjewald commented Mar 5, 2020

So you're saying that we are applying a workaround to an error in the client/launcher that we won't fix for some reason? I don't see the logic in that at all.

@pjewald pjewald merged commit 1558496 into parallaxinc:develop Mar 5, 2020
@MatzElectronics
Copy link
Collaborator Author

Not at all what I am saying. There is a PR in place to fix it on the BPL side, too, but we will need to support both the fixed and broken versions for a while, until we set the minimum allowed version ahead of the version of the BPL that's fixed.

@PropGit
Copy link
Collaborator

PropGit commented Mar 5, 2020

I highly disagree with saying the BP Launcher is "broken" or there's an "error in the client/launcher" that caused this. That is not the case. What happened is, we didn't enforce the encoding in all communications, we only encoded in places where we had noted a problem in getting data from the Launcher to the web side. The Launcher code has been the way it was prior to this issue since 2017 with no problems regarding this particular communication that I know of. It's been in use from Chromebooks since then.

The issue here is that the inconsistency was noticed and the code was changed on the web side to treat it as encoded, plus a PR was submitted to Launcher repo to encode it, but apparently no protections were put in place to accept both unencoded or encoded in that place (transitional code) to support the existing Launchers in the wild plus the first Launcher that will feature the encoding in that place.

I'm not a fan of encoding everything because it further slows down communication; we already have a constrained max speed exhibiting itself in the the Terminal. At this point, I will indeed absorb that PR into Launcher and move forward.

@MatzElectronics
Copy link
Collaborator Author

MatzElectronics commented Mar 5, 2020 via email

@PropGit
Copy link
Collaborator

PropGit commented Mar 5, 2020

Okay, thanks for the clear details.

Notes on current BPL work:
I'll make this change (from this issue) in BPL v0.12.0 by merging in said PR. Currently v0.11.1 is being tested to resolve a surprise removal condition on Macs. We intend to notarize that version (with Apple, so it works on Mojave and Catalina smoothly) and simultaneously address a couple other issues instructors recently noted, notarize and release that as well (v0.12.0).

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

Successfully merging this pull request may close these issues.

4 participants