cuwire
cuwire copied to clipboard
'cuwire boards' command fails..
I've checked, hardware folder exists and board selections functions fine in the Arduino 1.5.8 IDE. Uses standard Arduino IDE folder locations.
this is the output:
MacBook-van-Remco:tools remcokortekaas$ cuwire boards
node.js:838 var cwd = process.cwd(); ^ Error: ENOENT, no such file or directory at Function.startup.resolveArgv0 (node.js:838:23) at startup (node.js:58:13) at node.js:929:3
Closing / opening terminal window (on Mac OS X). Gave it another try, this time with different outcome / error:
MacBook-van-Remco:~ remcokortekaas$ cuwire boards bad config for: recipe.size.regex.data ^(?:.data|.bss|.noinit)\s+([0-9]+).* bad config for: recipe.size.regex.eeprom ^(?:.eeprom)\s+([0-9]+).* cuwire using runtime from /Applications/Arduino.app/Contents/Java cuwire boards available:
TypeError: Cannot read property 'version' of undefined
at /usr/local/lib/node_modules/cuwire/cli.js:313:53
at Array.forEach (native)
at ArduinoCli.showBoards (/usr/local/lib/node_modules/cuwire/cli.js:312:33)
at null.
second error I can understand. first one seems like nodejs internal error, cuwire doesn't contain file named node.js
fixed obvious thing, please try:
- copy cli.js from https://gist.github.com/apla/78781f0032f5a5cea272
- run node ./cli.js boards
Wow, fast response! Thank you. This the resulting error:
node cli.js boards
module.js:340
throw err;
^
Error: Cannot find module 'cuwire/data'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.
try NODE_PATH=/usr/local/lib/node_modules node cli.js boards
Hi. Tried and failed still same error not being able to find cuwire/data module
Verified path setting by: echo $NODE_PATH it is correct
hmmm, works fine for me, just tested it. ok, try another way:
- install newest cuwire by
npm install -g apla/cuwire
- run as usual
cuwire boards
and, please, tell me what version of node you using.
Did the re-install. Still few errors but now at least there are boards in the output:
MacBook-van-Remco:~ remcokortekaas$ cuwire boards bad config for: recipe.size.regex.data ^(?:.data|.bss|.noinit)\s+([0-9]+).* bad config for: recipe.size.regex.eeprom ^(?:.eeprom)\s+([0-9]+).* cuwire using runtime from /Applications/Arduino.app/Contents/Java cuwire boards available: Arduino AVR Boards (arduino:avr) 1.5.8 LilyPad Arduino USB (LilyPadUSB) Arduino NG or older (atmegang, models: cpu:atmega168 [ATmega168], cpu:atmega8 [ATmega8]) Arduino BT (bt, models: cpu:atmega328 [ATmega328], cpu:atmega168 [ATmega168]) Arduino Duemilanove or Diecimila (diecimila, models: cpu:atmega328 [ATmega328], cpu:atmega168 [ATmega168]) Arduino Esplora (esplora) Arduino Ethernet (ethernet) Arduino Fio (fio) Arduino Leonardo (leonardo) LilyPad Arduino (lilypad, models: cpu:atmega328 [ATmega328], cpu:atmega168 [ATmega168]) Arduino Mega or Mega 2560 (mega, models: cpu:atmega2560 [ATmega2560 (Mega 2560)], cpu:atmega1280 [ATmega1280]) Arduino Mega ADK (megaADK) Arduino Micro (micro) Arduino Mini (mini, models: cpu:atmega328 [ATmega328], cpu:atmega168 [ATmega168]) Arduino Nano (nano, models: cpu:atmega328 [ATmega328], cpu:atmega168 [ATmega168]) Arduino Pro or Pro Mini (pro, models: cpu:16MHzatmega328 [ATmega328 (5V, 16 MHz)], cpu:8MHzatmega328 [ATmega328 (3.3V, 8 MHz)], cpu:16MHzatmega168 [ATmega168 (5V, 16 MHz)], cpu:8MHzatmega168 [ATmega168 (3.3V, 8 MHz)]) Arduino Robot Control (robotControl) Arduino Robot Motor (robotMotor) Arduino Uno (uno) Arduino Yún (yun) Arduino ARM (32-bits) Boards (arduino:sam) 1.5.8 Arduino Due (Native USB Port) (arduino_due_x) Arduino Due (Programming Port) (arduino_due_x_dbg)
TypeError: Cannot read property 'version' of undefined
at /usr/local/lib/node_modules/cuwire/cli.js:310:53
at Array.forEach (native)
at ArduinoCli.showBoards (/usr/local/lib/node_modules/cuwire/cli.js:308:33)
at null.
pushed another commit to check error ownership
It now works fine! Thanks. Maybe i'll come back. Seeing other strange behavior but have to watch more closely first.
I'm also having the same issue.
c:>cuwire boards bad config for: recipe.size.regex.data ^(?:.data|.bss|.noinit)\s+([0-9]+).* bad config for: recipe.size.regex.eeprom ^(?:.eeprom)\s+([0-9]+).*
I'm using node v0.12.0, arduino 1.58, and brackets 1.1 on Win 7 x64.
I also get the same error if I run node cli.js boards.
Just published new version, 0.5.8. If problem persists, please let me know.
The newer version works for me. Thank you!