Uncaught TypeError: tab.getURI is not a function
[Enter steps to reproduce:]
- ...
- ...
Atom: 1.16.0 x64 Electron: 1.3.13 OS: Ubuntu 16.04.2 Thrown From: save-workspace package 0.4.0
Stack Trace
Uncaught TypeError: tab.getURI is not a function
At /home/sayyaff/.atom/packages/save-workspace/lib/models/paneMap.js:32
TypeError: tab.getURI is not a function
at formatPaneData (/packages/save-workspace/lib/models/paneMap.js:32:19)
at buildPane (/packages/save-workspace/lib/models/paneMap.js:24:13)
at Array.map (native)
at buildPaneMap (/packages/save-workspace/lib/models/paneMap.js:10:35)
at Workspace.save (/packages/save-workspace/lib/models/workspace.js:31:29)
at /packages/save-workspace/lib/commands/save.js:18:22)
at InputWorkspaceNameView.cancelled (/packages/save-workspace/lib/input-workspace-name-view.js:52:10)
at InputWorkspaceNameView.module.exports.SelectListView.cancel (/packages/save-workspace/node_modules/atom-space-pen-views/lib/select-list-view.js:263:14)
at InputWorkspaceNameView.module.exports.SelectListView.confirmSelection (/packages/save-workspace/node_modules/atom-space-pen-views/lib/select-list-view.js:340:21)
at /packages/save-workspace/node_modules/atom-space-pen-views/lib/select-list-view.js:109:19)
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
-2:03.9.0 save-workspace:open (atom-pane.pane.active)
-2:02.7.0 core:cancel (atom-pane.pane.active)
-2:00.5.0 save-workspace:save (atom-pane.pane.active)
6x -1:56.6.0 core:backspace (input.hidden-input)
2x -1:48.5.0 core:confirm (input.hidden-input)
-1:43.1.0 core:cancel (atom-pane.pane.active)
-1:39.4.0 editor:consolidate-selections (input.hidden-input)
-1:39.4.0 core:cancel (input.hidden-input)
-1:38.2.0 core:select-all (input.hidden-input)
-1:38 core:backspace (input.hidden-input)
3x -1:35.7.0 core:cancel (atom-pane.pane.active)
-1:31.3.0 core:confirm (input.hidden-input)
-1:29.9.0 core:select-all (input.hidden-input)
-1:29.7.0 core:backspace (input.hidden-input)
-1:29.4.0 editor:consolidate-selections (input.hidden-input)
-1:29.4.0 core:cancel (input.hidden-input)
Non-Core Packages
angularjs 0.4.0
atom-alignment 0.12.1
autocomplete-ionic-framework 0.2.2
emmet 2.4.3
ionic-framework-snippets 1.2.1
ionic-preview 0.7.0
javascript-snippets 1.2.1
jshint 1.8.6
platformio-ide-terminal 2.5.0
save-workspace 0.4.0
@sayyaff hey! thanks for reporting the bug! But can I ask you to explain a little bit in details what were your actions before this happened? thanks!
Yeah sure I installed a package called Ionic-Preview which would give preview of the current app in atom it self. With that on I cannot save workspace
Link to the package https://atom.io/packages/ionic-preview
This also occurs when using the package "atom-latex", and trying to add its pdf preview tab to a workspace.
Steps to reproduce:
- Preview pdf using package atom-latex
- Try to save workspace
Atom: 1.40.0 x64 Electron: 3.1.10 OS: Ubuntu 18.04.3 Thrown From: save-workspace package 0.5.0
Stack Trace
Uncaught TypeError: tab.getURI is not a function
At /home/ubuntu/.atom/packages/save-workspace/lib/models/paneMap.js:32
TypeError: tab.getURI is not a function
at formatPaneData (/packages/save-workspace/lib/models/paneMap.js:32:19)
at buildPane (/packages/save-workspace/lib/models/paneMap.js:24:11)
at /packages/save-workspace/lib/models/paneMap.js:10:45
at Array.map (<anonymous>)
at buildPaneMap (/packages/save-workspace/lib/models/paneMap.js:10:33)
at Workspace.save (/packages/save-workspace/lib/models/workspace.js:31:29)
at /packages/save-workspace/lib/commands/save.js:18:22)
at InputWorkspaceNameView.confirmed (/packages/save-workspace/lib/views/input-workspace-name-view.js:46:10)
at InputWorkspaceNameView.module.exports.SelectListView.confirmSelection (/packages/atom-beautify/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21)
at /packages/atom-beautify/node_modules/atom-space-pen-views/lib/select-list-view.js:139:19)
at HTMLOListElement.dispatch (/packages/atom-beautify/node_modules/jquery/dist/jquery.js:4435:9)
at HTMLOListElement.elemData.handle (/packages/atom-beautify/node_modules/jquery/dist/jquery.js:4121:28)
Commands
-8:16 save-workspace:save (atom-pane.pane.active)
-8:14.3.0 core:confirm (input.hidden-input)
3x -2:02.8.0 core:save (div.panels-item)
-0:04.8.0 save-workspace:save (webview.)
Non-Core Packages
atom-beautify 0.33.4
atom-doxit 0.2.0
atom-latex 0.8.11
highlight-line 0.12.0
highlight-selected 0.16.0
linter-cppcheck 0.2.3
pdf-view 0.72.0
save-workspace 0.5.0
sort-lines 0.19.0