You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Project class in mkc.ts will not re-read mkc.json after it loads the first time. Even if the targetwebsite changes, it'll still build with the old version.
Repro
To repro do the following:
In an empty folder run mkc init arcade
Change targetWebsite iin mkc.json to https://arcade.makecode.com/v1.12.22
Run mkc build -j -w to build and start a watch
Notice the build runs with v1.12.22
Change the patch version in mkc.json to 23
Notice the build runs with v1.12.22 again
You can keep changing the version and it will never change.
Notes
Start looking at loadPkgAsync for a possible solution.
Problem
The
Project
class inmkc.ts
will not re-read mkc.json after it loads the first time. Even if the targetwebsite changes, it'll still build with the old version.Repro
To repro do the following:
mkc init arcade
https://arcade.makecode.com/v1.12.22
mkc build -j -w
to build and start a watchYou can keep changing the version and it will never change.
Notes
Start looking at
loadPkgAsync
for a possible solution.pxt-mkc/packages/makecode-core/src/mkc.ts
Lines 201 to 204 in b20c170
The text was updated successfully, but these errors were encountered: