Skip to content

Bump pxt 12.x and some other changes#1052

Closed
THEb0nny wants to merge 102 commits intomicrosoft:masterfrom
THEb0nny:bump-pxt-10
Closed

Bump pxt 12.x and some other changes#1052
THEb0nny wants to merge 102 commits intomicrosoft:masterfrom
THEb0nny:bump-pxt-10

Conversation

@THEb0nny
Copy link
Copy Markdown
Contributor

@THEb0nny THEb0nny commented Mar 19, 2024

After switching to pxt-core v10, fieldmotors break.
Related to this.

I understand that these changes should be considered after this
#1048

microsoft/pxt-microbit#5496
microsoft/pxt#9865

@THEb0nny
Copy link
Copy Markdown
Contributor Author

Fixed all fields field_motors, field_ports, field_brickbuttons, field_music except field_color. When choosing a color, the color does not change. There is no error in the console.

Replacing ports with images. field ports has been removed. Almost completely repeats the functionality.
@THEb0nny
Copy link
Copy Markdown
Contributor Author

THEb0nny commented Mar 20, 2024

Replacing field ports to images. field ports has been removed. Almost completely repeats the functionality.

All sensor blocks that used field_ports had to register this. I don’t know how it could have been done differently without repeating these lines.

this.fieldOptions.columns="4"
this.fieldOptions.width="300"

Accidentally added field_colors changes to this commit. He's not ready. There are no errors, but the color selection does not work.

Where did turnRatio come from?
The last change to field_colour removed the addition of className. It’s not clear for what reason, but I’m adding it myself now.
The new version of FieldColorNumber does not apply applyColour() inside the doValueUpdate_() method. Secondly, the applyColour() method was redesigned in the new version so that it no longer worked with this enum code.
@THEb0nny
Copy link
Copy Markdown
Contributor Author

The colorenum field has been fixed.

@THEb0nny
Copy link
Copy Markdown
Contributor Author

@jwunderl @riknoll can someone see all the changes?

@THEb0nny
Copy link
Copy Markdown
Contributor Author

It turned out that the dropdown field-color was slightly broken. I also changed it so that the no-color option would display a red strikethrough.
image

@THEb0nny
Copy link
Copy Markdown
Contributor Author

THEb0nny commented Mar 10, 2026

I also made a transparent pattern for the color none in the dropdown.

image

For color none, I set a transparent pattern instead of a color for the block with colorEnumPicker.
@THEb0nny
Copy link
Copy Markdown
Contributor Author

I also made a transparent pattern for color none in colorEnumPicker.

image

@THEb0nny
Copy link
Copy Markdown
Contributor Author

@abchatra will there be an opportunity to consider changes for the merger?

@THEb0nny
Copy link
Copy Markdown
Contributor Author

@riknoll will there be an opportunity to do a review?

@riknoll
Copy link
Copy Markdown
Member

riknoll commented Mar 25, 2026

@THEb0nny we are no longer updating the EV3 editor. at this point, it can be considered retired. we have no plans currently to remove the hosted website, but unfortunately we don't have the bandwidth to get this repo to the point where it can be deployed again. as such, i'm going to close this PR because we cannot release it.

however, if you wish to continue development on your own fork, please see the documentation here for a command in the PXT cli that can be used to produce a static version of the website that you can host with any static webserver (or packaged as an electron app):

https://makecode.com/cli/staticpkg

please let me know if you have any problems getting setup with statickpkg

@riknoll riknoll closed this Mar 25, 2026
@THEb0nny
Copy link
Copy Markdown
Contributor Author

@riknoll @abchatra this sounds very sad. I don't understand.
I thought we reached an agreement a few years ago where I would make changes and the Makecode developers would periodically release new beta versions.
You say the editor is outdated, but I'm making changes so that pxt-ev3 is a modern pxt editor without any input from the Makecode developers. I'm only asking that the Makecode developers verify that the build runs and release the changes in the beta release. Does that really require a lot of resources?

Lego EV3 is still widely used in education...

@riknoll
Copy link
Copy Markdown
Member

riknoll commented Mar 25, 2026

unfortunately, it does require resources on our side to keep our build/release pipelines running, review PRs, test for quality, etc.

as i stated, we have no plans at this time to remove the hosted site. as it stands now the only updates we will consider are those that are necessary to stay compliant with security and privacy obligations.

if you want to release your changes, i recommend hosting your own site or releasing a version on github pages using the staticpkg command.

@THEb0nny
Copy link
Copy Markdown
Contributor Author

@riknoll If I publish a static site, I don't understand how support for string resources running through CrowdIn will work. I also don't understand how sharing a project via a link will work.

@riknoll
Copy link
Copy Markdown
Member

riknoll commented Mar 25, 2026

staticpkg will package all of the existing strings from crowdin, but you won't be able to publish any new ones. i guess if you need updated versions of the common editor strings then you could fetch them by cloning a supported target (like micro:bit) and downloading the translations using the CLI. i don't remember the syntax, but there is a command in the PXT CLI that will fetch all the built translations for a given target.

you are correct that sharing will not work with a static site though

@THEb0nny
Copy link
Copy Markdown
Contributor Author

@riknoll what else might a backend be needed for, besides supporting the project sharing feature? Is it even possible to implement this feature on your own server?

@riknoll
Copy link
Copy Markdown
Member

riknoll commented Mar 26, 2026

it's certainly possible to implement your own sharing API, the API is pretty simple. you might need to modify some settings to make it hit your endpoint, however.

the main other feature our backend provides is C++ compilation, which i'm guessing is not that big a deal for your purposes since i don't think too many people are creating EV3 projects/extensions with C++ in them

@THEb0nny
Copy link
Copy Markdown
Contributor Author

@riknoll I understand that the functions from GitHub don't work either?

@THEb0nny
Copy link
Copy Markdown
Contributor Author

THEb0nny commented Mar 31, 2026

@riknoll How do I use Github Actions to build pxt staticpkg correctly? The build succeeds, but the page returns 404 errors for all files. The URLs listed are /docs/static/..., but they should be /pxt-ev3/docs/static/

Example
https://theb0nny.github.io/docs/static/lessons/use.png

@THEb0nny
Copy link
Copy Markdown
Contributor Author

THEb0nny commented Apr 4, 2026

@riknoll I don't understand why I didn't move the gallery text to the main page. And why are the links identical to the same materials, even though the action scrolls and changes the links.

@THEb0nny
Copy link
Copy Markdown
Contributor Author

THEb0nny commented Apr 9, 2026

@riknoll I don't understand, why does the editor in the local version access makecode.com to upload a resource to the galleries on the main page? The editor deployed on the server does the same thing.
For example,
https://www.makecode.com/api/md/ev3/tutorials/infrared-sensor?targetVersion=1.4.41

It's the same as the editor accessing the translation.
For example,
https://makecode.com/api/translations?lang=ru&filename=ev3%2Fev3-jsdoc-strings.json&approved=true

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