Skip to content
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

On first launch in empty folder, WARNING: Failed to save config file : data/preferences.json is printed on the console #1

Open
E0735389 opened this issue Apr 5, 2024 · 0 comments

Comments

@E0735389
Copy link
Owner

E0735389 commented Apr 5, 2024

Following the quick start instruction written in the user guide, the following error is printed on the console:

WARNING: Failed to save config file : data/preferences.json
java.nio.file.NoSuchFileException: data/preferences.json
        at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
        at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:21
9)
        at java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:47
8)
        at java.base/java.nio.file.Files.newOutputStream(Files.java:220)
        at java.base/java.nio.file.Files.write(Files.java:3425)
        at seedu.address.commons.util.FileUtil.writeToFile(FileUtil.java:80)
        at seedu.address.commons.util.JsonUtil.serializeObjectToJsonFile(JsonUtil.java:47)
        at seedu.address.commons.util.JsonUtil.saveJsonFile(JsonUtil.java:95)
        at seedu.address.storage.JsonUserPrefsStorage.saveUserPrefs(JsonUserPrefsStorage.java:44)
        at seedu.address.MainApp.initPrefs(MainApp.java:188)
        at seedu.address.MainApp.init(MainApp.java:64)
        at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:825)
        at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:196)
        at java.base/java.lang.Thread.run(Thread.java:829)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant