particle-iot-archived / particle-dev-profiles

Package providing support for Particle CLI profiles and basic Particle Cloud authentication
http://particle-iot.github.io/particle-dev-profiles/
MIT License
1 stars 0 forks source link

Uncaught TypeError: Cannot read property 'name' of undefined #12

Open timmeeuwissen opened 5 years ago

timmeeuwissen commented 5 years ago
  1. open atom editor
  2. click the select device icon
  3. two devices are selected, select one
  4. the error message appears in the background, the dialog isn't closed.

Atom: 1.34.0 x64 Electron: 2.0.16 OS: Mac OS X 10.13.6 Thrown From: particle-dev-profiles package 0.2.3

Stack Trace

Uncaught TypeError: Cannot read property 'name' of undefined

At /Users/meeuw/.atom/packages/particle-dev-profiles/src/profiles-tile.js:38

TypeError: Cannot read property 'name' of undefined
    at /packages/particle-dev-profiles/src/profiles-tile.js:38:96
    at Function.module.exports.Emitter.simpleDispatch (/app.asar/node_modules/scrollbar-style/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/app.asar/node_modules/scrollbar-style/node_modules/event-kit/lib/emitter.js:125:28)
    at ProfileManager.setLocal (/packages/particle-dev-profiles/src/profile-manager.js:123:16)
    at ProfileManager.set (/packages/particle-dev-profiles/src/profile-manager.js:252:8)
    at SelectCoreView.confirmed (/packages/particle-dev/lib/views/select-core-view.js:52:50)
    at SelectCoreView.module.exports.SelectListView.confirmSelection (/packages/particle-dev-profiles/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21)
    at /packages/particle-dev-profiles/node_modules/atom-space-pen-views/lib/select-list-view.js:139:19)
    at HTMLOListElement.dispatch (/packages/particle-dev-profiles/node_modules/jquery/dist/jquery.js:4435:9)
    at HTMLOListElement.elemData.handle (/packages/particle-dev-profiles/node_modules/jquery/dist/jquery.js:4121:28)

Commands

     -0:48.6.0 particle-dev:update-menu (atom-workspace.workspace.scrollbars-visible-when-scrolling)
     -0:48.6.0 particle-dev:append-menu (atom-workspace.workspace.scrollbars-visible-when-scrolling)
     -0:47.2.0 particle-dev:update-menu (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-dark-syntax.theme-one-dark-ui)
     -0:47.2.0 particle-dev:append-menu (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-dark-syntax.theme-one-dark-ui)
     -0:47 particle-dev:update-menu (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-dark-syntax.theme-one-dark-ui)
     -0:47 particle-dev:append-menu (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-dark-syntax.theme-one-dark-ui)
     -0:33.8.0 particle-dev:select-device (input.hidden-input)

Non-Core Packages

console-panel 0.3.1 
particle-dev 0.2.2 
particle-dev-cloud-functions 0.2.0 
particle-dev-cloud-variables 0.2.0 
particle-dev-complete 1.0.2 
particle-dev-libraries 0.2.30 
particle-dev-profiles 0.2.3 
tool-bar 1.1.11