atom-terminal-tab icon indicating copy to clipboard operation
atom-terminal-tab copied to clipboard

Uncaught TypeError: activeSession.copySelection is not a function

Open chriswales95 opened this issue 5 years ago • 3 comments

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.34.0 x64 Electron: 2.0.16 OS: Mac OS X 10.14.4 Thrown From: terminal-tab package 0.5.7

Stack Trace

Uncaught TypeError: activeSession.copySelection is not a function

At /Users/christopherwales/.atom/packages/terminal-tab/lib/main.js:43

TypeError: activeSession.copySelection is not a function
    at Object.handleCopy (/packages/terminal-tab/lib/main.js:43:19)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:350017)
    at KeymapManager.t.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1212945)
    at KeymapManager.t.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1209079)
    at WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:285196)

Commands

     -4:55.4.0 terminal:open (atom-pane.pane)
     -4:48.8.0 terminal:paste (textarea.xterm-helper-textarea)
     -2:56.9.0 tree-view:add-folder (ol.tree-view-root.full-menu.list-tree.has-collapsable-children.focusable-panel)
  2x -2:55.3.0 core:backspace (input.hidden-input)
     -2:54.4.0 core:confirm (input.hidden-input)
     -2:45.1.0 tree-view:add-file (span.name.icon.icon-file-directory)
     -2:43.6.0 core:confirm (input.hidden-input)
     -2:42 core:paste (input.hidden-input)
     -2:40.7.0 core:save (input.hidden-input)
     -1:36.9.0 editor:newline (input.hidden-input)
     -1:26.1.0 core:select-all (input.hidden-input)
     -1:25.7.0 core:paste (input.hidden-input)
     -0:21.3.0 core:select-all (input.hidden-input)
     -0:20.9.0 core:paste (input.hidden-input)
     -0:20.3.0 core:save (input.hidden-input)
     -0:12.8.0 terminal:copy (textarea.xterm-helper-textarea)

Non-Core Packages

atom-ternjs 0.18.5 
autocomplete-javascript 0.0.2 
busy-signal 2.0.0 
copy-as-rtf 0.9.3 
framer-ui 2.0.0 
intentions 1.1.5 
linter 2.3.0 
linter-ui-default 1.7.1 
markdown-pdf 2.2.0 
terminal-tab 0.5.7 

chriswales95 avatar Mar 08 '19 18:03 chriswales95

Also having this issue... Installed packages:

atom-ternjs (same as OP)
remote-ftp
terminal-tab
hyperclick

f1ps1 avatar Jun 30 '19 15:06 f1ps1

Try to remove atom-ternjs, as a quick fix. It worked for me

npokora avatar Sep 10 '19 08:09 npokora

I posted a more in depth response to the same issue with iv-terminal, which may actually still be maintained.

Here is my proposed atom-ternjs patch.

JakeIwen avatar Jul 03 '20 07:07 JakeIwen