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, open '~/.local/share/Tabletop Simulator/Mods/W... #143

Open xavier-at-github opened 3 years ago

xavier-at-github commented 3 years ago

[Enter steps to reproduce: This is with Linux Mint installed with Steam. I looked in the path and see that the file is located down one more directory "T9A X Mod" So the actual path should be /home/xavier/.local/share/Tabletop Simulator/Mods/Workshop/T9A X Mod/2212460821.json'

I have not made any changes to TTS or the path these are all default settings. I have been getting this error since I created the Mod but only now was able to trace it using Atom.

In my workspace in TTS I have a directory called "T9A X Mod" where the mod lives. I suspect that is how the issue arose. I belie I made the Mod first then used the TTS UI to move the mode to a sub directory

  1. ...
  2. ...

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, open '/home/xavier/.local/share/Tabletop Simulator/Mods/Workshop/2212460821.json'

At internal/fs/utils.js:220

Error: ENOENT: no such file or directory, open '/home/xavier/.local/share/Tabletop Simulator/Mods/Workshop/2212460821.json'
    at Object.openSync (fs.js:440:3)
    at Object.func [as openSync] (electron/js2c/asar.js:140:31)
    at Object.readFileSync (fs.js:342:35)
    at Object.fs.readFileSync (electron/js2c/asar.js:542:40)
    at Object.parseSavePath (/packages/tabletopsimulator-lua/lib/tabletopsimulator-lua.coffee:1867:26)
    at handleMessage (/packages/tabletopsimulator-lua/lib/tabletopsimulator-lua.coffee:1887:12)
    at /packages/tabletopsimulator-lua/lib/tabletopsimulator-lua.coffee:2114:9)
    at Socket.emit (events.js:223:5)
    at addChunk (_stream_readable.js:309:12)
    at readableAddChunk (_stream_readable.js:290:11)
    at Socket.Readable.push (_stream_readable.js:224:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:181:23)

Commands

Non-Core Packages

Dev undefined 
tabletopsimulator-lua 13.1.1