-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Settings could not be loaded from file. Element not found (when running unpackaged) #12305
Comments
Can you share the actual json file, and maybe also the contents of |
There is no state.json file. I found the location of settings.json is actually in Even if I copy the file to both locations, I still get the error dialog. I tried unzipping to a new installation folder after deleting the above directories. It did not create the LocalState folder upon running or editing the settings; it crated the other folder but there is no settings.json file there. I clicked the Open JSON file button, it opened Visual Studio with no file open. Making changes to the settings results in the same error when attempting to save. The error dialog says "Element not found" What element is it looking for, do you think? |
I've got the same issue after updating windows terminal via scoop to the latest stable version. Uninstalling/reinstalling did not help. The json files were valid too. I have uninstalled the latest version and reinstalled 1.11.3471.0 and everything works again. One thing I noticed is that after windows terminal loads the default settings since it cannot read the settings.json apparently, in the default config there is no wsl. If I remember correctly, wsl is detected automatically also in the default config right? So maybe the latest version has a problem that is somehow related to wsl? I did remove the wsl part of my config but that did not help though. Also it did not help to remove all the files from |
@JSamir Thanks for that, I downloaded that version and it worked for me. I'm just curious as to what is causing the error @zadjii-msft Mike, any ideas on why it happened? |
Honestly, no idea. Only theory is that we somehow failed to create the settings file entirely, but that should give a more descriptive error... Actually I think it's supposed to: #7950 |
Same problem here. After update from scoop, settings.json can't be loaded anymore. I tried to remove the
|
Since we've got a number of reports of this happening for unpackaged installs, I'm gonna bump this one into 1.14, so we make sure someone takes a look sooner than later. I wonder if this has anything to do with |
Well, the |
I misremembered and had a different error than this / cannot reproduce. |
I can't replicate this issue personally with neither 1.12 nor 1.13. I also tried using the settings.json posted at the beginning of this issue. Can someone who has this issue try and download the latest release on GitHub, extract it and run it? Basically:
I just want to make sure whether running our "official release" unpackaged would produce the same issue, since I personally can't... |
Can confirm I can reproduce the issue with above steps using versions v1.12.10393.0 and v1.13.10395.0. |
This is exactly what I reported the very first time with 1.12.10393.0 (see #12547) |
Ah dang, I only read the most recent comments in this issue. I'm sorry about that. 😕 |
This happened in Preview 1.11.2421 The error dialog says "Element not found" What element is it looking for, do you think? |
It's probably a |
I tried to build it from source, but it has proven very hard. |
I downloaded 1.11.3471.0 and the error didn't occur, so it has to be some change that happened between those versions. |
Do you happen to have any files in...
? If not, can you run the following PowerShell command? It might produce a lot of output... Get-AppxPackage | ? {
If (-Not [String]::IsNullOrEmpty($_.InstallLocation)) {
$am = [xml](Get-Content (Join-Path $_.InstallLocation "AppxManifest.xml"))
$am.InnerXml.Contains("terminal.settings")
Return
}
$False
} | Select -Expand PackageFullName |
I was able to downgrade to version 1.11.3471.0 and everything worked as desired. |
In addition to the request above, would you mind collecting a trace for us? I'd love to get this issue kicked once and for all. Here is how to capture a trace. |
I have a trace but it is inside the corporate network... I will have to ask how to bring it out. Anything I could do with it? Maybe make it readable and take a screenshot? |
@audetto If you copy and paste the text with Yes, it's very helpful! Thanks to your screenshot I immediately found the source of the issues and will submit a PR soon. |
Sorry, I can't, it is all running in a remote app where I cannot copy from... |
This commit fixes a stray exception during settings loading, caused by a failure to obtain the app's extension catalog. ## PR Checklist * [x] Closes #12305 * [x] I work here * [x] Tests added/passed ## Validation Steps Performed I'm unable to replicate the issue. ❌ However an error log was provided in #12305 with which the function causing the exception could be determined.
This commit fixes a stray exception during settings loading, caused by a failure to obtain the app's extension catalog. ## PR Checklist * [x] Closes #12305 * [x] I work here * [x] Tests added/passed ## Validation Steps Performed I'm unable to replicate the issue. ❌ However an error log was provided in #12305 with which the function causing the exception could be determined. (cherry picked from commit 9c6ec75)
This commit fixes a stray exception during settings loading, caused by a failure to obtain the app's extension catalog. ## PR Checklist * [x] Closes #12305 * [x] I work here * [x] Tests added/passed ## Validation Steps Performed I'm unable to replicate the issue. ❌ However an error log was provided in #12305 with which the function causing the exception could be determined. (cherry picked from commit 9c6ec75)
🎉This issue was addressed in #12687, which has now been successfully released as Handy links: |
🎉This issue was addressed in #12687, which has now been successfully released as Handy links: |
This release fixes the issue "Element not found" affecting a number of scoop users: microsoft/terminal#12305
* Update Windows Terminal to v1.12.10732 This release fixes the issue "Element not found" affecting a number of scoop users: microsoft/terminal#12305 * Windows-terminal: fix the autoupdate The autoupdate URL scheme has changed. Note that the release notes specify that the Win10 flavor of the URL will work just as well for Win11: > If you install the Windows 10 verison on Windows 11, it will probably automatically upgrade itself to the Windows 11 version. It turns out that it is impossible to have two bundles with the same version number, so it has to be this way. https://github.com/microsoft/terminal/releases/tag/v1.12.10732.0
Windows Terminal version
Preview 1.11.2421
Windows build number
10.0.18363
Other Software
No response
Steps to reproduce
Install the Preview version from this link then open. Can't open the settings file and can't save settings after change
Expected Behavior
Was expecting to load and be able to open and set the default profile
Actual Behavior
Got the following dialog:
I see no settings.json file in the installation and the one named defaults.json doesn't change. Also, there was no directory created here: %LOCALAPPDATA%\Packages\Microsoft. WindowsTerminal_8wekyb3d8bbwe\LocalState\
I found it here: %USERPROFILE%\AppData\Local\Microsoft\Windows Terminal
But after checking for well-formed JSON, it looks correct. Just can't understand why it won't open.
Not sure if it matters but I did NOT run through and actual installation, I renamed the files, msixbundle/msix, as zip and extracted them
The text was updated successfully, but these errors were encountered: