Berserk-Games / atom-tabletopsimulator-lua

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

Uncaught Error: EISDIR: illegal operation on a directory, read #137

Open jaafit opened 3 years ago

jaafit commented 3 years ago

[Enter steps to reproduce:]

Hard to say exactly but my best recollection:

  1. I created a directory for my savegame.
  2. I saved and loaded a few times. Can't recall the exact sequence.
  3. I overwrote a new save in the new directory.
  4. Then I alt-tabbed to Atom which was previously open (even before TTS was open).

Atom: 1.53.0 x64 Electron: 6.1.12 OS: Ubuntu 16.04.7 Thrown From: tabletopsimulator-lua package 12.4.3

Stack Trace

Uncaught Error: EISDIR: illegal operation on a directory, read

At fs.js:126

Error: EISDIR: illegal operation on a directory, read
    at Object.readSync (fs.js:513:3)
    at tryReadSync (fs.js:338:20)
    at Object.readFileSync (fs.js:375:19)
    at Object.fs.readFileSync (electron/js2c/asar.js:580:40)
    at Object.fs.readFileSync (electron/js2c/asar.js:580: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:200:13)
    at addChunk (_stream_readable.js:294:12)
    at readableAddChunk (_stream_readable.js:275:11)
    at Socket.Readable.push (_stream_readable.js:210:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:166:17)

Commands

Non-Core Packages

tabletopsimulator-lua 12.4.3