Berserk-Games / atom-tabletopsimulator-lua

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

Uncaught TypeError: remote.dialog.showMessageBox(...).then is not a function #139

Open xavier-at-github opened 3 years ago

xavier-at-github commented 3 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.48.0 x64 Electron: 5.0.13 OS: Linux Mint Thrown From: tabletopsimulator-lua package 12.4.3

Stack Trace

Uncaught TypeError: remote.dialog.showMessageBox(...).then is not a function

At /home/xavier/.atom/packages/tabletopsimulator-lua/lib/tabletopsimulator-lua.coffee:1223

TypeError: remote.dialog.showMessageBox(...).then is not a function
    at Object.getObjects (/packages/tabletopsimulator-lua/lib/tabletopsimulator-lua.coffee:1223:8)
    at /packages/tabletopsimulator-lua/lib/tabletopsimulator-lua.coffee:901:100)
    at CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/static/<embedded>:11:349786)
    at CommandRegistry.dispatch (/usr/share/atom/resources/app/static/<embedded>:11:348261)
    at AtomEnvironment.dispatchContextMenuCommand (/usr/share/atom/resources/app/static/<embedded>:1:726038)
    at EventEmitter.t (/usr/share/atom/resources/app/static/<embedded>:1:734044)
    at EventEmitter.emit (events.js:194:13)

Commands

     -0:41.8.0 tabletopsimulator-lua:openSaveFile (span.syntax--support.syntax--function.syntax--any-method.syntax--lua)
     -0:24 symbols-view:go-to-declaration (span.syntax--support.syntax--function.syntax--any-method.syntax--lua)
     -0:17 tabletopsimulator-lua:getObjects (span.syntax--support.syntax--function.syntax--any-method.syntax--lua)

Non-Core Packages

Dev undefined 
tabletopsimulator-lua 12.4.3 
Benjamin-Dobell commented 3 years ago

If you update, both Atom and the TTS plugin, then this should go away.

eggdropsoap commented 1 year ago

This is happening again now that the latest TTS version is ahead of the latest plugin release.