pxt icon indicating copy to clipboard operation
pxt copied to clipboard

Filelist packageOf crashes when using assetExtensions

Open jfo8000 opened this issue 4 years ago • 1 comments

I am experimenting with extensions / resources / asset editors

I noticed that adding the following to pxtarget.json crashes

      "mathBlocks": true,
      "loopsBlocks": true,
      "logicBlocks": true,
      "variablesBlocks": true,
      "textBlocks": true,
      "functionBlocks": true,
      "listsBlocks": true ,
      "onStartUnDeletable": false,
      "assetExtensions": "foo" << I added this
      
    },
    

image

This is because assetExtensions create a new editor with a null ksPkg

image

image

It looks like half of the time the world copes when ksPkg is null, and the other half of the time it explodes.

From my sleuthing this seems to be the offender: image

jfo8000 avatar Feb 14 '21 20:02 jfo8000

Repros 6.0.1, 6.9.11 pxt-core

jfo8000 avatar Feb 14 '21 20:02 jfo8000