microsoft / pxt-arcade

Arcade game editor based on Microsoft MakeCode
https://arcade.makecode.com
MIT License
481 stars 209 forks source link

abandoning C++ build errors #4721

Closed paulallington closed 2 years ago

paulallington commented 2 years ago

Describe the bug The build contains error polling C++

To Reproduce Steps to reproduce the behavior: 1, Clone pxt-arcarde

  1. Follow Local server setup
  2. npm run serve
  3. Errors in console after a few minutes

Expected behavior No errors? I don't know what it's actually trying to do, but it isn't happy about something

Error messages polling C++ build https://makecode.com/compile/11e707ee0bca9a40828141a3991313449070b36a9182ba651e43c3c1104ab69f.json (attempt #1) waiting 8s for C++ build... polling C++ build https://makecode.com/compile/11e707ee0bca9a40828141a3991313449070b36a9182ba651e43c3c1104ab69f.json (attempt #2) waiting 8s for C++ build... polling C++ build https://makecode.com/compile/11e707ee0bca9a40828141a3991313449070b36a9182ba651e43c3c1104ab69f.json (attempt #3) waiting 8s for C++ build... polling C++ build https://makecode.com/compile/11e707ee0bca9a40828141a3991313449070b36a9182ba651e43c3c1104ab69f.json (attempt #4) waiting 8s for C++ build... polling C++ build https://makecode.com/compile/11e707ee0bca9a40828141a3991313449070b36a9182ba651e43c3c1104ab69f.json (attempt #5) waiting 8s for C++ build... polling C++ build https://makecode.com/compile/11e707ee0bca9a40828141a3991313449070b36a9182ba651e43c3c1104ab69f.json (attempt #6) waiting 8s for C++ build... polling C++ build https://makecode.com/compile/11e707ee0bca9a40828141a3991313449070b36a9182ba651e43c3c1104ab69f.json (attempt #7) waiting 8s for C++ build... polling C++ build https://makecode.com/compile/11e707ee0bca9a40828141a3991313449070b36a9182ba651e43c3c1104ab69f.json (attempt #8) waiting 8s for C++ build... abandoning C++ build TypeError: Cannot read property 'length' of null at compressHex (C:\Users\paul\Git\The Code Zone\pxt-arcade\node_modules\pxt-core\built\pxt.js:104993:37) at C:\Users\paul\Git\The Code Zone\pxt-arcade\node_modules\pxt-core\built\pxt.js:104922:36 at processTicksAndRejections (internal/process/task_queues.js:93:5) at async fillExtInfoAsync (C:\Users\paul\Git\The Code Zone\pxt-arcade\node_modules\pxt-core\built\pxt.js:112325:51) at async MainPackage.getCompileOptionsAsync (C:\Users\paul\Git\The Code Zone\pxt-arcade\node_modules\pxt-core\built\pxt.js:112371:33) at async C:\Users\paul\Git\The Code Zone\pxt-arcade\node_modules\pxt-core\built\pxt.js:158085:38 at async C:\Users\paul\Git\The Code Zone\pxt-arcade\node_modules\pxt-core\built\pxt.js:99300:42 at async Promise.all (index 0) at async promisePoolAsync (C:\Users\paul\Git\The Code Zone\pxt-arcade\node_modules\pxt-core\built\pxt.js:99306:21) at async buildTargetCoreAsync (C:\Users\paul\Git\The Code Zone\pxt-arcade\node_modules\pxt-core\built\pxt.js:158009:5) at async Object.staticpkgAsync [as _callback] (C:\Users\paul\Git\The Code Zone\pxt-arcade\node_modules\pxt-core\built\pxt.js:160317:5) { sha: '11e707ee0bca9a40828141a3991313449070b36a9182ba651e43c3c1104ab69f' } pxt_modules/base/pxt-core.d.ts(1,1): error TS9043: The hex file is not available, please connect to internet and try again.

Desktop (please complete the following information):

abchatra commented 2 years ago

this should be fixed now.

curlyz commented 11 months ago

@abchatra It is not fixed, seem like there is a timeout on the server side. This make our build process extremely long due to the 300s timeout * retry every time.

abchatra commented 11 months ago

@curlyz can share the repro? Like what extension is failing to compile?