microsoft / pxt

Microsoft MakeCode (PXT - Programming eXperience Toolkit)

Home Page:https://makecode.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to update multi-layer dependencies

ross-inksmith opened this issue · comments

commented

We have an extension (pxt-fwd-edu) that depends on pxt-jacdac. Ran into an issue where jacdac was updated to v1.9.19, but even when starting a new project with our extension, it would use my cached version (v1.9.13).

  • Using the refresh button for our extension in the javascript code explorer did not update the dependency
  • There is no similar button to refresh the dependencies
  • Adding jacdac separately added the current version's files in addition to the old version, but the new code didn't get used by the extension
  • Adding jacdac first, then our extension had the same issue
  • Opening chrome dev tools and choosing "Empty Cache and Hard Reload" did not resolve the issue.
  • Opening incognito and creating a new project worked as expected, so that jacdac v1.9.19 was added automatically

The issue was solved by going to chrome settings, and deleting all makecode.org data (chrome://settings/content/all?search=data)

This would be a challenge in the classroom since many boards don't allow the use of incognito or access to Chrome settings.