Berserk-Games / atom-tabletopsimulator-lua

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

Uncaught Error: ENOENT: no such file or directory, stat '~/.local/share/Tabletop Simulator/Mods/W... #147

Open xavier-at-github opened 3 years ago

xavier-at-github commented 3 years ago

[Enter steps to reproduce:]

  1. Bring up TTS from a fresh start
  2. Bring up Atom from a fresh start
  3. There will be a sync error and there is no way to send an update from the atom desktop to TTS

This happens everytime. when I look in the directory below, the error is correct there is no file there. Eventually it if you let the system sit for a while it will start working. I usually update the workspace and close all the files in the atom editor and let the system sit. I think it might be when the workspace on TTS auto saves that the synchronization starts to work. Though that is more of a guess than me tracking down the issue.

Atom: 1.56.0 x64 Electron: 9.4.4 OS: Linux Mint Thrown From: tabletopsimulator-lua package 13.1.1

Stack Trace

Uncaught Error: ENOENT: no such file or directory, stat '/home/xavier/.local/share/Tabletop Simulator/Mods/Workshop/2581553398.json'

At internal/fs/utils.js:220

Error: ENOENT: no such file or directory, stat '/home/xavier/.local/share/Tabletop Simulator/Mods/Workshop/2581553398.json'
    at statSync (fs.js:915:3)
    at Object.fs.statSync (electron/js2c/asar.js:278:27)
    at Object.objectsAddedToGame (/packages/tabletopsimulator-lua/lib/tabletopsimulator-lua.coffee:2043:28)
    at Object.saveAndPlay (/packages/tabletopsimulator-lua/lib/tabletopsimulator-lua.coffee:1257:9)
    at /packages/tabletopsimulator-lua/lib/tabletopsimulator-lua.coffee:902:101)
    at CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/static/<embedded>:11:351740)
    at KeymapManager.dispatchCommandEvent (/usr/share/atom/resources/app/static/<embedded>:11:1223511)
    at KeymapManager.handleKeyboardEvent (/usr/share/atom/resources/app/static/<embedded>:11:1219645)
    at WindowEventHandler.handleDocumentKeyEvent (/usr/share/atom/resources/app/static/<embedded>:11:286076)

Commands

     -2:13.7.0 core:save (input.hidden-input)
     -1:57.7.0 tabletopsimulator-lua:getObjects (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
     -1:45.4.0 core:select-to-bottom (input.hidden-input)
  3x -1:44.3.0 core:backspace (input.hidden-input)
     -1:15.5.0 core:select-to-bottom (input.hidden-input)
  2x -1:14.4.0 core:backspace (input.hidden-input)
     -1:03.1.0 tabletopsimulator-lua:saveAndPlay (input.hidden-input)
     -0:55.1.0 core:save (input.hidden-input)
     -0:16.3.0 core:select-to-bottom (input.hidden-input)
     -0:15.8.0 core:backspace (input.hidden-input)
     -0:13.9.0 tabletopsimulator-lua:saveAndPlay (input.hidden-input)

Non-Core Packages

Dev undefined 
tabletopsimulator-lua 13.1.1