microsoft / microsoft/pxt

Navigating from "data Simulator" view back to code view restarts the program

Open
#10,036 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.3k
Forks
641
Avg merge
12h 4m
Merged PRs (30d)
57

Description

Bug Template

Describe the bug
Navigating from "data Simulator" view back to the code view restarts the program

To Reproduce
Steps to reproduce the behavior:

  1. Create a one-line program to print "Hello World!" using the console log/print function
  2. Run the program
  3. Click "Show data Simulator" button to view the printed output
  4. Click the "go back" button to return to the code view.

At this point, the program restarts.

Expected behavior
Application should not restart when the "go back" button is clicked. Scenario demonstrating why this would be useful:

  • Developer writes code that interacts with the user via IO and sets up the program state.
  • The developer switches to the "data Simulator" view to check the state of the application.
  • At this point, the developer should be able to view the code without that triggering a restart of the program.

Ideally, "data Simulator" and code views can be viewed side-by-side. But at a minimum, the program shouldn't restart just because of a view change.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with a one-line Hello World program: run it, open the "data Simulator" view, then use the "go back" button. Trace the navigation and program lifecycle for the data Simulator and code views. Done means switching views preserves the running program state without restarting it.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.