-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
bug: error thrown when changing themes without a 'settings.json' #8302
Comments
I'm wondering if its not a real-world use case that the |
I would expect that it writes a new file. It looks like a regression. I will have a look into it. So I delete my home folder and try to change theme? |
Yes exactly 👍 |
It only reproducible if I delete the entire user home directory (not only settings file). The issue is that nsfw watcher collapses and does not report that the file on the disk is deleted. I believe it should have been the same with the old fs API. Deleing user home when app is running is error prone for sure there are many data besides settings file. |
Just to add, I verified in |
Oh, new fs api stops creating parent directories at the root and for user-storage scheme everything belong to the root, so we have to add some parent directory like |
Otherwise `FileService` fails to create the user directory. Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Otherwise `FileService` fails to create the user directory. Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Otherwise `FileService` fails to create the user directory. Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Bug Description:
There is an error thrown when changing themes without a
settings.json
present (no home.theia
):For such a case, should the preference service create the
settings.json
if we programatically attempt to set a preference?Steps to Reproduce:
.theia
folder does not exist (ex:rm -rf ~/.theia
)The text was updated successfully, but these errors were encountered: