question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Latest Version of pxt causes crash

See original GitHub issue

There is an issue in the v5.33.5 release of this repository that prevents me from running the pxt-maker code. Issue occurred on clean install. Last known good version is v5.32.4.

To Reproduce from microsoft/pxt-maker:

pxt serve

Returns:

[23:32:38] Finished 'backendutils' after 2.51 s
C:/Users/cianb/Documents/repos/makecode-peter/pxt-maker/node_modules/pxt-core/built/pxtlib.d.ts(332,21): error TS2694: Namespace 'pxt' has no exported member 'workspace'.
C:/Users/cianb/Documents/repos/makecode-peter/pxt-maker/node_modules/pxt-core/built/pxtlib.d.ts(2637,16): error TS2304: Cannot find name 'JsonScriptMeta'.
pxtcompiler\emitter\service.ts(1074,95): error TS2345: Argument of type 'FunctionLike' is not assignable to parameter of type 'FunctionLikeDeclaration'.
  Type 'CallSignatureDeclaration' is not assignable to type 'FunctionLikeDeclaration'.
    Type 'CallSignatureDeclaration' is missing the following properties from type 'ArrowFunction': equalsGreaterThanToken, body, _expressionBrand, _functionLikeDeclarationBrand
TypeScript: 3 semantic errors
TypeScript: emit succeeded (with errors)
[23:32:42] 'pxtcompiler' errored after 6.02 s
[23:32:42] Error: TypeScript: Compilation failed
    at Output.mightFinish (C:\Users\cianb\Documents\repos\makecode-peter\pxt\node_modules\gulp-typescript\release\output.js:130:43)
    at C:\Users\cianb\Documents\repos\makecode-peter\pxt\node_modules\gulp-typescript\release\output.js:65:22
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:94:5)
[23:32:42] 'default' errored after 14 s
[23:32:42] The following tasks did not complete: pxtsim
[23:32:42] Did you forget to signal async completion?
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! pxt-core@5.33.5 build: `gulp`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pxt-core@5.33.5 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\cianb\AppData\Roaming\npm-cache\_logs\2020-02-05T12_32_42_492Z-debug.log

***
*** Build failed: local pxt-core build FAILED
Error: Exit code: 1 from cd node_modules/pxt-core; npm.cmd run build
    at ChildProcess.<anonymous> (C:\Users\cianb\Documents\repos\makecode-peter\pxt\built\nodeutil.js:85:24)
    at ChildProcess.emit (events.js:223:5)
    at maybeClose (internal/child_process.js:1021:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
***

building C:\Users\cianb\Documents\repos\makecode-peter\pxt-maker\node_modules\pxt-common-packages\sim...
[run] cd C:\Users\cianb\Documents\repos\makecode-peter\pxt-maker\node_modules\pxt-common-packages\sim; node ../node_modules/typescript/bin/tsc
../node_modules/pxt-core/built/pxtsim.d.ts(255,13): error TS1086: An accessor cannot be declared in an ambient context.
../node_modules/pxt-core/built/pxtsim.d.ts(1006,13): error TS1086: An accessor cannot be declared in an ambient context.
../node_modules/pxt-core/built/pxtsim.d.ts(1045,13): error TS1086: An accessor cannot be declared in an ambient context.
../node_modules/pxt-core/built/pxtsim.d.ts(1283,21): error TS1086: An accessor cannot be declared in an ambient context.
../node_modules/pxt-core/built/pxtsim.d.ts(1283,21): error TS7033: Property 'stoppedClass' implicitly has type 'any', because its get accessor lacks a return type annotation.
../node_modules/pxt-core/built/pxtsim.d.ts(1284,21): error TS1086: An accessor cannot be declared in an ambient context.
../node_modules/pxt-core/built/pxtsim.d.ts(1284,21): error TS7033: Property 'invalidatedClass' implicitly has type 'any', because its get accessor lacks a return type annotation.

***
*** Build failed: target build failed: Exit code: 2 from cd C:\Users\cianb\Documents\repos\makecode-peter\pxt-maker\node_modules\pxt-common-packages\sim; node ../node_modules/typescript/bin/tsc
Error: Exit code: 2 from cd C:\Users\cianb\Documents\repos\makecode-peter\pxt-maker\node_modules\pxt-common-packages\sim; node ../node_modules/typescript/bin/tsc
    at ChildProcess.<anonymous> (C:\Users\cianb\Documents\repos\makecode-peter\pxt\built\nodeutil.js:85:24)
    at ChildProcess.emit (events.js:223:5)
    at maybeClose (internal/child_process.js:1021:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)

Desktop (please complete the following information):

  • OS: Windows 10

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
wallarugcommented, Feb 7, 2020

Excellent work @riknoll and @pelikhan . You have made me a happy developer again. 👍 😄

It is all working as expected again now.

0reactions
pelikhancommented, Feb 6, 2020

I have fixed the typescript version in common packages. Pull and npm install again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Race condition causing a null/dereferencing crash in ... - GitHub
Race condition causing a null/dereferencing crash in the simulator: Simulator crashed, no error handler Error: Dereferencing null/undefined value. at Object ...
Read more >
Microsoft MakeCode Community/Lobby - Gitter
Hi ! I'm working on a target for STM32L475 and I have some build problems. My target depends of pxt-common-package and when codal...
Read more >
Parex Resources - PXT Stock Forecast, Price & News
Researching Parex Resources? Get The Latest PXT Stock Forecast, Price Target, Dividend Info, and Headlines at MarketBeat.
Read more >
RHSA-2004:156 - Security Advisory - Red Hat Customer Portal
send a carefully-crafted message and cause mailman to crash. Matthew Saltzman discovered a flaw in our original patch intended to
Read more >
Final Report - Fatality #11 - May 1, 2014
The cause of death was attributed to blunt neck trauma and compressive ... MSHA was notified of the accident at 5:40 p.m. on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found