Skip to content

Conversation

@loiswells97
Copy link
Contributor

@loiswells97 loiswells97 commented Mar 24, 2025

What's Changed?

  • Fixed the mode on the pyodide side - it was always using w rather than the mode provided in the code
  • Fixed the file write append mode on the frontend - it was incorrectly adding a newline character before anything was appended.

@loiswells97 loiswells97 added the bug Something isn't working label Mar 24, 2025
@loiswells97 loiswells97 self-assigned this Mar 24, 2025
@loiswells97 loiswells97 temporarily deployed to previews/1200/merge March 24, 2025 09:52 — with GitHub Actions Inactive
@loiswells97 loiswells97 temporarily deployed to previews/1200/merge March 24, 2025 12:06 — with GitHub Actions Inactive
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are there any tests around this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there aren't I'm afraid, only ones on the UI side, but that's not really testing the inner workings of pyodide

Copy link
Contributor

@danhalson danhalson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (would be good to get some tests in but this shouldn't slow down getting this bug fix out there)

@loiswells97 loiswells97 merged commit 3231591 into main Mar 24, 2025
8 checks passed
@loiswells97 loiswells97 deleted the fix-file-append branch March 24, 2025 15:58
@loiswells97 loiswells97 mentioned this pull request Apr 15, 2025
loiswells97 added a commit that referenced this pull request Apr 15, 2025
### Added
- `editor-projectLoadFailed` custom event that fires when a project
completely fails to load (#1201)
- Added runnerBeingLoaded state to prevent race condition overwrites
(#1205)

### Fixed
- Bugs in append mode for writing to files in python (#1200)
- `turtle` bug that did not display output on first code run (#1203)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants