"Error: ENOENT: No such file or directory" encountered during program startup
TheNathannator opened this issue · comments
Description:
After installing, this error message shows up when starting the program:
Uncaught Exception:
Error: ENOENT: no such file or directory, open
'C:\Users\[user]\AppData\Roaming\mididrumhero\storage\config.json'
at Object.openSync (fs.js:440:3)
at Object.func (electron/js2c/asar.js:140:31)
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.fs.readFileSync (electron/js2c/asar.js:542:40)
at getMidiConfig
(C:\Users\[user]\AppData\Local\Programs\mididrumhero\resources\app.asar\index.js:114:20)
at Object.<anonymous>
(C:\Users\[user]\AppData\Local\Programs\mididrumhero\resources\app.asar\index.js:12:18)
at Module._compile (internal/modules/cjs/loader.js:968:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:986:10)
(Copied verbatim from the error message)
The Appdata\Roaming\mididrumhero
folder contains only the Dictionaries
folder.
The Appdata\Local\Programs\mididrumhero
folder appears to be fine.
same error here any clues to what it might be
My best guess is either the installer isn't installing everything correctly (specifically, it's not extracting some things that it needs), or certain files that should be created on first run aren't being made.
Just published a new release with an extra check for creating the config.json file. The original check didn't use async for some reason. This is kind of a band-aid fix, would be greatly appreciated if you guys could test to see if it now works. Also thanks for the awesome detail in your issue!
Thanks for helping us out!
The program starts correctly now. Thanks for fixing it!