intel / zephyr.js

JavaScript* Runtime for Zephyr* OS
Other
180 stars 64 forks source link

[ashell] 'grovelcd.js' module can't be found when running I2CBMP280.js #1833

Closed xiaoyu3x closed 6 years ago

xiaoyu3x commented 6 years ago

Issue description

'grovelcd.js' module can't be found when running I2CBMP280.js in ashell. In fact, GroveLCD.js has been imported A101.

Test Code

I2CBMP280.js GroveLCD.js BMP280.js

Steps to reproduce

1.Flash ashell into 101 board, open minicom port minicom -D /dev/ttyACM0. 2.Copy GroveLCD.js and BMP280.js to ashell. 3.Copy I2CBMP280.js to ashell and run it. 4.When running I2CBMP280.js on Web IDE, get the same result as ashell

Actual Result

(ERROR) failed to evaluate JS, NotSupporttedError: Module not found

selection_072

Expected Result

I2CBMP280.js works normally and no error.

Test Build

Branch Commit id Target Device Test Date Result
master ede4509 Arduino 101 Feb 7, 2018 Fail
jimmy-huang commented 6 years ago

Is this a regression? Was this broken for 0.5 release or after?

xiaoyu3x commented 6 years ago

No, it is not a regression. I just reproduced this issue on 0.5 branch

xiaoyu3x commented 6 years ago

This issue isn't reproduced with PR #1846 and it will be closed until PR is merged.

xiaoyu3x commented 6 years ago

hi, This issue isn't reproduced when I used ide commit bae9e36 and zephyr.js commit ed85a4d, so closed it