pxt-arcade icon indicating copy to clipboard operation
pxt-arcade copied to clipboard

Local Development: Share Page does not use local code

Open aznhassan opened this issue 1 year ago • 0 comments

Describe the bug When running Arcade locally, going to the share page will not run the local code associated with that share page. For that to happen, one needs to swap line 142 with 143: https://github.com/microsoft/pxt-arcade/blob/ae82fc52dc9222026c6e5d4f069d2abd7880c479/docfiles/script.html#L142-L143.

To Reproduce

  1. Serve pxt-arcade locally after linking the pxt repo locally.
  2. Visit a share-page such as: http://localhost:3232/68336-13291-41085-56601
  3. If you open up the debugger and inspect the code, you will not find your local changes running.

Expected behavior When serving pxt-arcade locally and after having linked a local and modified pxt, one expects those changes to be reflected in the share page. You can get it to work, but it is a an extra step and a non-obvious one at that.

Desktop (please complete the following information):

  • OS: Windows
  • Browser Edge
  • Version 119.0.2151.97

aznhassan avatar Dec 06 '23 20:12 aznhassan