diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 307b041db..e8f310d6f 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -11,7 +11,7 @@ // The 'service' property is the name of the service for the container that VS Code should // use. Update this value and .devcontainer/docker-compose.yml to the real service name. - "service": "react-ui", + "service": "app", // The optional 'workspaceFolder' property is the path VS Code should open by default when // connected. This is typically a file mount in .devcontainer/docker-compose.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index 84fe7f5d1..822d3a0d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased + +### Fixed + +- Enable p5 code to be ran multiple times without runner errors (#1147) + ## [0.28.9] - 2024-11-27 ### Fixed diff --git a/src/components/Editor/Runners/PythonRunner/SkulptRunner/SkulptRunner.jsx b/src/components/Editor/Runners/PythonRunner/SkulptRunner/SkulptRunner.jsx index 51eee57c9..99c548d78 100644 --- a/src/components/Editor/Runners/PythonRunner/SkulptRunner/SkulptRunner.jsx +++ b/src/components/Editor/Runners/PythonRunner/SkulptRunner/SkulptRunner.jsx @@ -106,8 +106,6 @@ const SkulptRunner = ({ active, outputPanels = ["text", "visual"] }) => { if (active) { if (codeRunTriggered) { runCode(); - } else if (!senseHatAlwaysEnabled) { - setCodeHasVisualOutput(false); } } }, [codeRunTriggered, active]); @@ -403,7 +401,6 @@ const SkulptRunner = ({ active, outputPanels = ["text", "visual"] }) => { }) .finally(() => { dispatch(codeRunHandled()); - setCodeHasVisualOutput(false); }); myPromise.then(function (_mod) {}); };