chunkypixel / atari-dev-studio

Homebrew game creation for the Atari 8-bit consoles (VS Code Extension)
http://atariage.com/forums/topic/290365-atari-dev-studio-for-homebrew-development-release/
GNU General Public License v3.0
76 stars 8 forks source link

Race condition in "autosave before run" #9

Closed mengstr closed 5 years ago

mengstr commented 5 years ago

If I hit the compile or run buttons without saving the source first it seems like in about 20-25% of the cases the compile fails (usually giving a lot of "label mismatch" errors). Pressing the compile again always gives a clean compile.

I guess the saving is done asynchronously and dasm starts reading and processing the source before the save is fully finished.

chunkypixel commented 5 years ago

Thanks will check that out - thought I'd got all the async issues.

chunkypixel commented 5 years ago

Completed in v0.1.7 The build-in VS Code save routines are async'd which I didn't realise.