avr-pizza icon indicating copy to clipboard operation
avr-pizza copied to clipboard

Can't load libraries

Open getlarge opened this issue 7 years ago • 0 comments

Hi,

The concept of your project is really nice, ( thanks to google for showing me the way), and as i'm learning nodejs at the moment it's a double point!

It works great but still I met a small problem when using CLI , the libraries can't be read because of forEach() in /bin/cli.js

  • When I type this command :
    avr-pizza compile -s /home/ed/Arduino/NodeManager/NodeManager.ino -l /home/ed/Arduino/libraries -a 'pro' -o ~/test -b /home/ed/arduino-1.8.3

  • I get the output : options.libraries.forEach(function(l, i) { ^

TypeError: options.libraries.forEach is not a function at compile (/home/ed/.nvm/versions/node/v6.0.0/lib/node_modules/avr-pizza/bin/cli.js:21:21) at handleInput (/home/ed/.nvm/versions/node/v6.0.0/lib/node_modules/avr-pizza/bin/cli.js:68:9) at Object. (/home/ed/.nvm/versions/node/v6.0.0/lib/node_modules/avr-pizza/bin/cli.js:89:1) at Module._compile (module.js:541:32) at Object.Module._extensions..js (module.js:550:10) at Module.load (module.js:456:32) at tryModuleLoad (module.js:415:12) at Function.Module._load (module.js:407:3) at Function.Module.runMain (module.js:575:10) at startup (node.js:159:18)

Do you have any idea which is the reason of this problem ? A problem with Node version ?

getlarge avatar Jul 13 '17 13:07 getlarge