denieler / save-workspace-atom-plugin

If you work with few projects same time this plugin give you the opportunity to change your workspace faster. Save your workspace, all your opened tabs, cursor position, etc. for each task you are working with.
MIT License
23 stars 5 forks source link

Uncaught TypeError: Cannot convert undefined or null to object #15

Closed zedisdog closed 5 years ago

zedisdog commented 7 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.14.3 x64 Electron: 1.3.13 OS: Linux Mint Thrown From: save-workspace package 0.2.9

Stack Trace

Uncaught TypeError: Cannot convert undefined or null to object

At /home/zhangzhe/.atom/packages/save-workspace/lib/select-saved-workspace-view.js:70

TypeError: Cannot convert undefined or null to object
    at formatWorkspacesListView (/packages/save-workspace/lib/select-saved-workspace-view.js:70:17)
    at SelectSavedWorkspaceView.show (/packages/save-workspace/lib/select-saved-workspace-view.js:23:17)
    at Open.execute (/packages/save-workspace/lib/commands/open.js:25:30)
    at /packages/save-workspace/lib/save-workspace.js:23:53)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/app.asar/src/command-registry.js:259:29)
    at /app.asar/src/command-registry.js:3:59
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:599:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:390:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/app.asar/src/window-event-handler.js:106:36)
    at /app.asar/src/window-event-handler.js:3:59)

Commands

  2x -0:19.3.0 tree-view:show (atom-workspace.workspace.scrollbars-visible-always.theme-ariake-dark-syntax.theme-one-dark-ui)
     -0:16.4.0 save-workspace:open (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)

Non-Core Packages

ariake-dark-syntax 0.1.3 
atom-autocomplete-php undefined 
atom-typescript 10.1.14 
autocomplete-python 1.8.57 
file-icons 2.0.15 
git-control 0.8.2 
git-log 0.4.1 
hyperclick 0.0.40 
language-docker 1.1.7 
linter 1.11.23 
minimap 4.26.8 
project-manager 3.3.3 
save-workspace 0.2.9 
termination 0.4.0 
xml-formatter 0.10.0 
denieler commented 7 years ago

@zedisdog thanks! we will take a look on this issue

denieler commented 7 years ago

@zedisdog if you can, please specify steps to reproduce

zedisdog commented 7 years ago

I'm install the git-control,I'm try to open it by shortcut key 'ctrl+alt+o'.then I get this error. if I just open it by command,it works. sorry about my bad english,and thinks for taking the time to reply to me.

siebz0r commented 7 years ago

Just installed this plugin and got the same error when I pressed crtl+alt+o (it also didn't work when executing the command manually). I didn't have any workspace saved yet and this seems to be the issue. After I saved a workspace it worked, even when I removed the workspace.

So, steps to reproduce:

  1. Install the plugin.
  2. Press ctrl+alt+o.
chmac commented 6 years ago

I saw this same error, and I think it's caused by trying to open a workspace when none exist.

denieler commented 5 years ago

Thanks, @zedisdog !

jasonferrier commented 4 years ago

This issue is still occurring. Same steps to reproduce 1) install plugin 2) have NO saved workspaces (fresh install or remove existing ones) 3) Keyboard shortcut OR navigate through Command Pallete -> Save Workspace: Open