elegantchaos / atom-ide-swift

Swift support for Atom IDE.
18 stars 3 forks source link

Uncaught TypeError: Cannot read property 'all' of undefined #24

Closed ASchuehle closed 1 year ago

ASchuehle commented 3 years ago

The error occurs, when I try to set the Target.

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.56.0 x64 Electron: 9.4.4 OS: Ubuntu 20.04.2 Thrown From: ide-swift package 0.1.8

Stack Trace

Uncaught TypeError: Cannot read property 'all' of undefined

At /home/astrid/.atom/packages/ide-swift/lib/targets-view.js:22

TypeError: Cannot read property 'all' of undefined
    at /packages/ide-swift/lib/targets-view.js:22:43)
    at IdeSwiftController.chooseTarget (/packages/ide-swift/lib/ide-swift-controller.js:267:22)
    at HTMLElement.ideSwiftTarget (/packages/ide-swift/lib/ide-swift-controller.js:156:44)
    at CommandRegistry.handleCommandEvent (/snap/atom/279/usr/share/atom/resources/app/static/<embedded>:11:351740)
    at CommandRegistry.dispatch (/snap/atom/279/usr/share/atom/resources/app/static/<embedded>:11:350215)
    at o.executeCallback (/packages/tool-bar/dist/tool-bar.js:1:3452)
    at o._onClick (/packages/tool-bar/dist/tool-bar.js:1:2830)

Commands

     -4:52.2.0 ide-swift:target (input.hidden-input)
     -2:46 swift-debugger:toggle (input.hidden-input)
  2x -2:41.1.0 ide-swift:target (input.hidden-input)

Non-Core Packages

atom-ide-ui 0.13.0 
ide-swift 0.1.8 
language-swift-89 0.4.0 
swift-debugger 0.1.2 
tool-bar 1.4.2 

I uninstalled und installed all packages again, the error stays the same.