Skip to content

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

@AqeeAqee

Description

@AqeeAqee

Hi, @riknoll and @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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions