Berserk-Games / atom-tabletopsimulator-lua

Tabletop Simulator scripting package for Atom.
Other
36 stars 26 forks source link

Uncaught TypeError: view[methodName] is not a function #133

Open alliedcvil opened 3 years ago

alliedcvil commented 3 years ago

Steps to reproduce.

  1. Copied code script code into the snippets section of the TTS Tab.
  2. Clicked on the up arrow.
  3. Clicked the trash can.

Atom: 1.52.0 x64 Electron: 6.1.12 OS: Microsoft Windows 10 Pro Thrown From: tabletopsimulator-lua package 12.4.3

Stack Trace

Uncaught TypeError: view[methodName] is not a function

At C:\Users\xxxxxxxx\.atom\packages\tabletopsimulator-lua\node_modules\space-pen\lib\space-pen.js:220

TypeError: view[methodName] is not a function
    at /packages/tabletopsimulator-lua/node_modules/space-pen/lib/space-pen.js:220:36)
    at HTMLButtonElement.dispatch (/packages/tabletopsimulator-lua/node_modules/jquery/dist/jquery.js:4435:9)
    at HTMLButtonElement.elemData.handle (/packages/tabletopsimulator-lua/node_modules/jquery/dist/jquery.js:4121:28)

Commands

     -5:24 editor:select-line (atom-pane.pane)
     -5:23.4.0 window:focus-pane-on-right (atom-pane.pane)
     -5:08.4.0 tabletopsimulator-lua:getObjects (atom-pane.pane)
     -4:53 tabletopsimulator-lua:openHelp (input.hidden-input)
     -2:29.4.0 tabletopsimulator-lua:closeTTSTabs (div.vertical-scrollbar)
  2x -1:57.9.0 tree-view:toggle (div.tool-panel.tree-view)
  2x -1:51 window:toggle-menu-bar (div.tool-panel.tree-view)
     -1:40 pane:close (div.tool-panel.tree-view)
     -1:31 pane:split-right-and-copy-active-item (div.tool-panel.tree-view)
     -1:28.2.0 core:undo (atom-pane.pane.active)
     -1:21.9.0 pane:close (atom-pane.pane.active)
     -1:12 tabletopsimulator-lua:getObjects (input.hidden-input)
     -0:59.4.0 tabletopsimulator-lua:gotoFunction (span.syntax--support.syntax--function.syntax--tts.syntax--global-functions.syntax--lua)
     -0:56 command-palette:toggle (input.hidden-input)
     -0:46.2.0 tabletopsimulator-lua:toggleTTSPanel (input.hidden-input)
     -0:29 core:paste (input.hidden-input)

Non-Core Packages

tabletopsimulator-lua 12.4.3