Particle Dev - unable to compile in cloud Uncaught TypeError

I have used Particle Deve once, hooking up a light sensor to it via I2C, and it worked great. I started an new project, and when I went to compile in the cloud I got the red error box with the following error. Uncaught TypeError: Cannot read property ‘replace’ of undefined.

The whole error code is:

[Enter steps to reproduce below:]

Atom Version: 1.0.19
System: Mac OS X 10.11.3
Thrown From: spark-dev package, v0.0.31

Stack Trace

Uncaught TypeError: Cannot read property ‘replace’ of undefined

At /Applications/Particle Dev.app/Contents/Resources/app.asar/node_modules/spark-dev/lib/views/compile-errors-view.js:57

TypeError: Cannot read property 'replace' of undefined
  at CompileErrorsView.module.exports.CompileErrorsView.fixInoFile (/Applications/Particle Dev.app/Contents/Resources/app.asar/node_modules/spark-dev/lib/views/compile-errors-view.js:57:22)
  at Object.content (/Applications/Particle Dev.app/Contents/Resources/app.asar/node_modules/spark-dev/lib/views/compile-errors-view.js:87:21)
  at Builder.tag (/Applications/Particle Dev.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/node_modules/space-pen/lib/space-pen.js:281:19)
  at Function.View.(anonymous function) (/Applications/Particle Dev.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/node_modules/space-pen/lib/space-pen.js:83:49)
  at Function.<anonymous> (/Applications/Particle Dev.app/Contents/Resources/app.asar/node_modules/spark-dev/lib/views/compile-errors-view.js:78:21)
  at Function.View.buildHtml (/Applications/Particle Dev.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/node_modules/space-pen/lib/space-pen.js:123:10)
  at Function.View.render (/Applications/Particle Dev.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/node_modules/space-pen/lib/space-pen.js:129:19)
  at exports.$$ (/Applications/Particle Dev.app/Contents/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 (/Applications/Particle Dev.app/Contents/Resources/app.asar/node_modules/spark-dev/lib/views/compile-errors-view.js:77:14)
  at CompileErrorsView.module.exports.SelectListView.populateList (/Applications/Particle Dev.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:206:29)
  at CompileErrorsView.module.exports.SelectListView.setItems (/Applications/Particle Dev.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:167:12)
  at CompileErrorsView.module.exports.CompileErrorsView.show (/Applications/Particle Dev.app/Contents/Resources/app.asar/node_modules/spark-dev/lib/views/compile-errors-view.js:67:14)
  at CompileErrorsView.show (/Applications/Particle Dev.app/Contents/Resources/app.asar/node_modules/spark-dev/lib/views/compile-errors-view.js:3:61)
  at Object.module.exports.showCompileErrors (/Applications/Particle Dev.app/Contents/Resources/app.asar/node_modules/spark-dev/lib/spark-dev.js:817:37)
  at atom-workspace.disposables.add.atom.commands.add.spark-dev:show-compile-errors (/Applications/Particle Dev.app/Contents/Resources/app.asar/node_modules/spark-dev/lib/spark-dev.js:117:26)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Particle Dev.app/Contents/Resources/app.asar/src/command-registry.js:245: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:145:19)
  at /Applications/Particle Dev.app/Contents/Resources/app.asar/node_modules/spark-dev/lib/spark-dev.js:737:29
  at Object.module.exports.projectRequired (/Applications/Particle Dev.app/Contents/Resources/app.asar/node_modules/spark-dev/lib/spark-dev.js:382:14)
  at /Applications/Particle Dev.app/Contents/Resources/app.asar/node_modules/spark-dev/lib/spark-dev.js:676:24
  at Object.module.exports.loginRequired (/Applications/Particle Dev.app/Contents/Resources/app.asar/node_modules/spark-dev/lib/spark-dev.js:364:14)
  at Object.module.exports.compileCloud (/Applications/Particle Dev.app/Contents/Resources/app.asar/node_modules/spark-dev/lib/spark-dev.js:674:19)
  at atom-workspace.disposables.add.atom.commands.add.spark-dev:compile-cloud (/Applications/Particle Dev.app/Contents/Resources/app.asar/node_modules/spark-dev/lib/spark-dev.js:132:26)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Particle Dev.app/Contents/Resources/app.asar/src/command-registry.js:245: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:145:19)
  at space-pen-button.<anonymous> (/Applications/Particle Dev.app/Contents/Resources/app.asar/node_modules/tool-bar/lib/tool-bar-button-view.js:42:36)
  at space-pen-button.jQuery.event.dispatch (/Applications/Particle Dev.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4435:9)
  at space-pen-button.elemData.handle (/Applications/Particle Dev.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4121:28)

Commands

     -0:06.2.0 spark-dev:append-menu (atom-workspace.workspace.scrollbars-visible-always)
     -0:06.0 spark-dev:update-menu (atom-workspace.workspace.scrollbars-visible-always.theme-monokai.theme-one-dark-ui)
     -0:06.0 spark-dev:append-menu (atom-workspace.workspace.scrollbars-visible-always.theme-monokai.theme-one-dark-ui)
     -0:06.0 spark-dev:update-menu (atom-workspace.workspace.scrollbars-visible-always.theme-monokai.theme-one-dark-ui)
     -0:06.0 spark-dev:append-menu (atom-workspace.workspace.scrollbars-visible-always.theme-monokai.theme-one-dark-ui)
     -0:05.9.0 spark-dev:update-menu (atom-workspace.workspace.scrollbars-visible-always.theme-monokai.theme-one-dark-ui)
     -0:05.9.0 spark-dev:append-menu (atom-workspace.workspace.scrollbars-visible-always.theme-monokai.theme-one-dark-ui)
     -0:00.8.0 spark-dev:compile-cloud (atom-text-editor.editor)
     -0:00.6.0 spark-dev:update-compile-status (atom-workspace.workspace.scrollbars-visible-always.theme-monokai.theme-one-dark-ui)
     -0:00.6.0 spark-dev:show-compile-errors (atom-workspace.workspace.scrollbars-visible-always.theme-monokai.theme-one-dark-ui)

Config

{
  "core": {
    "themes": [
      "one-dark-ui",
      "monokai"
    ]
  }
}

Installed Packages

# User
No installed packages

# Dev
No dev packages

I saw another topic where someone deleted Particle Dev and all associated file and then re-installed. I tried that but am still getting this error. I am even running the simple Test.cpp app

void setup () {

}

void loop() {

}

Any Idea what is wrong and how to fix it. I would much prefer to work locally on the project I have in mind, as I am going to be creating a lot of libraries for it and would prefer not to upload the changes to github everytime.

Okay. I tracked down a few more files associated with Particle Dev and killed those. Now it is working agin.

I got the same error today “Uncaught Type Error” and at the bottom it says Atom is out of Date, build when I try to update Atom I get a message that my version is already up to date.

HELP…please.

What I think it turned out to be is a character in your file name that Particle Dev doesn’t like. See if there is a space or some similar character and remove it.