Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AqeeAqee opened this issue Aug 31, 2023 · 0 comments

Comments

@AqeeAqee
Copy link

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant