Compile errors - Dev


#1

I am getting the following error when I attempt to compile any program. I have reinstalled the software. Instead of using my desired project folder location, I accepted the default folder location. I am new to the Particle platform. Any help will be appreciated. :confused:

[Enter steps to reproduce below:]

Atom Version: 1.8.0
System: Microsoft Windows 10 Pro
Thrown From: 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 C:\Users\gspencer\AppData\Local\particledev\app-1.8.0\resources\app.asar\node_modules\particle-dev\lib\main.js:1030:40
    at Object.module.exports.minBuildTargetRequired (C:\Users\gspencer\AppData\Local\particledev\app-1.8.0\resources\app.asar\node_modules\particle-dev\lib\main.js:498:14)
    at C:\Users\gspencer\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\gspencer\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\gspencer\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\gspencer\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\gspencer\AppData\Local\particledev\app-1.8.0\resources\app.asar\src\command-registry.js:260:29)
    at CommandRegistry.handleCommandEvent (C:\Users\gspencer\AppData\Local\particledev\app-1.8.0\resources\app.asar\src\command-registry.js:3:61)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (C:\Users\gspencer\AppData\Local\particledev\app-1.8.0\resources\app.asar\src\command-registry.js:160:19)
    at executeCallback (C:\Users\gspencer\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\gspencer\AppData\Local\particledev\app-1.8.0\resources\app.asar\node_modules\tool-bar\lib\tool-bar-button-view.js:82:9)

Commands

     -1:17.6.0 particle-dev:append-menu (atom-workspace.workspace.scrollbars-visible-always)
     -1:17.6.0 particle-dev:update-menu (atom-workspace.workspace.scrollbars-visible-always)
     -1:17.6.0 particle-dev:append-menu (atom-workspace.workspace.scrollbars-visible-always)
     -1:16.2.0 particle-dev:update-menu (atom-workspace.workspace.scrollbars-visible-always.theme-atom-light-syntax.theme-atom-light-ui)
     -1:16.2.0 particle-dev:append-menu (atom-workspace.workspace.scrollbars-visible-always.theme-atom-light-syntax.theme-atom-light-ui)
     -1:16.2.0 particle-dev:update-menu (atom-workspace.workspace.scrollbars-visible-always.theme-atom-light-syntax.theme-atom-light-ui)
     -1:16.2.0 particle-dev:append-menu (atom-workspace.workspace.scrollbars-visible-always.theme-atom-light-syntax.theme-atom-light-ui)
     -1:11.1.0 pane:reopen-closed-item (atom-pane.pane.active)
     -0:24 editor:newline (atom-text-editor.editor.is-focused)
     -0:21.7.0 core:paste (atom-text-editor.editor.is-focused)
     -0:14.3.0 core:save (atom-text-editor.editor.is-focused)
     -0:03.3.0 particle-dev:compile-cloud (atom-text-editor.editor)
     -0:03.2.0 window:save-all (atom-workspace.workspace.scrollbars-visible-always.theme-atom-light-syntax.theme-atom-light-ui)
     -0:03.2.0 particle-dev:update-compile-status (atom-workspace.workspace.scrollbars-visible-always.theme-atom-light-syntax.theme-atom-light-ui)

Config

{
  "core": {
    "themes": [
      "atom-light-ui",
      "atom-light-syntax"
    ]
  }
}

Installed Packages

# User
No installed packages

# Dev
No dev packages

#2

Hello!

Let me ping someone who works with both build and dev. @stefanmoraru are you able to help with this?

Kyle


#3

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:






#4

I think the key problem might be this:


#5

I have finally fixed my problem. I uninstalled Particle Dev. I then scoured my hard drive and found several Particle-related folders which had not been deleted by the uninstall process. I deleted all of these folders and reinstalled Particle Dev. It now works perfectly. :grinning:


#6

@suda Is the man to ask when it comes to Dev :smiley: He knows it inside-out


#7

@stefanmoraru

Thanks for the advice. I will certainly keep that username in mind. :vulcan:


#8

HERE’S A FIX:

I was getting that error on my sketch with filename: “Yard Sprinkler V1.ino”. I replaced the spaces with underscores and it started compiling just fine! “Yard_Sprinkler_V1.ino”

I’ve had similar weird errors in the past that related to filenames…so I always try that first…

Best-
Jeremy