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 #11

Open nickausten opened 5 years ago

nickausten commented 5 years ago

[Enter steps to reproduce:]

  1. Select a Particle device from a list. (I selected a Xenon device).

Atom: 1.33.0 x64 Electron: 2.0.11 OS: Ubuntu 18.10 Thrown From: particle-dev-profiles package 0.2.3

Stack Trace

Uncaught TypeError: Cannot read property 'name' of undefined

At /home/nicka/.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/console-panel/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21)
    at /packages/console-panel/node_modules/atom-space-pen-views/lib/select-list-view.js:139:19)
    at HTMLOListElement.dispatch (/packages/console-panel/node_modules/jquery/dist/jquery.js:4435:9)
    at HTMLOListElement.elemData.handle (/packages/console-panel/node_modules/jquery/dist/jquery.js:4121:28)

Commands

     -2:26.8.0 particle-dev:update-menu (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
  2x -2:26.8.0 particle-dev:append-menu (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
     -2:26.7.0 particle-dev:update-login-status (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
     -2:26.7.0 particle-dev:append-menu (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
     -2:26.7.0 particle-dev:update-login-status (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
     -2:13.5.0 particle-dev:update-menu (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
     -2:13.5.0 particle-dev:append-menu (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
  2x -2:13.5.0 particle-dev:select-device (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
     -0:34.8.0 particle-dev-cloud-variables-view:show-cloud-variables (input.hidden-input)
     -0:30.3.0 particle-dev-cloud-functions-view:show-cloud-functions (atom-pane.pane.active)
     -0:25.3.0 particle-dev:show-serial-monitor (atom-pane.pane.active)
     -0:22.9.0 particle-dev:append-menu (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
     -0:22.9.0 particle-dev:update-login-status (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
     -0:22.9.0 particle-dev:append-menu (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
     -0:22.9.0 particle-dev:update-login-status (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
     -0:13.3.0 particle-dev:select-device (atom-pane.pane.active)

Non-Core Packages

console-panel 0.3.1 
git-plus 8.1.0 
git-time-machine 2.1.0 
overlay-status-icons 0.1.6 
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-local-compiler 0.1.3 
particle-dev-profiles 0.2.3 
tool-bar 1.1.11 
rdamus commented 5 years ago

i'm having the exact same issue, same environment. this seems like it would be related to the name of the device, perhaps as it's cached from the particle.io website? any further info on this?

rafaelmaeuer commented 5 years ago

I have the same issue when selecting a Boron. Is this maybe related to the new particle mesh devices? Maybe an update of this package is needed?

rafaelmaeuer commented 5 years ago

Okay maybe switch to particle workbench plugin for vscode