Failed to load settings on startup #3043

Closed
opened 2026-01-30 23:11:34 +00:00 by claunia · 8 comments
Owner

Originally created by @JeffMill on GitHub (Jul 31, 2019).

Environment

Microsoft Windows [Version 10.0.18362.267]

Steps to reproduce

Start terminal

Expected behavior

No error

Actual behavior

Failed to load settings
Settings could not be loaded from file - temporarily using the default settings.
Check for syntax errors, including trailing commas.

it's because I was missing "...\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\RoamingState\profiles.json"
Maybe rather than using defaults, a default file should be written to that location if missing, a message indicating that a default file has been created should be shown once?

Originally created by @JeffMill on GitHub (Jul 31, 2019). # Environment Microsoft Windows [Version 10.0.18362.267] # Steps to reproduce Start terminal # Expected behavior No error # Actual behavior Failed to load settings Settings could not be loaded from file - temporarily using the default settings. Check for syntax errors, including trailing commas. it's because I was missing "...\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\RoamingState\profiles.json" Maybe rather than using defaults, a default file should be written to that location if missing, a message indicating that a default file has been created should be shown once?
claunia added the Needs-TriageNeeds-Tag-FixNeeds-Repro labels 2026-01-30 23:11:34 +00:00
Author
Owner

@DHowett-MSFT commented on GitHub (Jul 31, 2019):

That's unusual, because this is the empty "first launch" state as well, and that definitely works. We load default settings and save them out to disk whenever we don't have a profile, and that's expected so it doesn't present a dialog. @zadjii-msft thoughts here?

@DHowett-MSFT commented on GitHub (Jul 31, 2019): That's unusual, because this is the empty "first launch" state as well, and that definitely works. We load default settings and save them out to disk whenever we don't have a profile, and that's expected so it doesn't present a dialog. @zadjii-msft thoughts here?
Author
Owner

@JeffMill commented on GitHub (Jul 31, 2019):

I figured it out. I somehow had an empty file there which was parsing as invalid json. Deleting the file created a new default file. Not sure if there's any great resolution for this case, so feel free to close.

@JeffMill commented on GitHub (Jul 31, 2019): I figured it out. I somehow had an empty file there which was parsing as invalid json. Deleting the file created a new default file. Not sure if there's any great resolution for this case, so feel free to close.
Author
Owner

@zadjii-msft commented on GitHub (Jul 31, 2019):

Huh. That's certainly super weird. Maybe there was an exception while serializing, which caused us to write the file with nothing in it.

Unfortunately I don't think we can really do anything without some sort of repro steps for getting into the state with an empty profiles.json file.

@zadjii-msft commented on GitHub (Jul 31, 2019): Huh. That's certainly super weird. Maybe there was an exception while serializing, which caused us to write the file with _nothing_ in it. Unfortunately I don't think we can really do anything without some sort of repro steps for getting into the state with an empty `profiles.json` file.
Author
Owner

@JHBonarius commented on GitHub (Apr 28, 2021):

Here's my repro:
afbeelding
I think it started after an upgrade, but I'm not sure.

@JHBonarius commented on GitHub (Apr 28, 2021): Here's my repro: ![afbeelding](https://user-images.githubusercontent.com/36847155/116414851-21e21900-a839-11eb-8989-15f141c1f371.png) I think it started after an upgrade, but I'm not sure.
Author
Owner

@zadjii-msft commented on GitHub (Apr 28, 2021):

@JHBonarius This issue is nearly two years old now - the underlying root cause of OPs issue is almost certainly different than what you're seeing. Would you mind filing a new issue? Make sure to include your terminal version number, how you installed the terminal, and the contents of your settings.json would also be helpful for debugging.

@zadjii-msft commented on GitHub (Apr 28, 2021): @JHBonarius This issue is nearly two years old now - the underlying root cause of OPs issue is almost certainly different than what you're seeing. Would you mind filing a new issue? Make sure to include your terminal version number, how you installed the terminal, and the contents of your settings.json would also be helpful for debugging.
Author
Owner

@Karlheinzniebuhr commented on GitHub (Dec 23, 2022):

Same issue, win10 19045.2364 latest Terminal Version on Microsoft Store

image

@Karlheinzniebuhr commented on GitHub (Dec 23, 2022): Same issue, win10 19045.2364 latest Terminal Version on Microsoft Store ![image](https://user-images.githubusercontent.com/5278928/209336674-ef8ab8e8-cff9-406f-9c91-dfbed38d8b5f.png)
Author
Owner

@LzPhoton commented on GitHub (Aug 15, 2023):

I was getting the same error. I fixed it by going to settings
image
Command prompt > Delete profile
image

@LzPhoton commented on GitHub (Aug 15, 2023): I was getting the same error. I fixed it by going to settings ![image](https://github.com/microsoft/terminal/assets/69617690/f2568c84-2e55-4daa-a260-bce9ca3f60b1) Command prompt > Delete profile ![image](https://github.com/microsoft/terminal/assets/69617690/94d21f3b-042c-49fb-83dd-397ecb10de5b)
Author
Owner

@ntnghiaw commented on GitHub (Mar 30, 2024):

@LzPhoton Thank you very much. It works for me

@ntnghiaw commented on GitHub (Mar 30, 2024): @LzPhoton Thank you very much. It works for me
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#3043