Giter VIP home page Giter VIP logo

arduino-upload's Introduction

Arduino Upload Package

Did you not like the look of the Arduino IDE but were stuck with it nevertheless? Not anymore, this package provides some essential features of the Arduino IDE.

  • Verify a sketch
  • Build a sketch
  • Upload a sketch
  • Serial Monitor
  • Error output when compiling
  • Files are clickable in build output --> cursor jumps to that line in that file
  • Switch board directly in the status bar

Installation

apm install arduino-upload (Requires atom 1.10 or later)

Troubleshooting

  • The verify/build output does not appear? Make sure your Arduino official IDE language is set to English.
  • Windows
    • Getting Uncaught Error: spawn EPERM? Be sure you don't have the Microsoft Store version of the Arduino IDE. - #65
    • Can't install because of the serialport package? Try installing the Visual C++ 2015 building tools by running .\npm install --global --production windows-build-tools from the directory %LocalAppData%\atom\app-[VERSION]\resources\app\apm\bin in an adminastrative PowerShell (this uses atoms integrated npm instead of requiring an external instance). Then update apm config with apm config set msvs_version [VERSION] (the version installed by the tool should be 2015) and apm config set python [PATH]\python.exe (where PATH is the path to the python executable). - #46

Available commands

  • arduino-upload:verify - Verifies the sketches (checking for error output), deletes all sources, though
  • arduino-upload:build - Builds the current sketch, the .hex, .elf, .eep and .bin are copied to the sketch directory
  • arduino-upload:upload - Uploads the current sketch to a connected arduino
  • arduino-upload:serial-monitor - Opens the serial monitor of a connected arduino

You can place these commands in a toolbar using the Flex Tool Bar package. Here's how.

Screenshots

Verifying a program:

verify

Serial monitor:

serial

arduino-upload's People

Contributors

brandoncurtis avatar jared-hughes avatar lorenzos avatar sorunome avatar staticrocket avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

arduino-upload's Issues

Installing failed on windows 10

Installing “[email protected]” failed.Hide output…

[email protected] install C:\Users\tom\AppData\Local\Temp\apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr\node_modules\arduino-upload\node_modules\serialport-builds-electron
node-pre-gyp install --fallback-to-build

Failed to execute 'C:\Users\tom\AppData\Local\atom\app-1.28.1\resources\app\apm\bin\node.exe C:\Users\tom\AppData\Local\atom\app-1.28.1\resources\app\apm\bin\..\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\tom\AppData\Local\Temp\apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr\node_modules\arduino-upload\node_modules\serialport-builds-electron\build\Release\serialport.node --module_name=serialport --module_path=C:\Users\tom\AppData\Local\Temp\apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr\node_modules\arduino-upload\node_modules\serialport-builds-electron\build\Release' (1)
C:\Users\tom\AppData\Local\Temp\apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr
`-- (empty)

node-pre-gyp ERR! Tried to download(500): https://files.sorunome.de/arduino-upload/serialport/4.0.7/serialport-v4.0.7-electron-v2.0-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (electron-v2.0 ABI, unknown) (falling back to source compile with node-gyp)
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at failNoPython (C:\Users\tom\AppData\Local\atom\app-1.28.1\resources\app\apm\node_modules\node-gyp\lib\configure.js:449:14)
gyp ERR! stack at C:\Users\tom\AppData\Local\atom\app-1.28.1\resources\app\apm\node_modules\node-gyp\lib\configure.js:404:11
gyp ERR! stack at C:\Users\tom\AppData\Local\atom\app-1.28.1\resources\app\apm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:123:15)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\Users\tom\AppData\Local\atom\app-1.28.1\resources\app\apm\bin\node.exe" "C:\Users\tom\AppData\Local\atom\app-1.28.1\resources\app\apm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\Users\tom\AppData\Local\Temp\apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr\node_modules\arduino-upload\node_modules\serialport-builds-electron\build\Release\serialport.node" "--module_name=serialport" "--module_path=C:\Users\tom\AppData\Local\Temp\apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr\node_modules\arduino-upload\node_modules\serialport-builds-electron\build\Release"
gyp ERR! cwd C:\Users\tom\AppData\Local\Temp\apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr\node_modules\arduino-upload\node_modules\serialport-builds-electron
gyp ERR! node -v v6.9.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Users\tom\AppData\Local\atom\app-1.28.1\resources\app\apm\bin\node.exe C:\Users\tom\AppData\Local\atom\app-1.28.1\resources\app\apm\bin\..\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\tom\AppData\Local\Temp\apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr\node_modules\arduino-upload\node_modules\serialport-builds-electron\build\Release\serialport.node --module_name=serialport --module_path=C:\Users\tom\AppData\Local\Temp\apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr\node_modules\arduino-upload\node_modules\serialport-builds-electron\build\Release' (1)
node-pre-gyp ERR! stack at ChildProcess. (C:\Users\tom\AppData\Local\Temp\apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr\node_modules\arduino-upload\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:877:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Windows_NT 10.0.17134
node-pre-gyp ERR! command "C:\Users\tom\AppData\Local\atom\app-1.28.1\resources\app\apm\bin\node.exe" "C:\Users\tom\AppData\Local\Temp\apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr\node_modules\arduino-upload\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\tom\AppData\Local\Temp\apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr\node_modules\arduino-upload\node_modules\serialport-builds-electron
node-pre-gyp ERR! node -v v6.9.5
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\tom\AppData\Local\Temp\apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr\package.json'
npm WARN apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr No description
npm WARN apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr No repository field.
npm WARN apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr No README data
npm WARN apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr No license field.
npm ERR! Windows_NT 10.0.17134
npm ERR! argv "C:\Users\tom\AppData\Local\atom\app-1.28.1\resources\app\apm\bin\node.exe" "C:\Users\tom\AppData\Local\atom\app-1.28.1\resources\app\apm\node_modules\npm\bin\npm-cli.js" "--globalconfig" "C:\Users\tom\.atom\.apm\.apmrc" "--userconfig" "C:\Users\tom\.atom\.apmrc" "install" "C:\Users\tom\AppData\Local\Temp\d-11866-22924-oti06s.srls68ncdi\package.tgz" "--runtime=electron" "--target=2.0.4" "--arch=x64" "--global-style"
npm ERR! node v6.9.5
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the serialport-builds-electron package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs serialport-builds-electron
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls serialport-builds-electron
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\tom\AppData\Local\Temp\apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr\npm-debug.log
npm ERR! code 1

Can't open Serial monitor

I can't open the Serial monitor. The only Error i get is: "Serialport dependency not present, try installing it! (And, if you figure out how, please report me how here as I don't know how to do it..... Really, please help me! D: )". I've tried installing Visual c++ building tools 2015 and Visual c++ building tools 2017. Nothing helped.
I can verify, upload and build but i can't open the serial monitor.
I am using Atom 1.26.1 x64 at Windows 10 x64 (and arduino IDE 1.6.8)
Can anybody help me?

Bye,
Florian

TextEditor.editorElement is deprecated.

TextEditor.prototype.editorElement has always been private, but now
it is gone. Reading the editorElement property still returns a
reference to the editor element but this field will be removed in a
later version of Atom, so we recommend using the element property instead.

TextEditor.editorElement (<embedded>:2381:20)
<unknown> (C:\Users\fille\.atom\packages\arduino-upload\lib\serial-view.coffee:44:42)

Error: "File isn't part of an Arduino sketch!"

Using any of the commands the error "File isn't part of an Arduino sketch!" appears even when it is working on a .ino file inside of its respective sketch folder with the same file name

Can not install the plugin

Last login: Thu Mar 23 17:53:58 on ttys000
Juris-MacBook-Pro:~ juriwulff$ apm install arduino-upload
Installing arduino-upload to /Users/juriwulff/.atom/packages ✗

> [email protected] install /private/var/folders/7n/6slhynld2tdc65n5p_yzcvrc0000gn/T/apm-install-dir-117224-27089-1ye0lld/node_modules/arduino-upload/node_modules/serialport
> node-pre-gyp install --fallback-to-build

Failed to execute '/Applications/Atom.app/Contents/Resources/app/apm/bin/node /Applications/Atom.app/Contents/Resources/app/apm/bin/../node_modules/.bin/node-gyp configure --fallback-to-build --module=/private/var/folders/7n/6slhynld2tdc65n5p_yzcvrc0000gn/T/apm-install-dir-117224-27089-1ye0lld/node_modules/arduino-upload/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/private/var/folders/7n/6slhynld2tdc65n5p_yzcvrc0000gn/T/apm-install-dir-117224-27089-1ye0lld/node_modules/arduino-upload/node_modules/serialport/build/Release' (1)
/private/var/folders/7n/6slhynld2tdc65n5p_yzcvrc0000gn/T/apm-install-dir-117224-27089-1ye0lld
└── (empty)


node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-electron-v1.3-darwin-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (electron-v1.3 ABI) (falling back to source compile with node-gyp) 
gyp ERR! configure error 
gyp ERR! stack Error: Python executable "/Applications/Atom.app/Contents/Resources/app/apm/bin/python-interceptor.sh" is v3.6.0, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack     at failPythonVersion (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/node-gyp/lib/configure.js:454:14)
gyp ERR! stack     at /Applications/Atom.app/Contents/Resources/app/apm/node_modules/node-gyp/lib/configure.js:443:9
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:204:7)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at maybeClose (internal/child_process.js:827:16)
gyp ERR! stack     at Socket.<anonymous> (internal/child_process.js:319:11)
gyp ERR! stack     at emitOne (events.js:77:13)
gyp ERR! stack     at Socket.emit (events.js:169:7)
gyp ERR! stack     at Pipe._onclose (net.js:477:12)
gyp ERR! System Darwin 16.4.0
gyp ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/.bin/node-gyp" "configure" "--fallback-to-build" "--module=/private/var/folders/7n/6slhynld2tdc65n5p_yzcvrc0000gn/T/apm-install-dir-117224-27089-1ye0lld/node_modules/arduino-upload/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/private/var/folders/7n/6slhynld2tdc65n5p_yzcvrc0000gn/T/apm-install-dir-117224-27089-1ye0lld/node_modules/arduino-upload/node_modules/serialport/build/Release"
gyp ERR! cwd /private/var/folders/7n/6slhynld2tdc65n5p_yzcvrc0000gn/T/apm-install-dir-117224-27089-1ye0lld/node_modules/arduino-upload/node_modules/serialport
gyp ERR! node -v v4.4.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/Applications/Atom.app/Contents/Resources/app/apm/bin/node /Applications/Atom.app/Contents/Resources/app/apm/bin/../node_modules/.bin/node-gyp configure --fallback-to-build --module=/private/var/folders/7n/6slhynld2tdc65n5p_yzcvrc0000gn/T/apm-install-dir-117224-27089-1ye0lld/node_modules/arduino-upload/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/private/var/folders/7n/6slhynld2tdc65n5p_yzcvrc0000gn/T/apm-install-dir-117224-27089-1ye0lld/node_modules/arduino-upload/node_modules/serialport/build/Release' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/private/var/folders/7n/6slhynld2tdc65n5p_yzcvrc0000gn/T/apm-install-dir-117224-27089-1ye0lld/node_modules/arduino-upload/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:87:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:827:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
node-pre-gyp ERR! System Darwin 16.4.0
node-pre-gyp ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/private/var/folders/7n/6slhynld2tdc65n5p_yzcvrc0000gn/T/apm-install-dir-117224-27089-1ye0lld/node_modules/arduino-upload/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /private/var/folders/7n/6slhynld2tdc65n5p_yzcvrc0000gn/T/apm-install-dir-117224-27089-1ye0lld/node_modules/arduino-upload/node_modules/serialport
node-pre-gyp ERR! node -v v4.4.5
node-pre-gyp ERR! node-pre-gyp -v v0.6.32
node-pre-gyp ERR! not ok 
npm WARN enoent ENOENT: no such file or directory, open '/private/var/folders/7n/6slhynld2tdc65n5p_yzcvrc0000gn/T/apm-install-dir-117224-27089-1ye0lld/package.json'
npm WARN apm-install-dir-117224-27089-1ye0lld No description
npm WARN apm-install-dir-117224-27089-1ye0lld No repository field.
npm WARN apm-install-dir-117224-27089-1ye0lld No README data
npm WARN apm-install-dir-117224-27089-1ye0lld No license field.
npm ERR! Darwin 16.4.0
npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/juriwulff/.atom/.apm/.apmrc" "--userconfig" "/Users/juriwulff/.atom/.apmrc" "install" "/private/var/folders/7n/6slhynld2tdc65n5p_yzcvrc0000gn/T/d-117224-27089-zndc1p/package.tgz" "--runtime=electron" "--target=1.3.13" "--arch=x64" "--global-style"
npm ERR! node v4.4.5
npm ERR! npm  v3.10.5
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the serialport package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs serialport
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls serialport
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /private/var/folders/7n/6slhynld2tdc65n5p_yzcvrc0000gn/T/apm-install-dir-117224-27089-1ye0lld/npm-debug.log
npm ERR! code 1

Juris-MacBook-Pro:~ juriwulff$ 

Cannot install plugin

I am facin an issue trying to install the plugin. This is the report file.

I have already tried to install Python 2.7 which seemed to work for some people, but I still can't install.

Installing “[email protected]” failed.Hide output…

[email protected] install C:\Users\ANGELO~1\AppData\Local\Temp\apm-install-dir-117417-8128-qsjo87.tkxbtymn29\node_modules\arduino-upload\node_modules\serialport
node-pre-gyp install --fallback-to-build

Compilazione dei progetti nella soluzione uno alla volta. Per abilitare la compilazione parallela, aggiungere l'opzione "/m".
MSBUILD : error MSB3428: impossibile caricare il componente di Visual C++ "VCBuild.exe". Per risolvere il problema, 1) installare .NET Framework 2.0 SDK, 2) Microsoft Visual Studio 2005 oppure 3) aggiungere al percorso di sistema il percorso del componente se questo � installato altrove. [C:\Users\ANGELO1\AppData\Local\Temp\apm-install-dir-117417-8128-qsjo87.tkxbtymn29\node_modules\arduino-upload\node_modules\serialport\build\binding.sln]
Failed to execute 'C:\Users\Angelo Dumitriu\AppData\Local\atom\app-1.17.0\resources\app\apm\bin\node.exe C:\Users\Angelo Dumitriu\AppData\Local\atom\app-1.17.0\resources\app\apm\bin\..\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\ANGELO
1\AppData\Local\Temp\apm-install-dir-117417-8128-qsjo87.tkxbtymn29\node_modules\arduino-upload\node_modules\serialport\build\Release\serialport.node --module_name=serialport --module_path=C:\Users\ANGELO1\AppData\Local\Temp\apm-install-dir-117417-8128-qsjo87.tkxbtymn29\node_modules\arduino-upload\node_modules\serialport\build\Release' (1)
C:\Users\ANGELO
1\AppData\Local\Temp\apm-install-dir-117417-8128-qsjo87.tkxbtymn29
`-- (empty)

node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-electron-v1.3-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (electron-v1.3 ABI) (falling back to source compile with node-gyp)
gyp ERR! build error
gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\Angelo Dumitriu\AppData\Local\atom\app-1.17.0\resources\app\apm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "C:\Users\Angelo Dumitriu\AppData\Local\atom\app-1.17.0\resources\app\apm\bin\node.exe" "C:\Users\Angelo Dumitriu\AppData\Local\atom\app-1.17.0\resources\app\apm\node_modules\node-gyp\bin\node-gyp.js" "build" "--fallback-to-build" "--module=C:\Users\ANGELO1\AppData\Local\Temp\apm-install-dir-117417-8128-qsjo87.tkxbtymn29\node_modules\arduino-upload\node_modules\serialport\build\Release\serialport.node" "--module_name=serialport" "--module_path=C:\Users\ANGELO1\AppData\Local\Temp\apm-install-dir-117417-8128-qsjo87.tkxbtymn29\node_modules\arduino-upload\node_modules\serialport\build\Release"
gyp ERR! cwd C:\Users\ANGELO1\AppData\Local\Temp\apm-install-dir-117417-8128-qsjo87.tkxbtymn29\node_modules\arduino-upload\node_modules\serialport
gyp ERR! node -v v6.9.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Users\Angelo Dumitriu\AppData\Local\atom\app-1.17.0\resources\app\apm\bin\node.exe C:\Users\Angelo Dumitriu\AppData\Local\atom\app-1.17.0\resources\app\apm\bin\..\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\ANGELO
1\AppData\Local\Temp\apm-install-dir-117417-8128-qsjo87.tkxbtymn29\node_modules\arduino-upload\node_modules\serialport\build\Release\serialport.node --module_name=serialport --module_path=C:\Users\ANGELO1\AppData\Local\Temp\apm-install-dir-117417-8128-qsjo87.tkxbtymn29\node_modules\arduino-upload\node_modules\serialport\build\Release' (1)
node-pre-gyp ERR! stack at ChildProcess. (C:\Users\ANGELO
1\AppData\Local\Temp\apm-install-dir-117417-8128-qsjo87.tkxbtymn29\node_modules\arduino-upload\node_modules\serialport\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:877:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Windows_NT 6.3.9600
node-pre-gyp ERR! command "C:\Users\Angelo Dumitriu\AppData\Local\atom\app-1.17.0\resources\app\apm\bin\node.exe" "C:\Users\ANGELO1\AppData\Local\Temp\apm-install-dir-117417-8128-qsjo87.tkxbtymn29\node_modules\arduino-upload\node_modules\serialport\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\ANGELO
1\AppData\Local\Temp\apm-install-dir-117417-8128-qsjo87.tkxbtymn29\node_modules\arduino-upload\node_modules\serialport
node-pre-gyp ERR! node -v v6.9.5
node-pre-gyp ERR! node-pre-gyp -v v0.6.32
node-pre-gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\ANGELO1\AppData\Local\Temp\apm-install-dir-117417-8128-qsjo87.tkxbtymn29\package.json'
npm WARN apm-install-dir-117417-8128-qsjo87.tkxbtymn29 No description
npm WARN apm-install-dir-117417-8128-qsjo87.tkxbtymn29 No repository field.
npm WARN apm-install-dir-117417-8128-qsjo87.tkxbtymn29 No README data
npm WARN apm-install-dir-117417-8128-qsjo87.tkxbtymn29 No license field.
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\Users\Angelo Dumitriu\AppData\Local\atom\app-1.17.0\resources\app\apm\bin\node.exe" "C:\Users\Angelo Dumitriu\AppData\Local\atom\app-1.17.0\resources\app\apm\node_modules\npm\bin\npm-cli.js" "--globalconfig" "C:\Users\Angelo Dumitriu\.atom\.apm\.apmrc" "--userconfig" "C:\Users\Angelo Dumitriu\.atom\.apmrc" "install" "C:\Users\ANGELO
1\AppData\Local\Temp\d-117417-8128-vw5w0b.zj31o9wwmi\package.tgz" "--runtime=electron" "--target=1.3.15" "--arch=x64" "--global-style"
npm ERR! node v6.9.5
npm ERR! npm v3.10.5
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the serialport package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs serialport
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls serialport
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\ANGELO~1\AppData\Local\Temp\apm-install-dir-117417-8128-qsjo87.tkxbtymn29\npm-debug.log
npm ERR! code 1

Qutestion about Error console when Verify/Build/Upload

Hi me again,
when I'm trying to Verify/Build/Upload I only get the notification in the upper right coner, not the console on the bottom witch contains the error messages.
Both if I'm start it via drop down menu or the command pallete.
Does I have to activate it anywhere?

Download is down

Got always an error when installing arduino-upload.
`Installing “[email protected]” failed.Hide output…

[email protected] install C:\Users\flori\AppData\Local\Temp\apm-install-dir-11754-10804-1c1qix1.atvsawnrk9\node_modules\arduino-upload\node_modules\serialport
node-pre-gyp install --fallback-to-build

Die Projekte in dieser Projektmappe werden nacheinander erstellt. Um eine parallele Erstellung zu erm�glichen, m�ssen Sie den Schalter "/m" hinzuf�gen.
MSBUILD : error MSB3428: Die Visual C++-Komponente "VCBuild.exe" konnte nicht geladen werden. Um dieses Problem zu beheben, installieren Sie entweder 1) .NET Framework 2.0 SDK oder 2) Microsoft Visual Studio 2005 oder 3) f�gen Sie den Speicherort der Komponente zum Systempfad hinzu, falls er vom Standardspeicherort abweicht. [C:\Users\flori\AppData\Local\Temp\apm-install-dir-11754-10804-1c1qix1.atvsawnrk9\node_modules\arduino-upload\node_modules\serialport\build\binding.sln]
Failed to execute 'C:\Users\flori\AppData\Local\atom\app-1.17.2\resources\app\apm\bin\node.exe C:\Users\flori\AppData\Local\atom\app-1.17.2\resources\app\apm\bin\..\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\flori\AppData\Local\Temp\apm-install-dir-11754-10804-1c1qix1.atvsawnrk9\node_modules\arduino-upload\node_modules\serialport\build\Release\serialport.node --module_name=serialport --module_path=C:\Users\flori\AppData\Local\Temp\apm-install-dir-11754-10804-1c1qix1.atvsawnrk9\node_modules\arduino-upload\node_modules\serialport\build\Release' (1)
C:\Users\flori\AppData\Local\Temp\apm-install-dir-11754-10804-1c1qix1.atvsawnrk9
`-- (empty)

node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-electron-v1.3-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (electron-v1.3 ABI) (falling back to source compile with node-gyp)
gyp ERR! build error
gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\flori\AppData\Local\atom\app-1.17.2\resources\app\apm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.15063
gyp ERR! command "C:\Users\flori\AppData\Local\atom\app-1.17.2\resources\app\apm\bin\node.exe" "C:\Users\flori\AppData\Local\atom\app-1.17.2\resources\app\apm\node_modules\node-gyp\bin\node-gyp.js" "build" "--fallback-to-build" "--module=C:\Users\flori\AppData\Local\Temp\apm-install-dir-11754-10804-1c1qix1.atvsawnrk9\node_modules\arduino-upload\node_modules\serialport\build\Release\serialport.node" "--module_name=serialport" "--module_path=C:\Users\flori\AppData\Local\Temp\apm-install-dir-11754-10804-1c1qix1.atvsawnrk9\node_modules\arduino-upload\node_modules\serialport\build\Release"
gyp ERR! cwd C:\Users\flori\AppData\Local\Temp\apm-install-dir-11754-10804-1c1qix1.atvsawnrk9\node_modules\arduino-upload\node_modules\serialport
gyp ERR! node -v v6.9.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Users\flori\AppData\Local\atom\app-1.17.2\resources\app\apm\bin\node.exe C:\Users\flori\AppData\Local\atom\app-1.17.2\resources\app\apm\bin\..\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\flori\AppData\Local\Temp\apm-install-dir-11754-10804-1c1qix1.atvsawnrk9\node_modules\arduino-upload\node_modules\serialport\build\Release\serialport.node --module_name=serialport --module_path=C:\Users\flori\AppData\Local\Temp\apm-install-dir-11754-10804-1c1qix1.atvsawnrk9\node_modules\arduino-upload\node_modules\serialport\build\Release' (1)
node-pre-gyp ERR! stack at ChildProcess. (C:\Users\flori\AppData\Local\Temp\apm-install-dir-11754-10804-1c1qix1.atvsawnrk9\node_modules\arduino-upload\node_modules\serialport\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:877:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Windows_NT 10.0.15063
node-pre-gyp ERR! command "C:\Users\flori\AppData\Local\atom\app-1.17.2\resources\app\apm\bin\node.exe" "C:\Users\flori\AppData\Local\Temp\apm-install-dir-11754-10804-1c1qix1.atvsawnrk9\node_modules\arduino-upload\node_modules\serialport\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\flori\AppData\Local\Temp\apm-install-dir-11754-10804-1c1qix1.atvsawnrk9\node_modules\arduino-upload\node_modules\serialport
node-pre-gyp ERR! node -v v6.9.5
node-pre-gyp ERR! node-pre-gyp -v v0.6.32
node-pre-gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\flori\AppData\Local\Temp\apm-install-dir-11754-10804-1c1qix1.atvsawnrk9\package.json'
npm WARN apm-install-dir-11754-10804-1c1qix1.atvsawnrk9 No description
npm WARN apm-install-dir-11754-10804-1c1qix1.atvsawnrk9 No repository field.
npm WARN apm-install-dir-11754-10804-1c1qix1.atvsawnrk9 No README data
npm WARN apm-install-dir-11754-10804-1c1qix1.atvsawnrk9 No license field.
npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\Users\flori\AppData\Local\atom\app-1.17.2\resources\app\apm\bin\node.exe" "C:\Users\flori\AppData\Local\atom\app-1.17.2\resources\app\apm\node_modules\npm\bin\npm-cli.js" "--globalconfig" "C:\Users\flori\.atom\.apm\.apmrc" "--userconfig" "C:\Users\flori\.atom\.apmrc" "install" "C:\Users\flori\AppData\Local\Temp\d-11754-10804-1sv5zj.9m3ip8ehfr\package.tgz" "--runtime=electron" "--target=1.3.15" "--arch=x64" "--global-style"
npm ERR! node v6.9.5
npm ERR! npm v3.10.5
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the serialport package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs serialport
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls serialport
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\flori\AppData\Local\Temp\apm-install-dir-11754-10804-1c1qix1.atvsawnrk9\npm-debug.log
npm ERR! code 1
`
When trying to open the URL, you got an Github 404 :P

https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-electron-v1.3-win32-x64.tar.gz

FIle not part of Arduino ... repeat of #3

Have left comment on #3.

this error is back for me.

When trying to upload I get the FILE isn't part of sketch error.
The FILE is part of sketch, really.

All packages updated.
OSX 10.10.5 Yosemite
ATOM 1.23.3
Package 1.3.2
PATH = /Applications/Arduino.app (note .app required on my system).
Error from command line as well as drop down.

Unable to install on Linux

Running Fedora 27 (Fresh Install)

/bin/bash: module: line 1: syntax error: unexpected end of file
/bin/bash: error importing function definition for `module'
/bin/bash: scl: line 1: syntax error: unexpected end of file
/bin/bash: error importing function definition for `scl'


> [email protected] install /tmp/apm-install-dir-118212-4160-1bor4wn.dp845tgldi/node_modules/arduino-upload/node_modules/serialport-builds-electron
> node-pre-gyp install --fallback-to-build

Failed to execute '/usr/share/atom/resources/app/apm/bin/node /usr/share/atom/resources/app/apm/bin/../node_modules/.bin/node-gyp configure --fallback-to-build --module=/tmp/apm-install-dir-118212-4160-1bor4wn.dp845tgldi/node_modules/arduino-upload/node_modules/serialport-builds-electron/build/Release/serialport.node --module_name=serialport --module_path=/tmp/apm-install-dir-118212-4160-1bor4wn.dp845tgldi/node_modules/arduino-upload/node_modules/serialport-builds-electron/build/Release --python=/usr/share/atom/resources/app/apm/bin/python-interceptor.sh' (1)
/tmp/apm-install-dir-118212-4160-1bor4wn.dp845tgldi
└── (empty)


sh: scl: line 1: syntax error: unexpected end of file
sh: error importing function definition for `scl'
sh: module: line 1: syntax error: unexpected end of file
sh: error importing function definition for `module'
node-pre-gyp ERR! Tried to download(500): https://files.sorunome.de/arduino-upload/serialport/4.0.7/serialport-v4.0.7-electron-v1.6-linux-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (electron-v1.6 ABI, glibc) (falling back to source compile with node-gyp) 
/bin/bash: scl: line 1: syntax error: unexpected end of file
/bin/bash: error importing function definition for `scl'
/bin/bash: module: line 1: syntax error: unexpected end of file
/bin/bash: error importing function definition for `module'
/bin/sh: scl: line 1: syntax error: unexpected end of file
/bin/sh: error importing function definition for `scl'
/bin/sh: module: line 1: syntax error: unexpected end of file
/bin/sh: error importing function definition for `module'
gyp: Call to 'node -e "require('nan')"' returned exit status 0 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/share/atom/resources/app/apm/node_modules/node-gyp/lib/configure.js:305:16)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.15.7-300.fc27.x86_64
gyp ERR! command "/usr/share/atom/resources/app/apm/bin/node" "/usr/share/atom/resources/app/apm/node_modules/.bin/node-gyp" "configure" "--fallback-to-build" "--module=/tmp/apm-install-dir-118212-4160-1bor4wn.dp845tgldi/node_modules/arduino-upload/node_modules/serialport-builds-electron/build/Release/serialport.node" "--module_name=serialport" "--module_path=/tmp/apm-install-dir-118212-4160-1bor4wn.dp845tgldi/node_modules/arduino-upload/node_modules/serialport-builds-electron/build/Release" "--python=/usr/share/atom/resources/app/apm/bin/python-interceptor.sh"
gyp ERR! cwd /tmp/apm-install-dir-118212-4160-1bor4wn.dp845tgldi/node_modules/arduino-upload/node_modules/serialport-builds-electron
gyp ERR! node -v v6.9.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/share/atom/resources/app/apm/bin/node /usr/share/atom/resources/app/apm/bin/../node_modules/.bin/node-gyp configure --fallback-to-build --module=/tmp/apm-install-dir-118212-4160-1bor4wn.dp845tgldi/node_modules/arduino-upload/node_modules/serialport-builds-electron/build/Release/serialport.node --module_name=serialport --module_path=/tmp/apm-install-dir-118212-4160-1bor4wn.dp845tgldi/node_modules/arduino-upload/node_modules/serialport-builds-electron/build/Release --python=/usr/share/atom/resources/app/apm/bin/python-interceptor.sh' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/tmp/apm-install-dir-118212-4160-1bor4wn.dp845tgldi/node_modules/arduino-upload/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:877:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Linux 4.15.7-300.fc27.x86_64
node-pre-gyp ERR! command "/usr/share/atom/resources/app/apm/bin/node" "/tmp/apm-install-dir-118212-4160-1bor4wn.dp845tgldi/node_modules/arduino-upload/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /tmp/apm-install-dir-118212-4160-1bor4wn.dp845tgldi/node_modules/arduino-upload/node_modules/serialport-builds-electron
node-pre-gyp ERR! node -v v6.9.5
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok 
npm WARN enoent ENOENT: no such file or directory, open '/tmp/apm-install-dir-118212-4160-1bor4wn.dp845tgldi/package.json'
npm WARN apm-install-dir-118212-4160-1bor4wn.dp845tgldi No description
npm WARN apm-install-dir-118212-4160-1bor4wn.dp845tgldi No repository field.
npm WARN apm-install-dir-118212-4160-1bor4wn.dp845tgldi No README data
npm WARN apm-install-dir-118212-4160-1bor4wn.dp845tgldi No license field.
npm ERR! Linux 4.15.7-300.fc27.x86_64
npm ERR! argv "/usr/share/atom/resources/app/apm/bin/node" "/usr/share/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/not-telmo/.atom/.apm/.apmrc" "--userconfig" "/home/not-telmo/.atom/.apmrc" "install" "/tmp/d-118212-4160-izydi7.6uc1o9wwmi/package.tgz" "--runtime=electron" "--target=1.6.16" "--arch=x64" "--global-style"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the serialport-builds-electron package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs serialport-builds-electron
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls serialport-builds-electron
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /tmp/apm-install-dir-118212-4160-1bor4wn.dp845tgldi/npm-debug.log
npm ERR! code 1

Upload fails when serial monitor open

The upload command does not actually upload if the serial monitor is open. Though the command reports success, it does not actually upload the sketch. This is expected if the serial monitor does not close the COM port during upload like it does in the IDE.

can't upload with arduino-upload

Hi,
The arduino-upload package is a cool stuff if someone want to work Atom-IDE,
Iam able to verify and build for my Arduino Pro Mini 3V , but if I want to upload
something goes wrong "Build failed" (whereas Building alone with arduino-upload:build works).
Serial Monitor also works. Iam little confused, I also keep blank the board settings, to get settings out from the arduino environment(where uploads works).
Someone has an idea what is wrong here?
PS; Is there some way to get more details about the build error message(nothing in console)
In Development Tools->Console I see that arduino-upload:upload trys to find the right Serial port
ttySS0..., ttyUSB0

Build Failed

I have this issue every time i want to verify or build my arduino code, i don´t now whats wrong, aferter 2 seconds atom says "Build Failed", i have already check the Path and seems to be correct. I've also installed "build-arduino" and "language-arduino" packages. Any suggestion or help will be well appreciated.

Atom 1.31.0-beta1 x64
arduino-upload 1.3.3
Windows 10 Home Single Language 1803

Cannot install

When I attempt to install the package, I get the following error.

> [email protected] install /private/var/folders/dx/ml7z6ck95dn4rx_vn1t3f6mh0000gn/T/apm-install-dir-11651-22381-dza0i/node_modules/arduino-upload/node_modules/serialport
> node-pre-gyp install --fallback-to-build

Unsupported target version: 0.36.8

npm WARN installMany node-pre-gyp was bundled with [email protected], but bundled package wasn't found in unpacked tree
npm WARN engine [email protected]: wanted: {"node":">=0.12.0","iojs":">=1.0.0"} (current: {"node":"0.10.40","npm":"2.13.3"})
node-pre-gyp ERR! install error
node-pre-gyp ERR! stack Error: Unsupported target version: 0.36.8
node-pre-gyp ERR! stack     at get_runtime_abi (/private/var/folders/dx/ml7z6ck95dn4rx_vn1t3f6mh0000gn/T/apm-install-dir-11651-22381-dza0i/node_modules/arduino-upload/node_modules/serialport/node_modules/node-pre-gyp/lib/util/versioning.js:156:23)
node-pre-gyp ERR! stack     at Object.module.exports.evaluate (/private/var/folders/dx/ml7z6ck95dn4rx_vn1t3f6mh0000gn/T/apm-install-dir-11651-22381-dza0i/node_modules/arduino-upload/node_modules/serialport/node_modules/node-pre-gyp/lib/util/versioning.js:277:19)
node-pre-gyp ERR! stack     at install (/private/var/folders/dx/ml7z6ck95dn4rx_vn1t3f6mh0000gn/T/apm-install-dir-11651-22381-dza0i/node_modules/arduino-upload/node_modules/serialport/node_modules/node-pre-gyp/lib/install.js:148:31)
node-pre-gyp ERR! stack     at Object.self.commands.(anonymous function) [as install] (/private/var/folders/dx/ml7z6ck95dn4rx_vn1t3f6mh0000gn/T/apm-install-dir-11651-22381-dza0i/node_modules/arduino-upload/node_modules/serialport/node_modules/node-pre-gyp/lib/node-pre-gyp.js:48:37)
node-pre-gyp ERR! stack     at run (/private/var/folders/dx/ml7z6ck95dn4rx_vn1t3f6mh0000gn/T/apm-install-dir-11651-22381-dza0i/node_modules/arduino-upload/node_modules/serialport/node_modules/node-pre-gyp/bin/node-pre-gyp:79:30)
node-pre-gyp ERR! stack     at Object.<anonymous> (/private/var/folders/dx/ml7z6ck95dn4rx_vn1t3f6mh0000gn/T/apm-install-dir-11651-22381-dza0i/node_modules/arduino-upload/node_modules/serialport/node_modules/node-pre-gyp/bin/node-pre-gyp:131:1)
node-pre-gyp ERR! stack     at Module._compile (module.js:456:26)
node-pre-gyp ERR! stack     at Object.Module._extensions..js (module.js:474:10)
node-pre-gyp ERR! stack     at Module.load (module.js:356:32)
node-pre-gyp ERR! stack     at Function.Module._load (module.js:312:12)
node-pre-gyp ERR! System Darwin 14.5.0
node-pre-gyp ERR! command "node" "/private/var/folders/dx/ml7z6ck95dn4rx_vn1t3f6mh0000gn/T/apm-install-dir-11651-22381-dza0i/node_modules/arduino-upload/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /private/var/folders/dx/ml7z6ck95dn4rx_vn1t3f6mh0000gn/T/apm-install-dir-11651-22381-dza0i/node_modules/arduino-upload/node_modules/serialport
node-pre-gyp ERR! node -v v0.10.40
node-pre-gyp ERR! node-pre-gyp -v v0.6.28
node-pre-gyp ERR! not ok
npm ERR! Darwin 14.5.0
npm ERR! argv "/opt/homebrew-cask/Caskroom/atom/1.7.3/Atom.app/Contents/Resources/app/apm/bin/node" "/opt/homebrew-cask/Caskroom/atom/1.7.3/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/chris/.atom/.apm/.apmrc" "--userconfig" "/Users/chris/.atom/.apmrc" "install" "/private/var/folders/dx/ml7z6ck95dn4rx_vn1t3f6mh0000gn/T/d-11651-22381-1olqfvs/package.tgz" "--target=0.36.8" "--arch=x64"
npm ERR! node v0.10.40
npm ERR! npm  v2.13.3
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! This is most likely a problem with the serialport package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR!     npm owner ls serialport
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /private/var/folders/dx/ml7z6ck95dn4rx_vn1t3f6mh0000gn/T/apm-install-dir-11651-22381-dza0i/npm-debug.log

Unable to install Arduino Upload

Hello,

I'm trying to install the Arduino Upload Package for Atom IDE but it does not work. When I press the Install button it does not start the dowload.

Thanks for your help.

Edgar

Error during installation

I'm trying to install this package from Atom, but there is a problem and atom is showing a log error.
I try to install it by my self using the git-bash command line on Windows, then the same error appear again:

Installing arduino-upload to C:\Users\DESARROLLO 5.atom\packages failed

[email protected] install C:\Users\DESARR~1\AppData\Local\Temp\apm-install-dir-1161116-11232-88yf1j\node_modules\arduino-upload\node_modules\serialport
node-pre-gyp install --fallback-to-build

C:\Users\DESARR1\AppData\Local\Temp\apm-install-dir-1161116-11232-88yf1j\node_modules\arduino-upload\node_modules\serialport>if not defined npm_config_node_gyp (node "C:\Users\DESARROLLO 5\AppData\Local\atom\app-1.12.7\resources\app\apm\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" clean ) else (node "" clean )
Failed to execute 'node-gyp.cmd clean' (1)
C:\Users\DESARR
1\AppData\Local\Temp\apm-install-dir-1161116-11232-88yf1j
-- (empty) node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-electron-v1.3-win32-ia32.tar.gz node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (electron-v1.3 ABI) (falling back to source compile with node-gyp) module.js:327 throw err; ^ Error: Cannot find module 'C:\Users\DESARROLLO 5\AppData\Local\atom\app-1.12.7\resources\app\apm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js' at Function.Module._resolveFilename (module.js:325:15) at Function.Module._load (module.js:276:25) at Function.Module.runMain (module.js:441:10) at startup (node.js:139:18) at node.js:968:3 node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp.cmd clean' (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\DESARR~1\AppData\Local\Temp\apm-install-dir-1161116-11232-88yf1j\node_modules\arduino-upload\node_modules\serialport\node_modules\node-pre-gyp\lib\util\compile.js:83:29) node-pre-gyp ERR! stack at emitTwo (events.js:87:13) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:172:7) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:827:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) node-pre-gyp ERR! System Windows_NT 10.0.10586 node-pre-gyp ERR! command "C:\\Users\\DESARROLLO 5\\AppData\\Local\\atom\\app-1.12.7\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\DESARR~1\\AppData\\Local\\Temp\\apm-install-dir-1161116-11232-88yf1j\\node_modules\\arduino-upload\\node_modules\\serialport\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd C:\Users\DESARR~1\AppData\Local\Temp\apm-install-dir-1161116-11232-88yf1j\node_modules\arduino-upload\node_modules\serialport node-pre-gyp ERR! node -v v4.4.5 node-pre-gyp ERR! node-pre-gyp -v v0.6.32 node-pre-gyp ERR! not ok npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\DESARR~1\AppData\Local\Temp\apm-install-dir-1161116-11232-88yf1j\package.json' npm WARN apm-install-dir-1161116-11232-88yf1j No description npm WARN apm-install-dir-1161116-11232-88yf1j No repository field. npm WARN apm-install-dir-1161116-11232-88yf1j No README data npm WARN apm-install-dir-1161116-11232-88yf1j No license field. npm ERR! Windows_NT 10.0.10586 npm ERR! argv "C:\\Users\\DESARROLLO 5\\AppData\\Local\\atom\\app-1.12.7\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\DESARROLLO 5\\AppData\\Local\\atom\\app-1.12.7\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\DESARROLLO 5\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\DESARROLLO 5\\.atom\\.apmrc" "install" "C:\\Users\\DESARR~1\\AppData\\Local\\Temp\\d-1161116-11232-i84rpt\\package.tgz" "--runtime=electron" "--target=1.3.13" "--arch=ia32" "--global-style" npm ERR! node v4.4.5 npm ERR! npm v3.10.5 npm ERR! code ELIFECYCLE npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the serialport package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs serialport
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls serialport
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\DESARR~1\AppData\Local\Temp\apm-install-dir-1161116-11232-88yf1j\npm-debug.log
npm ERR! code 1

I have node version 4.6.0 running on intel i7 windows 10 machine. I try to get the link that is showing in the above log: https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-electron-v1.3-win32-ia32.tar.gz but get a 404 not found page. Maybe that is the problem, I supose.

Question About 'Serial Monitor'

Question:
Does 'serial monitor' work only just to report activity from arduino?

I can see all text received from arduino, well formatted but i can't send commands from keyboard to arduino although see represented on the 'serial Monitor screen! !!!

('arduino-upload packet' seems work nice and stable with my iMac OS X Ver 10.11.4.
Tks,
Jose

Another Install Issue on Mac OS

Hello:

I recently updated to Atom 1.25.0 and along with that attempted to update to Arduino upload 1.33.

The build failed with the log here

It looks like it is failing to build due to it requiring a newer version of npm.

related to #30 and #32

Changes required for upcoming CoffeeScript upgrade

Hi! Thanks for maintaining the arduino-upload package!

In Atom v1.12, we are going to upgrade CoffeeScript to the latest version. This upgrade entails one potentially breaking change to the language:

Changed strategy for the generation of internal compiler variable names. Note that this means that @example function parameters are no longer available as naked example variables within the function body.

We think your package may be affected by this upgrade, in the following places:

  • The editor variable here

These findings are based on linting packages with coffeescope. We could be wrong about some of them. When we release v1.12 beta, please test your package against it to make sure that it works. Let me know if you have any further questions; I will be happy to help!

Editor has crashed trying to write on Serial

I am using Atom on Windows 10. I wrote a simple program just to echo on Serial.print the character read on Serial.read. It happened that the editor has crashed when I wrote on arduino serial. I've noticed that I can't change de line ending from CRLF to LF on Atom at the Serial Monitor window, it simply does not change. It may be the problem of trying to write on Atom's Serial Monitor. The code runs ok on Arduino IDE's Serial Monitor.

Can't install

> [email protected] install C:\Users\james\AppData\Local\Temp\apm-install-dir-1161130-4256-y02f66\node_modules\arduino-upload\node_modules\serialport
> node-pre-gyp install --fallback-to-build

Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140\Toolset.targets(34,5): error MSB8036: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution". [C:\Users\james\AppData\Local\Temp\apm-install-dir-1161130-4256-y02f66\node_modules\arduino-upload\node_modules\serialport\build\serialport.vcxproj]
Failed to execute 'C:\Users\james\AppData\Local\atom\app-1.12.7\resources\app\apm\bin\node.exe C:\Users\james\AppData\Local\atom\app-1.12.7\resources\app\apm\bin\\..\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\james\AppData\Local\Temp\apm-install-dir-1161130-4256-y02f66\node_modules\arduino-upload\node_modules\serialport\build\Release\serialport.node --module_name=serialport --module_path=C:\Users\james\AppData\Local\Temp\apm-install-dir-1161130-4256-y02f66\node_modules\arduino-upload\node_modules\serialport\build\Release' (1)
C:\Users\james\AppData\Local\Temp\apm-install-dir-1161130-4256-y02f66
`-- (empty)


node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-electron-v1.3-win32-ia32.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (electron-v1.3 ABI) (falling back to source compile with node-gyp) 
gyp ERR! build error 
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\james\AppData\Local\atom\app-1.12.7\resources\app\apm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\\Users\\james\\AppData\\Local\\atom\\app-1.12.7\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\james\\AppData\\Local\\atom\\app-1.12.7\\resources\\app\\apm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--fallback-to-build" "--module=C:\\Users\\james\\AppData\\Local\\Temp\\apm-install-dir-1161130-4256-y02f66\\node_modules\\arduino-upload\\node_modules\\serialport\\build\\Release\\serialport.node" "--module_name=serialport" "--module_path=C:\\Users\\james\\AppData\\Local\\Temp\\apm-install-dir-1161130-4256-y02f66\\node_modules\\arduino-upload\\node_modules\\serialport\\build\\Release"
gyp ERR! cwd C:\Users\james\AppData\Local\Temp\apm-install-dir-1161130-4256-y02f66\node_modules\arduino-upload\node_modules\serialport
gyp ERR! node -v v4.4.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Users\james\AppData\Local\atom\app-1.12.7\resources\app\apm\bin\node.exe C:\Users\james\AppData\Local\atom\app-1.12.7\resources\app\apm\bin\\..\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\james\AppData\Local\Temp\apm-install-dir-1161130-4256-y02f66\node_modules\arduino-upload\node_modules\serialport\build\Release\serialport.node --module_name=serialport --module_path=C:\Users\james\AppData\Local\Temp\apm-install-dir-1161130-4256-y02f66\node_modules\arduino-upload\node_modules\serialport\build\Release' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\Users\james\AppData\Local\Temp\apm-install-dir-1161130-4256-y02f66\node_modules\arduino-upload\node_modules\serialport\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:87:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:827:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
node-pre-gyp ERR! System Windows_NT 10.0.14393
node-pre-gyp ERR! command "C:\\Users\\james\\AppData\\Local\\atom\\app-1.12.7\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\james\\AppData\\Local\\Temp\\apm-install-dir-1161130-4256-y02f66\\node_modules\\arduino-upload\\node_modules\\serialport\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\james\AppData\Local\Temp\apm-install-dir-1161130-4256-y02f66\node_modules\arduino-upload\node_modules\serialport
node-pre-gyp ERR! node -v v4.4.5
node-pre-gyp ERR! node-pre-gyp -v v0.6.32
node-pre-gyp ERR! not ok 
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\james\AppData\Local\Temp\apm-install-dir-1161130-4256-y02f66\package.json'
npm WARN apm-install-dir-1161130-4256-y02f66 No description
npm WARN apm-install-dir-1161130-4256-y02f66 No repository field.
npm WARN apm-install-dir-1161130-4256-y02f66 No README data
npm WARN apm-install-dir-1161130-4256-y02f66 No license field.
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Users\\james\\AppData\\Local\\atom\\app-1.12.7\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\james\\AppData\\Local\\atom\\app-1.12.7\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\james\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\james\\.atom\\.apmrc" "install" "C:\\Users\\james\\AppData\\Local\\Temp\\d-1161130-4256-1imwxr5\\package.tgz" "--runtime=electron" "--target=1.3.13" "--arch=ia32" "--global-style" "--msvs_version=2015"
npm ERR! node v4.4.5
npm ERR! npm  v3.10.5
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the serialport package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs serialport
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls serialport
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\james\AppData\Local\Temp\apm-install-dir-1161130-4256-y02f66\npm-debug.log
npm ERR! code 1
apm --version
apm  1.12.9
npm  3.10.5
node 4.4.5
python 2.7.12
git 2.11.0.windows.1
visual studio 2015

Uncaught Error: spawn EACCES

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.8.0
System: Ubuntu 16.04
Thrown From: arduino-upload package, v0.7.1

Stack Trace

Uncaught Error: spawn EACCES

At internal/child_process.js:298

Error: spawn EACCES
    at exports._errnoException (util.js:856:11)
    at ChildProcess.spawn (internal/child_process.js:298:11)
    at exports.spawn (child_process.js:374:9)
    at Object.module.exports.ArduinoUpload.build (/home/sems/.atom/packages/arduino-upload/lib/arduino-upload.coffee:103:16)
    at atom-workspace.subscriptions.add.atom.commands.add.arduino-upload:verify (/home/sems/.atom/packages/arduino-upload/lib/arduino-upload.coffee:64:33)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app.asar/src/command-registry.js:260:29)
    at CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app.asar/src/command-registry.js:3:61)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (/usr/share/atom/resources/app.asar/src/command-registry.js:160:19)
    at AtomEnvironment.module.exports.AtomEnvironment.dispatchApplicationMenuCommand (/usr/share/atom/resources/app.asar/src/atom-environment.js:1100:28)
    at EventEmitter.outerCallback (/usr/share/atom/resources/app.asar/src/application-delegate.js:327:25)
    at emitTwo (events.js:87:13)
    at EventEmitter.emit (events.js:172:7)

Commands

     -3:01.5.0 arduino-upload:verify (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -2:34.5.0 core:save (atom-text-editor.editor.is-focused)
     -2:10.6.0 command-palette:toggle (atom-text-editor.editor.is-focused)
     -2:07.0 core:move-down (atom-text-editor.editor.mini.is-focused)
     -2:06.7.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -2:06.7.0 settings-view:view-installed-packages (atom-text-editor.editor)
     -1:24.9.0 editor:delete-to-beginning-of-word (atom-text-editor#arduino-upload.arduinoExecutablePath.editor.mini.is-focused)
  9x -1:23.7.0 core:backspace (atom-text-editor#arduino-upload.arduinoExecutablePath.editor.mini.is-focused)
     -1:11.2.0 core:confirm (atom-text-editor#arduino-upload.arduinoExecutablePath.editor.mini.is-focused)
     -0:00.7.0 arduino-upload:verify (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "eclipse-keybindings"
    ]
  },
  "arduino-upload": {
    "arduinoExecutablePath": "/home/sems/arduino-1.6.8"
  }
}

Installed Packages

# User
arduino-upload, v0.7.1
atom-beautify, v0.29.9
autocomplete-clang, v0.9.4
autocomplete-plus, v2.31.1
autocomplete-python, v1.8.1
language-arduino, v0.4.1
linter, v1.11.14
linter-clang, v3.4.4
linter-flake8, v1.13.2
minimap, v4.24.7
python-tools, v0.6.8

# Dev
No dev packages

Verify/build/upload output not visible in Atom

The package works great, but I can't see the output of any command, i.e. the bottom panel shown in the first GIF in README is never shown. The only way I can see it is if I open the Electron developer tools (Ctrl+Shift+I), but it's a mess and it's not clickable to jump to errors. I think that panel is something related to some atom-space-pen-views thing, but I don't know if I have to install some other package to make it work, or what.

Tested in Atom 1.26.1 and 1.28.1, same issue in both.

Thanks.

I can't download the package inside the Atom UI

This is the error code I get:

[email protected] install C:\Users\Ali\AppData\Local\Temp\apm-install-dir-117310-7644-1i0dxte\node_modules\arduino-upload\node_modules\serialport
node-pre-gyp install --fallback-to-build

Failed to execute 'C:\Users\Ali\AppData\Local\atom\app-1.15.0\resources\app\apm\bin\node.exe C:\Users\Ali\AppData\Local\atom\app-1.15.0\resources\app\apm\bin\..\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\Ali\AppData\Local\Temp\apm-install-dir-117310-7644-1i0dxte\node_modules\arduino-upload\node_modules\serialport\build\Release\serialport.node --module_name=serialport --module_path=C:\Users\Ali\AppData\Local\Temp\apm-install-dir-117310-7644-1i0dxte\node_modules\arduino-upload\node_modules\serialport\build\Release' (1)
C:\Users\Ali\AppData\Local\Temp\apm-install-dir-117310-7644-1i0dxte
`-- (empty)

node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-electron-v1.3-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (electron-v1.3 ABI) (falling back to source compile with node-gyp)
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at failNoPython (C:\Users\Ali\AppData\Local\atom\app-1.15.0\resources\app\apm\node_modules\node-gyp\lib\configure.js:449:14)
gyp ERR! stack at C:\Users\Ali\AppData\Local\atom\app-1.15.0\resources\app\apm\node_modules\node-gyp\lib\configure.js:404:11
gyp ERR! stack at C:\Users\Ali\AppData\Local\atom\app-1.15.0\resources\app\apm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:82:15)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\Users\Ali\AppData\Local\atom\app-1.15.0\resources\app\apm\bin\node.exe" "C:\Users\Ali\AppData\Local\atom\app-1.15.0\resources\app\apm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\Users\Ali\AppData\Local\Temp\apm-install-dir-117310-7644-1i0dxte\node_modules\arduino-upload\node_modules\serialport\build\Release\serialport.node" "--module_name=serialport" "--module_path=C:\Users\Ali\AppData\Local\Temp\apm-install-dir-117310-7644-1i0dxte\node_modules\arduino-upload\node_modules\serialport\build\Release"
gyp ERR! cwd C:\Users\Ali\AppData\Local\Temp\apm-install-dir-117310-7644-1i0dxte\node_modules\arduino-upload\node_modules\serialport
gyp ERR! node -v v4.4.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Users\Ali\AppData\Local\atom\app-1.15.0\resources\app\apm\bin\node.exe C:\Users\Ali\AppData\Local\atom\app-1.15.0\resources\app\apm\bin\..\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\Ali\AppData\Local\Temp\apm-install-dir-117310-7644-1i0dxte\node_modules\arduino-upload\node_modules\serialport\build\Release\serialport.node --module_name=serialport --module_path=C:\Users\Ali\AppData\Local\Temp\apm-install-dir-117310-7644-1i0dxte\node_modules\arduino-upload\node_modules\serialport\build\Release' (1)
node-pre-gyp ERR! stack at ChildProcess. (C:\Users\Ali\AppData\Local\Temp\apm-install-dir-117310-7644-1i0dxte\node_modules\arduino-upload\node_modules\serialport\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:87:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:172:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:827:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
node-pre-gyp ERR! System Windows_NT 10.0.14393
node-pre-gyp ERR! command "C:\Users\Ali\AppData\Local\atom\app-1.15.0\resources\app\apm\bin\node.exe" "C:\Users\Ali\AppData\Local\Temp\apm-install-dir-117310-7644-1i0dxte\node_modules\arduino-upload\node_modules\serialport\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\Ali\AppData\Local\Temp\apm-install-dir-117310-7644-1i0dxte\node_modules\arduino-upload\node_modules\serialport
node-pre-gyp ERR! node -v v4.4.5
node-pre-gyp ERR! node-pre-gyp -v v0.6.32
node-pre-gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Ali\AppData\Local\Temp\apm-install-dir-117310-7644-1i0dxte\package.json'
npm WARN apm-install-dir-117310-7644-1i0dxte No description
npm WARN apm-install-dir-117310-7644-1i0dxte No repository field.
npm WARN apm-install-dir-117310-7644-1i0dxte No README data
npm WARN apm-install-dir-117310-7644-1i0dxte No license field.
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Users\Ali\AppData\Local\atom\app-1.15.0\resources\app\apm\bin\node.exe" "C:\Users\Ali\AppData\Local\atom\app-1.15.0\resources\app\apm\node_modules\npm\bin\npm-cli.js" "--globalconfig" "C:\Users\Ali\.atom\.apm\.apmrc" "--userconfig" "C:\Users\Ali\.atom\.apmrc" "install" "C:\Users\Ali\AppData\Local\Temp\d-117310-7644-i2zdp2\package.tgz" "--runtime=electron" "--target=1.3.13" "--arch=x64" "--global-style"
npm ERR! node v4.4.5
npm ERR! npm v3.10.5
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the serialport package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs serialport
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls serialport
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Ali\AppData\Local\Temp\apm-install-dir-117310-7644-1i0dxte\npm-debug.log
npm ERR! code 1

package opens IDE

whenever I start atom with the package it will also open the IDE.
when I verify, build or upload it will print the message "Start building..." then open another IDE window each time with my code in it and then does nothing.

whenever I upload
it will also open a window with the title "bad file selected" with the message
"Processing can only open its own sketches and other files ending in .ino or .pde"

closing the IDE window causes atom to become unresponsive.

OS: Ubuntu 16.04
using atom 1.22.0
arduino-upload 1.3.2

Dead prebuilt binaries

Figured I might as well try out apm dev <package-name>, with how often I have been picking through the files of this project, and discovered that apm is unable to build [email protected] and [email protected]. Further investigation points to node-pre-gpy trying to load prebuilt binaries for electron that were previously hosted through your website.

node-pre-gyp ERR! Tried to download(500): https://files.sorunome.de/arduino-upload/serialport/4.0.7/serialport-v4.0.7-electron-v1.7-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (electron-v1.7 ABI, unknown) (falling back to source compile with node-gyp)

That link is now dead and node-pre-gpy is falling back on another invalid link as evident by gyp ERR! stack Error: 404 response downloading https://iojs.org/download/release/v1.7.11/iojs-v1.7.11.tar.gz. Did you mean to reference https://iojs.org/download/release/v1.7.1/iojs-v1.7.1.tar.gz instead? I would submit a pull request with a fix to the latter, if that's the case, but I don't know where these values are defined within the package.

Error console not showing based on Atom language

OS: MacOS High Sierra
Atom: 1.22.0

As my OS language is configured being "Dutch", the output of the compiler looks as follows:

Boards voorbereiden...
Verifiëren...
arduino:13: error: ...

This means the following statement is not executed, resulting in no error console:

if -1 != data.toString().toLowerCase().indexOf "verifying"
	console.log "ERROR OUTPUT ACTIVATED"
	dispError = true

(code from ~/.atom/packages/arduino-upload/lib/arduino-upload.coffee)

Package can't find Arduino IDE on Linux

Program crashes with 'arduino' could not be spawned. Is it installed and on your path? If so please open an issue on the package spawning the process.
Using elementary OS and Arduino IDE 1.8.1

Flex-bar buttons does not work...

I installed everything and the flexbar works, but I can't use the buttons u described... when go over PACKAGES - ARDUNIO UPLOAD - VERIFY everything works as expected.

The just do nothing... other buttons like new-file working good. Any idea?

  {
    type: "button"
    icon: "file-add"
    tooltip: "New File"
    callback: "application:new-file"
  }
  {
    type: "button"
    icon: "check"
    callback: ["core:save", "arduino-upload:verify"]
    tooltip: "Arduino: Verify",
    enable: { grammar: "arduino" }
  }
  {
    type: "button"
    icon: "arrow-right"
    callback: ["core:save", "arduino-upload:upload"]
    tooltip: "Arduino: Upload",
    enable: { grammar: "arduino" }
  }
  {
    type: "button"
    icon: "terminal"
    callback: "arduino-upload:serial-monitor"
    tooltip: "Arduino: Serial monitor",
    enable: { grammar: "arduino" }
  }
  {
    type: "spacer"
  }
  {
    type: "button"
    icon: "gear"
    callback: "flex-tool-bar:edit-config-file"
    tooltip: "Edit Tool Bar"
  }

Add command to Upload with Programmer

It would be great if we could upload using an external programmer, like in the Arduino IDE. I can see in arduino-upload.coffee that you have already implemented some aspects of port selection. I would change it myself but my CoffeeScript knowledge is pretty rusty and I can't for the life of me figure out how to add another command that sets the port to 'PROGRAMMER'.

can't install

I’m failing at install this Package via the Package installer, on my Linux Mint.
This is my Output:


> [email protected] install /tmp/apm-install-dir-117031-5601-u55wao/node_modules/arduino-upload/node_modules/serialport
> node-pre-gyp install --fallback-to-build

make: Verzeichnis »/tmp/apm-install-dir-117031-5601-u55wao/node_modules/arduino-upload/node_modules/serialport/build« wird betreten
  CXX(target) Release/obj.target/serialport/src/serialport.o
make: Verzeichnis »/tmp/apm-install-dir-117031-5601-u55wao/node_modules/arduino-upload/node_modules/serialport/build« wird verlassen
Failed to execute '/usr/share/atom/resources/app/apm/bin/node /usr/share/atom/resources/app/apm/bin/../node_modules/.bin/node-gyp build --fallback-to-build --module=/tmp/apm-install-dir-117031-5601-u55wao/node_modules/arduino-upload/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/tmp/apm-install-dir-117031-5601-u55wao/node_modules/arduino-upload/node_modules/serialport/build/Release' (1)
/tmp/apm-install-dir-117031-5601-u55wao
└── (empty)


node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-electron-v1.3-linux-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (electron-v1.3 ABI) (falling back to source compile with node-gyp) 
make: g++: Befehl nicht gefunden
make: *** [Release/obj.target/serialport/src/serialport.o] Fehler 127
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/share/atom/resources/app/apm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 3.19.0-32-generic
gyp ERR! command "/usr/share/atom/resources/app/apm/bin/node" "/usr/share/atom/resources/app/apm/node_modules/.bin/node-gyp" "build" "--fallback-to-build" "--module=/tmp/apm-install-dir-117031-5601-u55wao/node_modules/arduino-upload/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/tmp/apm-install-dir-117031-5601-u55wao/node_modules/arduino-upload/node_modules/serialport/build/Release"
gyp ERR! cwd /tmp/apm-install-dir-117031-5601-u55wao/node_modules/arduino-upload/node_modules/serialport
gyp ERR! node -v v4.4.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/share/atom/resources/app/apm/bin/node /usr/share/atom/resources/app/apm/bin/../node_modules/.bin/node-gyp build --fallback-to-build --module=/tmp/apm-install-dir-117031-5601-u55wao/node_modules/arduino-upload/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/tmp/apm-install-dir-117031-5601-u55wao/node_modules/arduino-upload/node_modules/serialport/build/Release' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/tmp/apm-install-dir-117031-5601-u55wao/node_modules/arduino-upload/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:87:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:827:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
node-pre-gyp ERR! System Linux 3.19.0-32-generic
node-pre-gyp ERR! command "/usr/share/atom/resources/app/apm/bin/node" "/tmp/apm-install-dir-117031-5601-u55wao/node_modules/arduino-upload/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /tmp/apm-install-dir-117031-5601-u55wao/node_modules/arduino-upload/node_modules/serialport
node-pre-gyp ERR! node -v v4.4.5
node-pre-gyp ERR! node-pre-gyp -v v0.6.32
node-pre-gyp ERR! not ok 
npm WARN enoent ENOENT: no such file or directory, open '/tmp/apm-install-dir-117031-5601-u55wao/package.json'
npm WARN apm-install-dir-117031-5601-u55wao No description
npm WARN apm-install-dir-117031-5601-u55wao No repository field.
npm WARN apm-install-dir-117031-5601-u55wao No README data
npm WARN apm-install-dir-117031-5601-u55wao No license field.
npm ERR! Linux 3.19.0-32-generic
npm ERR! argv "/usr/share/atom/resources/app/apm/bin/node" "/usr/share/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/johannes/.atom/.apm/.apmrc" "--userconfig" "/home/johannes/.atom/.apmrc" "install" "/tmp/d-117031-5601-yg13ny/package.tgz" "--runtime=electron" "--target=1.3.13" "--arch=x64" "--global-style"
npm ERR! node v4.4.5
npm ERR! npm  v3.10.5
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the serialport package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs serialport
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls serialport
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /tmp/apm-install-dir-117031-5601-u55wao/npm-debug.log
npm ERR! code 1

This is Output of apm --version:

apm  1.12.9
npm  3.10.5
node 4.4.5
python 2.7.6
git 1.9.1

EDIT: code Blocks

Windows Build Tools Dependency

Why does this seem to require windows build tools for the initial install? I don't believe it has anything to do with Python and the only way I see it needing MSVS is if something was being compiled during install. Obviously there must be some way to work around this or users would have reported a similar experience with other Atom packages. Submitting this issue for idea spitballing.

atom-text-editor.Object.defineProperty.get is deprecated.

The contents of atom-text-editor elements are no longer encapsulated
within a shadow DOM boundary. Please, stop using shadowRoot and access
the editor contents directly instead.

atom-text-editor.Object.defineProperty.get (/usr/lib/atom/src/text-editor-element.js:68:18)
<unknown> (/home/comfix/.atom/packages/arduino-upload/lib/serial-view.coffee:44:62)

Uncaught TypeError: Cannot read property 'list' of null

[Enter steps to reproduce below:]

  1. Go to the Tab with the file i want to upload or to the project
  2. From packages section, click on arduino Upload -> Upload

Atom Version: 1.8.0
System: "Arch Linux"
Thrown From: arduino-upload package, v0.7.1

Stack Trace

Uncaught TypeError: Cannot read property 'list' of null

At /home/parch/.atom/packages/arduino-upload/lib/arduino-upload.coffee:190

TypeError: Cannot read property 'list' of null
    at Object.module.exports.ArduinoUpload.getPort (/home/parch/.atom/packages/arduino-upload/lib/arduino-upload.coffee:190:13)
    at Object.module.exports.ArduinoUpload.upload (/home/parch/.atom/packages/arduino-upload/lib/arduino-upload.coffee:148:5)
    at atom-workspace.subscriptions.add.atom.commands.add.arduino-upload:upload (/home/parch/.atom/packages/arduino-upload/lib/arduino-upload.coffee:68:33)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app.asar/src/command-registry.js:260:29)
    at CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app.asar/src/command-registry.js:3:61)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (/usr/share/atom/resources/app.asar/src/command-registry.js:160:19)
    at AtomEnvironment.module.exports.AtomEnvironment.dispatchApplicationMenuCommand (/usr/share/atom/resources/app.asar/src/atom-environment.js:1100:28)
    at EventEmitter.outerCallback (/usr/share/atom/resources/app.asar/src/application-delegate.js:327:25)
    at emitTwo (events.js:87:13)
    at EventEmitter.emit (events.js:172:7)

Commands

     -0:01.5.0 arduino-upload:upload (atom-text-editor.editor.vim-mode.power-mode.insert-mode.is-focused)

Config

{
  "core": {
    "audioBeep": false,
    "autoHideMenuBar": true,
    "destroyEmptyPanes": false,
    "disabledPackages": [
      "you-complete-me",
      "language-javascript",
      "autocomplete-java",
      "file-explorer",
      "build",
      "activate-power-mode",
      "autocomplete-bash-builtins",
      "autocomplete-clang",
      "platformio-ide",
      "platformio-ide-terminal"
    ],
    "excludeVcsIgnoredPaths": false,
    "packagesWithKeymapsDisabled": [],
    "projectHome": "/home/parch/Documents/projects/",
    "themes": [
      "atom-dark-ui",
      "monokai-solarized-dark"
    ]
  },
  "arduino-upload": {
    "board": "arduino:avr"
  }
}

Installed Packages

# User
activate-power-mode-delete, v0.6.1
arduino-upload, v0.7.1
autocomplete-haskell, v0.6.5
busy, v0.6.0
fun-files, v0.10.0
gpp-compiler, v3.0.4
haskell-ghc-mod, v1.16.0
ide-haskell, v1.6.5
ide-haskell-cabal, v1.4.1
ide-haskell-repl, v0.0.23
language-arduino, v0.4.1
language-assembly, v0.6.2
language-haskell, v1.7.18
language-ini, v1.16.0
linter, v1.11.14
linter-gcc, v0.6.15
monokai-solarized-dark, v0.1.1
pigments, v0.31.2
tool-bar, v1.0.0
vim-mode, v0.65.1

# Dev
No dev packages

Main functions not defined

I installed the package on Ubunstu Studio 18.04, Atom 1.29.0.
Trying to upload a test blink sketch I get:

undefined reference to 'setup'
undefined reference to 'loop'

I've set the path to my Arduino executable, which is 1.8.5
I also see that it's using an older version of the Arduino, 1.6.21, right? Can that be an issue?

The package breaks on every update

As the title, then Atom is able to fix the problem on its own by offering the possibility of auto-rebuilding the package internally.
This problem is present in more than one version of the package.

Maybe related to #27 ?

Atom 1.19.4 x64
OS: Arch Linux ( last full package update today )

Some installed packages could not be loaded because they contain native modules that were compiled for an earlier version of Atom.

arduino-upload 1.2.0

build@unknown – Cannot find module '/home/root/.atom/packages/arduino-upload/node_modules/serialport/build'
[email protected] – The module '/home/root/.atom/packages/arduino-upload/node_modules/serialport/build/Release/serialport.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 50. This version of Node.js requires NODE_MODULE_VERSION 53. Please try re-compiling or re-installing the module (for instance, using `npm rebuild` or`npm install`).
[email protected] – The module '/home/root/.atom/packages/arduino-upload/node_modules/usb-detection/build/Release/detection.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 50. This version of Node.js requires NODE_MODULE_VERSION 53. Please try re-compiling or re-installing the module (for instance, using `npm rebuild` or`npm install`).
[email protected] – Cannot find module '/home/root/.atom/packages/arduino-upload/node_modules/usb-detection/build'

Impossible to copy output in the Serial Monitor if constantly written

When the Serial Monitor tab continuously outputs incoming data (like for some quick periodical process), it's impossible to select and copy text. As soon as you select the text, it is overwritten with the incoming one. It'll be great to have a button in the bottom right corner to "suspend" monitoring, or something like that.

Thanks.

Cannot install serialport & usb-detection dependencies

Running Atom on Windows 10 and I installed "arduino-upload" via the Atom GUI and also tried via APM.

In neither cases it installs the npm dependencies for the serial port and usb detection.

How to do that? I need help! :)

Cant install package on OSX

Always getting this fault when I try to install the package.

`Installing “[email protected]” failed.Hide output…

[email protected] install /private/var/folders/0y/4dl944691xxgnd8csdhp_ksm0000gn/T/apm-install-dir-117929-77429-uih4nw.272gdjkyb9/node_modules/arduino-upload/node_modules/serialport-builds-electron
node-pre-gyp install --fallback-to-build

Failed to execute '/Applications/Atom.app/Contents/Resources/app/apm/bin/node /Applications/Atom.app/Contents/Resources/app/apm/bin/../node_modules/.bin/node-gyp configure --fallback-to-build --module=/private/var/folders/0y/4dl944691xxgnd8csdhp_ksm0000gn/T/apm-install-dir-117929-77429-uih4nw.272gdjkyb9/node_modules/arduino-upload/node_modules/serialport-builds-electron/build/Release/serialport.node --module_name=serialport --module_path=/private/var/folders/0y/4dl944691xxgnd8csdhp_ksm0000gn/T/apm-install-dir-117929-77429-uih4nw.272gdjkyb9/node_modules/arduino-upload/node_modules/serialport-builds-electron/build/Release' (1)
/private/var/folders/0y/4dl944691xxgnd8csdhp_ksm0000gn/T/apm-install-dir-117929-77429-uih4nw.272gdjkyb9
`-- (empty)

node-pre-gyp ERR! Tried to download(500): https://files.sorunome.de/arduino-upload/serialport/4.0.7/serialport-v4.0.7-electron-v1.6-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (electron-v1.6 ABI) (falling back to source compile with node-gyp)
gyp ERR! configure error
gyp ERR! stack Error: Python executable "/Applications/Atom.app/Contents/Resources/app/apm/bin/python-interceptor.sh" is v3.6.1, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack at failPythonVersion (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/node-gyp/lib/configure.js:454:14)
gyp ERR! stack at /Applications/Atom.app/Contents/Resources/app/apm/node_modules/node-gyp/lib/configure.js:443:9
gyp ERR! stack at ChildProcess.exithandler (child_process.js:197:7)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at maybeClose (internal/child_process.js:877:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
gyp ERR! System Darwin 16.7.0
gyp ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/.bin/node-gyp" "configure" "--fallback-to-build" "--module=/private/var/folders/0y/4dl944691xxgnd8csdhp_ksm0000gn/T/apm-install-dir-117929-77429-uih4nw.272gdjkyb9/node_modules/arduino-upload/node_modules/serialport-builds-electron/build/Release/serialport.node" "--module_name=serialport" "--module_path=/private/var/folders/0y/4dl944691xxgnd8csdhp_ksm0000gn/T/apm-install-dir-117929-77429-uih4nw.272gdjkyb9/node_modules/arduino-upload/node_modules/serialport-builds-electron/build/Release"
gyp ERR! cwd /private/var/folders/0y/4dl944691xxgnd8csdhp_ksm0000gn/T/apm-install-dir-117929-77429-uih4nw.272gdjkyb9/node_modules/arduino-upload/node_modules/serialport-builds-electron
gyp ERR! node -v v6.9.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/Applications/Atom.app/Contents/Resources/app/apm/bin/node /Applications/Atom.app/Contents/Resources/app/apm/bin/../node_modules/.bin/node-gyp configure --fallback-to-build --module=/private/var/folders/0y/4dl944691xxgnd8csdhp_ksm0000gn/T/apm-install-dir-117929-77429-uih4nw.272gdjkyb9/node_modules/arduino-upload/node_modules/serialport-builds-electron/build/Release/serialport.node --module_name=serialport --module_path=/private/var/folders/0y/4dl944691xxgnd8csdhp_ksm0000gn/T/apm-install-dir-117929-77429-uih4nw.272gdjkyb9/node_modules/arduino-upload/node_modules/serialport-builds-electron/build/Release' (1)
node-pre-gyp ERR! stack at ChildProcess. (/private/var/folders/0y/4dl944691xxgnd8csdhp_ksm0000gn/T/apm-install-dir-117929-77429-uih4nw.272gdjkyb9/node_modules/arduino-upload/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:877:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Darwin 16.7.0
node-pre-gyp ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/private/var/folders/0y/4dl944691xxgnd8csdhp_ksm0000gn/T/apm-install-dir-117929-77429-uih4nw.272gdjkyb9/node_modules/arduino-upload/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /private/var/folders/0y/4dl944691xxgnd8csdhp_ksm0000gn/T/apm-install-dir-117929-77429-uih4nw.272gdjkyb9/node_modules/arduino-upload/node_modules/serialport-builds-electron
node-pre-gyp ERR! node -v v6.9.5
node-pre-gyp ERR! node-pre-gyp -v v0.6.38
node-pre-gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open '/private/var/folders/0y/4dl944691xxgnd8csdhp_ksm0000gn/T/apm-install-dir-117929-77429-uih4nw.272gdjkyb9/package.json'
npm WARN apm-install-dir-117929-77429-uih4nw.272gdjkyb9 No description
npm WARN apm-install-dir-117929-77429-uih4nw.272gdjkyb9 No repository field.
npm WARN apm-install-dir-117929-77429-uih4nw.272gdjkyb9 No README data
npm WARN apm-install-dir-117929-77429-uih4nw.272gdjkyb9 No license field.
npm ERR! Darwin 16.7.0
npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/User/.atom/.apm/.apmrc" "--userconfig" "/Users/User/.atom/.apmrc" "install" "/private/var/folders/0y/4dl944691xxgnd8csdhp_ksm0000gn/T/d-117929-77429-3py533.xubv9m5cdi/package.tgz" "--runtime=electron" "--target=1.6.15" "--arch=x64" "--global-style"
npm ERR! node v6.9.5
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the serialport-builds-electron package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs serialport-builds-electron
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls serialport-builds-electron
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /private/var/folders/0y/4dl944691xxgnd8csdhp_ksm0000gn/T/apm-install-dir-117929-77429-uih4nw.272gdjkyb9/npm-debug.log
npm ERR! code 1
`

default path on macOS

AFAIK, installing the Arduino IDE on macOS consists solely of putting the .app bundle into /Applications. At no point is an arduino binary added to the user's $PATH. Digging through the app bundle, it looks like all there is is an Arduino binary which launches the IDE.

Perhaps on macOS this library should instead default to expecting the executable path to be /Applications/Arduino.app/Contents/MacOS/Arduino? That at least gets the verify and upload commands to run, though serial monitor doesn't seem to work properly.

Can't upload

Hi, i'm using a nano atmega 328 in OSX Sierra, i'm able to upload via Arduino IDE but i can't setting my atom to upload.
My port is /dev/wchusbserial1410

could help me?

Option to automatically save file before upload please

I can't count the number of times I've uploaded something and spent ages trying to work out why the changes I've made to the code didn't do anything. Then I realise that I didn't save before the last upload.

Could you please implement at least an option to automatically save before uploading, to make your fine package even finer. Thanks

Non-serial uploaders

Non-serial uploaders such as the Atmel-ICE aren't working due to assuming to be looking for something on the serial port thing.

no arduino connected

Hi!
I'm getting the messaage "no arduino connected" even tho I can build the sketch and my arduino ide is set to the port.
I'm using ubuntu gnome, arduino ide 1.8.4, and arduino-upload 1.1.0, atom 1.19.
I haven't been able to find where to set the port in the package.
Help pls!

Manual Port & Baud Selection

Proposing drop-up list for open ports next to the board selection drop-up list. Could be potentially helpful for troubleshooting errors like #24 and allow for multiple connected boards without upload issues. It would also help to be able to toggle the baud rate of the serial monitor within the monitor tab.

Upon further investigation it appears that arduino-upload/styles/arduino-upload.less has multiple instances referring to a serial selection button. Is this actually implemented and I'm just blind, is this a bug, or was that a the remains of a WIP from a while back? I'm doing some digging to see if I can get it working but you'll have to forgive me, this is my first attempt at decrypting CoffeeScript and Less.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.