Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After doing pxt staticpkg shows "Compilation failed,please check your code for error" #20

Open
biau809 opened this issue May 16, 2020 · 0 comments

Comments

@biau809
Copy link

biau809 commented May 16, 2020

I follow the instructions with "Local server setup" section on https://github.com/microsoft/pxt-microbit using windows 10,

(1)Install Node.js 8.9.4
follows the steps on https://makecode.com/cli to install
Yotta SRecord 1.64 Visual Studio
mkdir d:\makecode
cd d:\makecode
(2)git clone https://github.com/microsoft/pxt-microbit
(3)cd pxt-microbit
(4)npm install -g pxt
(5)npm install
(6)cd libs
git clone https://github.com/DFRobot/pxt-maqueen.git
rename pxt-maquee to maquee
cd maqueen
npm install
edit d:\makecode\pxtarget.json

add "libs/maqueen" to bundleddirs shows as below

"bundleddirs": [
"libs/core",
"libs/radio",
"libs/maqueen", <--- add this
"libs/devices",
"libs/bluetooth",
"libs/servo",
"libs/radio-broadcast",
"libs/microphone"
],

(7)d:\makecode\pxt-microbit\pxt staticpkg

 target: v2.3.62 D:\makecode\pxt-microbit 
 pxt-core: v5.37.74 D:\makecode\pxt-microbit\node_modules\pxt-core
 packaging editor to built/packaged
 log strings: 31 files; 9 strings -> sim-strings.json
 copying common-sim...
 error TS1109: Expression expected.
 error TS1005: ':' expected.
 building compiler...
 [run] cd compiler; node ../node_modules/typescript/bin/tsc
 building target.json in D:\makecode\pxt-microbit...
 building D:\makecode\pxt-microbit\libs\core
 building D:\makecode\pxt-microbit\libs\maqueen
 building D:\makecode\pxt-microbit\libs\radio     
 building D:\makecode\pxt-microbit\libs\devices
 building D:\makecode\pxt-microbit\libs\bluetooth
 building D:\makecode\pxt-microbit\libs\servo
 building D:\makecode\pxt-microbit\libs\radio-broadcast
 :
 :
 :
 All docs written from docs.
 All docs written.

(8)D:\makecode\pxt-microbit>http-server -S -C c:\cert.pem -K c:\key.pem -p 443 -c-1 built/packaged
(9) go to chrome and open the URL with https://192.168.1.21
(10)drop down green wheel --> extensions --> Maqueen
(11)drag a maqueen blocky to the editor
(12)click "Download" the show the message "Compilation failed,please check your code for error"

would you please advise me any correction to operate normal download HEX file to Microbit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant