Skip to content

Simulator nolonger updated according to modified codes, after “Build Project for Hardware” #165

Description

@AqeeAqee

Hi, Richard Knoll (@riknoll) and Joey Wunderlich (@jwunderl)
I met a issue:
Simulator nolonger updated according to modified codes, after “Build Project for Hardware”

Reproduce:
open any project with Makecode extension for VS, click “Build Project for Hardware”, then choose whatever a HW.
Modify source code, then project re-build automatically.
Project in simuator still previous edtion before, and no longer update unless close/reopen VSCode.

Browsed source, looks like:

Simulator.currentSimulator.simulateAsync(await readFileAsync("built/binary.js", "utf8"));

  • Simulator always load binary.js from build/binary.js
  • But “Build Project for Hardware” updated BuildOption, then redirected path to build/HW/binary.js. And “Build Project” compiled for that HW only after that, and then only build/HW/binary.js be updated.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions