joshmarinacci / ElectronIDE

New web based Arduino IDE
BSD 3-Clause "New" or "Revised" License
246 stars 50 forks source link

Result on linux #2

Closed Hippyjake closed 10 years ago

Hippyjake commented 10 years ago

:poop: $ npm install npm WARN package.json arduinox2@0.0.1 No repository field. npm WARN package.json execSync@1.0.1-pre No repository field.

$ node electron inside of the libraries

fs.js:659 return binding.readdir(pathModule._makeLong(path)); ^ Error: ENOENT, no such file or directory '/home/jake/sketchbook/projects/arduino-data/libraries' at Object.fs.readdirSync (fs.js:659:18) at Object.exports.loadLibraries (/home/jake/Documents/node/ElectronIDE/libraries.js:75:8) at Object. (/home/jake/Documents/node/ElectronIDE/compile.js:4:35) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (module.js:380:17) at Object. (/home/jake/Documents/node/ElectronIDE/electron.js:7:15)

My settings.js

//where your sketches live
exports.usersketches = "/home/jake/sketchbook/";

//where your personal libraries live. new libs will *not* go here
exports.userlibs = "/home/jake/sketchbook/Libraries";

// root of the regular Arduino IDE app
exports.root = "/usr/share/arduino/arduino";
//template for new sketches
exports.sketchtemplate = "sketchtemplate.ino";

//where new libs will be downlaoded to
exports.repos = "/home/jake/sketchbook/projects/junkrepos";

//path to the metadata repo
exports.datapath = "/home/jake/sketchbook/projects/arduino-data/libraries";
joshmarinacci commented 10 years ago

Did you check out the arduino-data repo already?

https://github.com/joshmarinacci/arduino-data

Hippyjake commented 10 years ago

yup my file structure is: ~/jake/Documents/node/arduino-data ~/jake/Documents/node/ElectronIDE

Is this how they are supposed to be? Next to each other.

joshmarinacci commented 10 years ago

That looks right. Actually, the location doesn't matter as long as your settings.js is right. I just pushed back some fixes. Can you check out the latest and try again?

thx, J

joshmarinacci commented 10 years ago

Oh, wait. data path should be where arduino-data/libraries is, which looks like it's /home/jake/Documents/node/arduino-data/libraries according to your layout.

Hippyjake commented 10 years ago

All right I got it running! time to test!

joshmarinacci commented 10 years ago

Any results? Can I close this issue?

Hippyjake commented 10 years ago

Yes, my bad. Been super busy. Everything seems to work, I only have an uno to test.