there are multiple bug tickets filed for this issue.. essentially this is an incompatibility between atom and the particle-dev ide that loads in atom,.
see the following:
opened 05:06PM - 28 Feb 17 UTC
closed 12:16PM - 20 Jul 17 UTC
bug
needs info
I constantly get errors when trying to compile, saying that Atom is out of date.…
The error was thrown from the particle-dev package. Atom is out of date: 1.8.0 installed; 1.14.4 latest. Upgrading to the latest version may fix this issue.
Uncaught TypeError: Cannot read property 'replace' of undefined
C:\Users\grudman\AppData\Local\particledev\app-1.8.0\resources\app.asar\node_modules\particle-dev\lib\views\compile-errors-view.js:59
Hide Stack Trace
TypeError: Cannot read property 'replace' of undefined
at CompileErrorsView.module.exports.CompileErrorsView.fixInoFile (C:\Users\grudman\AppData\Local\particledev\app-1.8.0\resources\app.asar\node_modules\particle-dev\lib\views\compile-errors-view.js:59:22)
at Object.content (C:\Users\grudman\AppData\Local\particledev\app-1.8.0\resources\app.asar\node_modules\particle-dev\lib\views\compile-errors-view.js:89:21)
at Builder.tag (C:\Users\grudman\AppData\Local\particledev\app-1.8.0\resources\app.asar\node_modules\atom-space-pen-views\node_modules\space-pen\lib\space-pen.js:281:19)
at Function.View.(anonymous function) [as li] (C:\Users\grudman\AppData\Local\particledev\app-1.8.0\resources\app.asar\node_modules\atom-space-pen-views\node_modules\space-pen\lib\space-pen.js:83:49)
at Function.<anonymous> (C:\Users\grudman\AppData\Local\particledev\app-1.8.0\resources\app.asar\node_modules\particle-dev\lib\views\compile-errors-view.js:80:21)
at Function.View.buildHtml (C:\Users\grudman\AppData\Local\particledev\app-1.8.0\resources\app.asar\node_modules\atom-space-pen-views\node_modules\space-pen\lib\space-pen.js:123:10)
at Function.View.render (C:\Users\grudman\AppData\Local\particledev\app-1.8.0\resources\app.asar\node_modules\atom-space-pen-views\node_modules\space-pen\lib\space-pen.js:129:19)
at exports.$$ (C:\Users\grudman\AppData\Local\particledev\app-1.8.0\resources\app.asar\node_modules\atom-space-pen-views\node_modules\space-pen\lib\space-pen.js:627:24)
at CompileErrorsView.module.exports.CompileErrorsView.viewForItem (C:\Users\grudman\AppData\Local\particledev\app-1.8.0\resources\app.asar\node_modules\particle-dev\lib\views\compile-errors-view.js:79:14)
at CompileErrorsView.module.exports.SelectListView.populateList (C:\Users\grudman\AppData\Local\particledev\app-1.8.0\resources\app.asar\node_modules\atom-space-pen-views\lib\select-list-view.js:206:29)
at CompileErrorsView.module.exports.SelectListView.setItems (C:\Users\grudman\AppData\Local\particledev\app-1.8.0\resources\app.asar\node_modules\atom-space-pen-views\lib\select-list-view.js:167:12)
at CompileErrorsView.module.exports.CompileErrorsView.show (C:\Users\grudman\AppData\Local\particledev\app-1.8.0\resources\app.asar\node_modules\particle-dev\lib\views\compile-errors-view.js:69:14)
at CompileErrorsView.show (C:\Users\grudman\AppData\Local\particledev\app-1.8.0\resources\app.asar\node_modules\particle-dev\lib\views\compile-errors-view.js:3:61)
at Object.module.exports.showCompileErrors (C:\Users\grudman\AppData\Local\particledev\app-1.8.0\resources\app.asar\node_modules\particle-dev\lib\main.js:1132:37)
at atom-workspace.<anonymous> (C:\Users\grudman\AppData\Local\particledev\app-1.8.0\resources\app.asar\node_modules\particle-dev\lib\main.js:131:24)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\grudman\AppData\Local\particledev\app-1.8.0\resources\app.asar\src\command-registry.js:260:29)
at CommandRegistry.handleCommandEvent (C:\Users\grudman\AppData\Local\particledev\app-1.8.0\resources\app.asar\src\command-registry.js:3:61)
at CommandRegistry.module.exports.CommandRegistry.dispatch (C:\Users\grudman\AppData\Local\particledev\app-1.8.0\resources\app.asar\src\command-registry.js:160:19)
at C:\Users\grudman\AppData\Local\particledev\app-1.8.0\resources\app.asar\node_modules\particle-dev\lib\main.js:1019:29
at Object.module.exports.minBuildTargetRequired (C:\Users\grudman\AppData\Local\particledev\app-1.8.0\resources\app.asar\node_modules\particle-dev\lib\main.js:498:14)
at C:\Users\grudman\AppData\Local\particledev\app-1.8.0\resources\app.asar\node_modules\particle-dev\lib\main.js:941:24
at Object.module.exports.loginRequired (C:\Users\grudman\AppData\Local\particledev\app-1.8.0\resources\app.asar\node_modules\particle-dev\lib\main.js:450:14)
at Object.module.exports.compileCloud (C:\Users\grudman\AppData\Local\particledev\app-1.8.0\resources\app.asar\node_modules\particle-dev\lib\main.js:939:19)
at atom-workspace.<anonymous> (C:\Users\grudman\AppData\Local\particledev\app-1.8.0\resources\app.asar\node_modules\particle-dev\lib\main.js:146:24)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\grudman\AppData\Local\particledev\app-1.8.0\resources\app.asar\src\command-registry.js:260:29)
at CommandRegistry.handleCommandEvent (C:\Users\grudman\AppData\Local\particledev\app-1.8.0\resources\app.asar\src\command-registry.js:3:61)
at CommandRegistry.module.exports.CommandRegistry.dispatch (C:\Users\grudman\AppData\Local\particledev\app-1.8.0\resources\app.asar\src\command-registry.js:160:19)
at executeCallback (C:\Users\grudman\AppData\Local\particledev\app-1.8.0\resources\app.asar\node_modules\tool-bar\lib\tool-bar-button-view.js:123:19)
at ToolBarButtonView._onClick (C:\Users\grudman\AppData\Local\particledev\app-1.8.0\resources\app.asar\node_modules\tool-bar\lib\tool-bar-button-view.js:82:9)
opened 03:14PM - 11 Mar 17 UTC
closed 04:00PM - 06 Apr 17 UTC
bug
needs info
confirmed
I'm getting this error when I try to compile. I have removed all related files,… prefs, etc., and reinstalled. What am I missing?
[Enter steps to reproduce below:]
1. ...
2. ...
**Atom Version**: 1.8.0
**System**: Mac OS X 10.12.3
**Thrown From**: [particle-dev](https://github.com/spark/particle-dev) package, v0.1.20
### Stack Trace
Uncaught TypeError: path must be a string
```
At fs.js:584
TypeError: path must be a string
at TypeError (native)
at Object.fs.openSync (fs.js:584:18)
at Object.module.(anonymous function) [as openSync] (ATOM_SHELL_ASAR.js:159:20)
at Object.fs.readFileSync (fs.js:431:33)
at Object.fs.readFileSync (ATOM_SHELL_ASAR.js:427:29)
at /Applications/Particle Dev.app/Contents/Resources/app.asar/node_modules/particle-dev/lib/main.js:1030:40
at Object.module.exports.minBuildTargetRequired (/Applications/Particle Dev.app/Contents/Resources/app.asar/node_modules/particle-dev/lib/main.js:498:14)
at /Applications/Particle Dev.app/Contents/Resources/app.asar/node_modules/particle-dev/lib/main.js:941:24
at Object.module.exports.loginRequired (/Applications/Particle Dev.app/Contents/Resources/app.asar/node_modules/particle-dev/lib/main.js:450:14)
at Object.module.exports.compileCloud (/Applications/Particle Dev.app/Contents/Resources/app.asar/node_modules/particle-dev/lib/main.js:939:19)
at atom-workspace.<anonymous> (/Applications/Particle Dev.app/Contents/Resources/app.asar/node_modules/particle-dev/lib/main.js:146:24)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Particle Dev.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
at CommandRegistry.handleCommandEvent (/Applications/Particle Dev.app/Contents/Resources/app.asar/src/command-registry.js:3:61)
at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Particle Dev.app/Contents/Resources/app.asar/src/command-registry.js:160:19)
at executeCallback (/Applications/Particle Dev.app/Contents/Resources/app.asar/node_modules/tool-bar/lib/tool-bar-button-view.js:123:19)
at ToolBarButtonView._onClick (/Applications/Particle Dev.app/Contents/Resources/app.asar/node_modules/tool-bar/lib/tool-bar-button-view.js:82:9)
```
### Commands
```
2x -7:32.1.0 core:copy (atom-notification.fatal.icon.icon-bug.native-key-bindings.has-detail.has-close.has-stack)
-2:51.3.0 settings-view:uninstall-packages (atom-notification.fatal.icon.icon-bug.native-key-bindings.has-detail.has-close.has-stack)
-0:00.7.0 particle-dev:compile-cloud (atom-text-editor.editor)
-0:00.7.0 window:save-all (atom-workspace.workspace.scrollbars-visible-always.theme-monokai.theme-one-dark-ui)
-0:00.7.0 particle-dev:update-compile-status (atom-workspace.workspace.scrollbars-visible-always.theme-monokai.theme-one-dark-ui)
```
### Config
```json
{
"core": {
"themes": [
"one-dark-ui",
"monokai"
]
}
}
```
### Installed Packages
```coffee
# User
No installed packages
# Dev
No dev packages
```
opened 01:56PM - 14 Mar 17 UTC
bug
needs info
I am trying to workaround compile problems in the standard winx64 distribution a… rchive that is provided from the particle dev official site by installing latest version of atom and then using the package manager to install particle-dev or particle-dev-complete, after struggling for many hours, I realized that there are many depends (including git for windows, python, etc.) After fixing all of those issues, I finally got the error log down to a point where I can no longer figure out what to do next.
the atom log errors with the following:
```
D:\Downloads\atom-x64-windows\Atom x64\resources\app\apm\bin> .\apm install particle-dev
Installing particle-dev to C:\Users\Lcstyle\.atom\packages failed
> serialport@4.0.1 install C:\Users\Lcstyle\AppData\Local\Temp\apm-install-dir-117214-15408-lz1ote\node_modules\particle-dev\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.
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visual Studio 2005 or 3) add the location of the component to the system path if it is installed elsewhere. [C:\Users\Lcstyle\AppData\Local\Temp\apm-install-dir-117214-15408-lz1ote\node_modules\particle-dev\node_modules\serialport\build\binding.sln]
Failed to execute 'D:\Downloads\atom-x64-windows\Atom x64\resources\app\apm\bin\node.exe D:\Downloads\atom-x64-windows\Atom x64\resources\app\apm\bin\\..\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\Lcstyle\AppData\Local\Temp\apm-install-dir-117214-15408-lz1ote\node_modules\particle-dev\node_modules\serialport\build\Release\serialport.node --module_name=serialport --module_path=C:\Users\Lcstyle\AppData\Local\Temp\apm-install-dir-117214-15408-lz1ote\node_modules\particle-dev\node_modules\serialport\build\Release' (1)
C:\Users\Lcstyle\AppData\Local\Temp\apm-install-dir-117214-15408-lz1ote
`-- (empty)
npm WARN deprecated spark@0.5.10: Use particle-api-js instead
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN excluding symbolic link test\server\static\ie8-polyfill.js -> ../../../ie8-polyfill.js
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
at TLSSocket.addListener (events.js:239:17)
at TLSSocket.Readable.on (_stream_readable.js:673:33)
at Request.<anonymous> (D:\Downloads\atom-x64-windows\Atom x64\resources\app\apm\node_modules\npm-registry-client\lib\request.js:153:7)
at emitOne (events.js:77:13)
at Request.emit (events.js:169:7)
at ClientRequest.<anonymous> (D:\Downloads\atom-x64-windows\Atom x64\resources\app\apm\node_modules\request\request.js:837:10)
at emitOne (events.js:82:20)
at ClientRequest.emit (events.js:169:7)
at tickOnSocket (_http_client.js:502:7)
at onSocketNT (_http_client.js:514:5)
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
at TLSSocket.addListener (events.js:239:17)
at TLSSocket.Readable.on (_stream_readable.js:673:33)
at Request.<anonymous> (D:\Downloads\atom-x64-windows\Atom x64\resources\app\apm\node_modules\npm-registry-client\lib\request.js:153:7)
at emitOne (events.js:77:13)
at Request.emit (events.js:169:7)
at ClientRequest.<anonymous> (D:\Downloads\atom-x64-windows\Atom x64\resources\app\apm\node_modules\request\request.js:837:10)
at emitOne (events.js:82:20)
at ClientRequest.emit (events.js:169:7)
at tickOnSocket (_http_client.js:502:7)
at onSocketNT (_http_client.js:514:5)
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
at TLSSocket.addListener (events.js:239:17)
at TLSSocket.Readable.on (_stream_readable.js:673:33)
at Request.<anonymous> (D:\Downloads\atom-x64-windows\Atom x64\resources\app\apm\node_modules\npm-registry-client\lib\request.js:153:7)
at emitOne (events.js:77:13)
at Request.emit (events.js:169:7)
at ClientRequest.<anonymous> (D:\Downloads\atom-x64-windows\Atom x64\resources\app\apm\node_modules\request\request.js:837:10)
at emitOne (events.js:82:20)
at ClientRequest.emit (events.js:169:7)
at tickOnSocket (_http_client.js:502:7)
at onSocketNT (_http_client.js:514:5)
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
at TLSSocket.addListener (events.js:239:17)
at TLSSocket.Readable.on (_stream_readable.js:673:33)
at Request.<anonymous> (D:\Downloads\atom-x64-windows\Atom x64\resources\app\apm\node_modules\npm-registry-client\lib\request.js:153:7)
at emitOne (events.js:77:13)
at Request.emit (events.js:169:7)
at ClientRequest.<anonymous> (D:\Downloads\atom-x64-windows\Atom x64\resources\app\apm\node_modules\request\request.js:837:10)
at emitOne (events.js:82:20)
at ClientRequest.emit (events.js:169:7)
at tickOnSocket (_http_client.js:502:7)
at onSocketNT (_http_client.js:514:5)
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
at TLSSocket.addListener (events.js:239:17)
at TLSSocket.Readable.on (_stream_readable.js:673:33)
at Request.<anonymous> (D:\Downloads\atom-x64-windows\Atom x64\resources\app\apm\node_modules\npm-registry-client\lib\request.js:153:7)
at emitOne (events.js:77:13)
at Request.emit (events.js:169:7)
at ClientRequest.<anonymous> (D:\Downloads\atom-x64-windows\Atom x64\resources\app\apm\node_modules\request\request.js:837:10)
at emitOne (events.js:82:20)
at ClientRequest.emit (events.js:169:7)
at tickOnSocket (_http_client.js:502:7)
at onSocketNT (_http_client.js:514:5)
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
at TLSSocket.addListener (events.js:239:17)
at TLSSocket.Readable.on (_stream_readable.js:673:33)
at Request.<anonymous> (D:\Downloads\atom-x64-windows\Atom x64\resources\app\apm\node_modules\npm-registry-client\lib\request.js:153:7)
at emitOne (events.js:77:13)
at Request.emit (events.js:169:7)
at ClientRequest.<anonymous> (D:\Downloads\atom-x64-windows\Atom x64\resources\app\apm\node_modules\request\request.js:837:10)
at emitOne (events.js:82:20)
at ClientRequest.emit (events.js:169:7)
at tickOnSocket (_http_client.js:502:7)
at onSocketNT (_http_client.js:514:5)
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
at TLSSocket.addListener (events.js:239:17)
at TLSSocket.Readable.on (_stream_readable.js:673:33)
at Request.<anonymous> (D:\Downloads\atom-x64-windows\Atom x64\resources\app\apm\node_modules\npm-registry-client\lib\request.js:153:7)
at emitOne (events.js:77:13)
at Request.emit (events.js:169:7)
at ClientRequest.<anonymous> (D:\Downloads\atom-x64-windows\Atom x64\resources\app\apm\node_modules\request\request.js:837:10)
at emitOne (events.js:82:20)
at ClientRequest.emit (events.js:169:7)
at tickOnSocket (_http_client.js:502:7)
at onSocketNT (_http_client.js:514:5)
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
at TLSSocket.addListener (events.js:239:17)
at TLSSocket.Readable.on (_stream_readable.js:673:33)
at Request.<anonymous> (D:\Downloads\atom-x64-windows\Atom x64\resources\app\apm\node_modules\npm-registry-client\lib\request.js:153:7)
at emitOne (events.js:77:13)
at Request.emit (events.js:169:7)
at ClientRequest.<anonymous> (D:\Downloads\atom-x64-windows\Atom x64\resources\app\apm\node_modules\request\request.js:837:10)
at emitOne (events.js:82:20)
at ClientRequest.emit (events.js:169:7)
at tickOnSocket (_http_client.js:502:7)
at onSocketNT (_http_client.js:514:5)
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
at TLSSocket.addListener (events.js:239:17)
at TLSSocket.Readable.on (_stream_readable.js:673:33)
at Request.<anonymous> (D:\Downloads\atom-x64-windows\Atom x64\resources\app\apm\node_modules\npm-registry-client\lib\request.js:153:7)
at emitOne (events.js:77:13)
at Request.emit (events.js:169:7)
at ClientRequest.<anonymous> (D:\Downloads\atom-x64-windows\Atom x64\resources\app\apm\node_modules\request\request.js:837:10)
at emitOne (events.js:82:20)
at ClientRequest.emit (events.js:169:7)
at tickOnSocket (_http_client.js:502:7)
at onSocketNT (_http_client.js:514:5)
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
at TLSSocket.addListener (events.js:239:17)
at TLSSocket.Readable.on (_stream_readable.js:673:33)
at Request.<anonymous> (D:\Downloads\atom-x64-windows\Atom x64\resources\app\apm\node_modules\npm-registry-client\lib\request.js:153:7)
at emitOne (events.js:77:13)
at Request.emit (events.js:169:7)
at ClientRequest.<anonymous> (D:\Downloads\atom-x64-windows\Atom x64\resources\app\apm\node_modules\request\request.js:837:10)
at emitOne (events.js:82:20)
at ClientRequest.emit (events.js:169:7)
at tickOnSocket (_http_client.js:502:7)
at onSocketNT (_http_client.js:514:5)
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
at TLSSocket.addListener (events.js:239:17)
at TLSSocket.Readable.on (_stream_readable.js:673:33)
at Request.<anonymous> (D:\Downloads\atom-x64-windows\Atom x64\resources\app\apm\node_modules\npm-registry-client\lib\request.js:153:7)
at emitOne (events.js:77:13)
at Request.emit (events.js:169:7)
at ClientRequest.<anonymous> (D:\Downloads\atom-x64-windows\Atom x64\resources\app\apm\node_modules\request\request.js:837:10)
at emitOne (events.js:82:20)
at ClientRequest.emit (events.js:169:7)
at tickOnSocket (_http_client.js:502:7)
at onSocketNT (_http_client.js:514:5)
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
at TLSSocket.addListener (events.js:239:17)
at TLSSocket.Readable.on (_stream_readable.js:673:33)
at Request.<anonymous> (D:\Downloads\atom-x64-windows\Atom x64\resources\app\apm\node_modules\npm-registry-client\lib\request.js:153:7)
at emitOne (events.js:77:13)
at Request.emit (events.js:169:7)
at ClientRequest.<anonymous> (D:\Downloads\atom-x64-windows\Atom x64\resources\app\apm\node_modules\request\request.js:837:10)
at emitOne (events.js:82:20)
at ClientRequest.emit (events.js:169:7)
at tickOnSocket (_http_client.js:502:7)
at onSocketNT (_http_client.js:514:5)
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
at TLSSocket.addListener (events.js:239:17)
at TLSSocket.Readable.on (_stream_readable.js:673:33)
at Request.<anonymous> (D:\Downloads\atom-x64-windows\Atom x64\resources\app\apm\node_modules\npm-registry-client\lib\request.js:153:7)
at emitOne (events.js:77:13)
at Request.emit (events.js:169:7)
at ClientRequest.<anonymous> (D:\Downloads\atom-x64-windows\Atom x64\resources\app\apm\node_modules\request\request.js:837:10)
at emitOne (events.js:82:20)
at ClientRequest.emit (events.js:169:7)
at tickOnSocket (_http_client.js:502:7)
at onSocketNT (_http_client.js:514:5)
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
at TLSSocket.addListener (events.js:239:17)
at TLSSocket.Readable.on (_stream_readable.js:673:33)
at Request.<anonymous> (D:\Downloads\atom-x64-windows\Atom x64\resources\app\apm\node_modules\npm-registry-client\lib\request.js:153:7)
at emitOne (events.js:77:13)
at Request.emit (events.js:169:7)
at ClientRequest.<anonymous> (D:\Downloads\atom-x64-windows\Atom x64\resources\app\apm\node_modules\request\request.js:837:10)
at emitOne (events.js:82:20)
at ClientRequest.emit (events.js:169:7)
at tickOnSocket (_http_client.js:502:7)
at onSocketNT (_http_client.js:514:5)
npm WARN excluding symbolic link test\server\static\ie8-polyfill.js -> ../../../ie8-polyfill.js
node-pre-gyp ERR! Tried to download(404): https://github.com/suda/node-serialport/releases/download/4.0.1/serialport-v4.0.1-electron-v1.3-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.1 and electron@1.3.13 (electron-v1.3 ABI) (falling back to source compile with node-gyp)
gyp ERR! build error
gyp ERR! stack Error: `msbuild` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (D:\Downloads\atom-x64-windows\Atom x64\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 "D:\\Downloads\\atom-x64-windows\\Atom x64\\resources\\app\\apm\\bin\\node.exe" "D:\\Downloads\\atom-x64-windows\\Atom x64\\resources\\app\\apm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--fallback-to-build" "--module=C:\\Users\\Lcstyle\\AppData\\Local\\Temp\\apm-install-dir-117214-15408-lz1ote\\node_modules\\particle-dev\\node_modules\\serialport\\build\\Release\\serialport.node" "--module_name=serialport" "--module_path=C:\\Users\\Lcstyle\\AppData\\Local\\Temp\\apm-install-dir-117214-15408-lz1ote\\node_modules\\particle-dev\\node_modules\\serialport\\build\\Release"
gyp ERR! cwd C:\Users\Lcstyle\AppData\Local\Temp\apm-install-dir-117214-15408-lz1ote\node_modules\particle-dev\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 'D:\Downloads\atom-x64-windows\Atom x64\resources\app\apm\bin\node.exe D:\Downloads\atom-x64-windows\Atom x64\resources\app\apm\bin\\..\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\Lcstyle\AppData\Local\Temp\apm-install-dir-117214-15408-lz1ote\node_modules\particle-dev\node_modules\serialport\build\Release\serialport.node --module_name=serialport --module_path=C:\Users\Lcstyle\AppData\Local\Temp\apm-install-dir-117214-15408-lz1ote\node_modules\particle-dev\node_modules\serialport\build\Release' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\Lcstyle\AppData\Local\Temp\apm-install-dir-117214-15408-lz1ote\node_modules\particle-dev\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 "D:\\Downloads\\atom-x64-windows\\Atom x64\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\Lcstyle\\AppData\\Local\\Temp\\apm-install-dir-117214-15408-lz1ote\\node_modules\\particle-dev\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\Lcstyle\AppData\Local\Temp\apm-install-dir-117214-15408-lz1ote\node_modules\particle-dev\node_modules\serialport
node-pre-gyp ERR! node -v v4.4.5
node-pre-gyp ERR! node-pre-gyp -v v0.6.33
node-pre-gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Lcstyle\AppData\Local\Temp\apm-install-dir-117214-15408-lz1ote\package.json'
npm WARN apm-install-dir-117214-15408-lz1ote No description
npm WARN apm-install-dir-117214-15408-lz1ote No repository field.
npm WARN apm-install-dir-117214-15408-lz1ote No README data
npm WARN apm-install-dir-117214-15408-lz1ote No license field.
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "D:\\Downloads\\atom-x64-windows\\Atom x64\\resources\\app\\apm\\bin\\node.exe" "D:\\Downloads\\atom-x64-windows\\Atom x64\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\Lcstyle\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\Lcstyle\\.atom\\.apmrc" "install" "C:\\Users\\Lcstyle\\AppData\\Local\\Temp\\d-117214-15408-1xucdi9\\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! serialport@4.0.1 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the serialport@4.0.1 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\Lcstyle\AppData\Local\Temp\apm-install-dir-117214-15408-lz1ote\npm-debug.log
npm ERR! code 1`
```
opened 12:34AM - 19 Mar 17 UTC
closed 11:52AM - 05 Apr 17 UTC
bug
needs info
[Enter steps to reproduce:]
1. ...
2. ...
**Atom**: 1.15.0 x64
**Electro… n**: 1.3.13
**OS**: Ubuntu 16.04.2
**Thrown From**: [particle-dev](https://github.com/spark/particle-dev) package 0.1.20
### Stack Trace
Uncaught TypeError: Cannot read property 'length' of null
```
At /home/zak/.atom/packages/particle-dev/lib/main.coffee:856
TypeError: Cannot read property 'length' of null
at /packages/particle-dev/lib/main.coffee:856:13
at /packages/particle-dev/lib/main.coffee:341:7
at Object.loginRequired (/packages/particle-dev/lib/main.coffee:322:5)
at Object.deviceRequired (/packages/particle-dev/lib/main.coffee:326:6)
at Object.flashCloud (/packages/particle-dev/lib/main.coffee:829:35)
at /packages/particle-dev/lib/main.coffee:91:53)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/app.asar/src/command-registry.js:259:29)
at CommandRegistry.handleCommandEvent (/app.asar/src/command-registry.js:3:59)
at CommandRegistry.module.exports.CommandRegistry.dispatch (/app.asar/src/command-registry.js:160:19)
at AtomEnvironment.module.exports.AtomEnvironment.dispatchApplicationMenuCommand (/app.asar/src/atom-environment.js:1162:28)
at EventEmitter.outerCallback (/app.asar/src/application-delegate.js:312:25)
at emitThree (events.js:116:13)
at EventEmitter.emit (events.js:194:7)
```
### Commands
```
-4:07.0 particle-dev:append-menu (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
-3:45.3.0 particle-dev:update-menu (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
-3:45.3.0 particle-dev:append-menu (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
-3:27.1.0 particle-dev:update-menu (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
-3:27.1.0 particle-dev:append-menu (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
-2:00.7.0 particle-dev:select-device (input.hidden-input)
-1:56.7.0 particle-dev:update-core-status (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
-1:56.7.0 particle-dev:update-menu (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
-1:56.7.0 particle-dev:append-menu (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
3x -1:56.2.0 particle-dev:core-status-updated (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
-0:42.5.0 particle-dev:select-device (input.hidden-input)
-0:40 particle-dev:update-core-status (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
-0:40 particle-dev:update-menu (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
-0:40 particle-dev:append-menu (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
2x -0:39.6.0 particle-dev:core-status-updated (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
-0:11.7.0 particle-dev:flash-cloud (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
```
### Non-Core Packages
```
console-panel 0.2.1
particle-dev 0.1.20
particle-dev-cloud-functions 0.1.0
particle-dev-cloud-variables 0.1.0
particle-dev-complete 1.0.1
particle-dev-libraries 0.2.18
particle-dev-profiles 0.1.15
tool-bar 1.1.0
```
After updating to the latest Particle Dev I get an error whenever I try to compile. What’s strange is that is suggests I probably need a newer version of atom (but the release notes say this release of dev includes an update to the newest version of atom so…)
Anyone have any ideas what the problem may be here?
[image]
Thanks!
K.
Okay, let’s try this: remove everything Particle-dev, ParticleJS, Particle-whatever related. I think a bunch of things have been confused. The Particle Dev is an editor based on the Atom editor by GitHub, and is a standalone program. ParticleJS is the Javascript SDK meant to be used when you’re trying to create a node.js or browser application and want an easy API wrapper. The Dev and SDK have nothing to do with each other, and operate completely independently.
Try to get rid of any Particle De…