-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation fails on Windows 11: Cannot open database because the directory does not exist #30
Comments
@YanoOfQueenscastle thanks for reporting, sorry it took me a while to respond. You should have a Could you please paste the contents of said file? For me, it looks like: {
"version": 1,
"settings": {
"dataPath": "/Users/davidsaltares/Library/CloudStorage/[...]/My Drive/finlight"
}
} And can you show me the contents of the |
Hi David. Contents of
The folder |
Thanks @YanoOfQueenscastle, I got my hands on a Windows laptop yesterday and managed to reproduce. Looks like export async function fileExistsSync(filePath: string) {
try {
fs.statSync(filePath);
return true;
} catch (_e) {
return false;
}
}
export function ensureFolderExistsSync(dirPath: string) {
if (!fileExistsSync(dirPath)) {
fs.mkdirSync(dirPath, { recursive: true });
}
} Looks similar to nodejs/node#9106, which is very weird. I will create the folder regardless of existence, which does not delete anything when the folder exists, because I'm creating it recursively. |
@YanoOfQueenscastle I will soon release a new version with this fix. |
@dsaltares Thanks, this one works nicely. |
I am using Windows 11 and when I try to run Finlight-2.0.3.Setup.exe, it fails with following exception:
I allowed the installer to run when it asked first (but it doesn't ask anymore).
As far as I can tell the
C:\Users\Yano\AppData\Local\finlight\app-2.0.3\resources
directory exists and contains anapp.asar
file, but I am not sure about its contents.Am I missing some dependencies or stuff?
The text was updated successfully, but these errors were encountered: