Settings parsing error. #11673

Closed
opened 2026-01-31 02:54:19 +00:00 by claunia · 5 comments
Owner

Originally created by @dmytrobaranovskyi on GitHub (Dec 3, 2020).

After updating to the latest version all the settings are failed to parse.

Some setting.json works in Preview

Environment

Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd]
Windows Terminal version (if applicable):

Any other software?

Steps to reproduce

Expected behavior

Actual behavior

Originally created by @dmytrobaranovskyi on GitHub (Dec 3, 2020). After updating to the latest version all the settings are failed to parse. Some setting.json works in Preview <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 ![image](https://user-images.githubusercontent.com/67284656/100988874-df056900-3558-11eb-923d-dfe2fa288269.png) I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd] Windows Terminal version (if applicable): Any other software? ``` # Steps to reproduce <!-- A description of how to trigger this bug. --> # Expected behavior <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> # Actual behavior <!-- What's actually happening? -->
Author
Owner

@zadjii-msft commented on GitHub (Dec 3, 2020):

Our settings validation is usually pretty specific about the error it detected. Could you share the exact error message you're getting, and your settings.json?

@zadjii-msft commented on GitHub (Dec 3, 2020): Our settings validation is usually pretty specific about the error it detected. Could you share the exact error message you're getting, and your `settings.json`?
Author
Owner

@dmytrobaranovskyi commented on GitHub (Dec 3, 2020):

i've just copy-pasted this one.
Works in 1.5.3242.0 Preview.

Crashes in the latest release.

{
  "$schema": "https://aka.ms/terminal-profiles-schema",

  "alwaysShowTabs": true,
  "defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
  "initialCols": 120,
  "initialRows": 30,
  "keybindings": [
    {
      "command": "closeTab",
      "keys": [
        "ctrl+w"
      ]
    },
    {
      "command": "newTab",
      "keys": [
        "ctrl+t"
      ]
    },
    {
      "command": "copy",
      "keys": [
        "ctrl+c"
      ]
    },
    {
      "command": "paste",
      "keys": [
        "ctrl+v"
      ]
    },
    {
      "command": "newTabProfile2",
      "keys": [
        "ctrl+shift+3"
      ]
    },
    {
      "command": "newTabProfile3",
      "keys": [
        "ctrl+shift+4"
      ]
    },
    {
      "command": "newTabProfile4",
      "keys": [
        "ctrl+shift+5"
      ]
    },
    {
      "command": "newTabProfile5",
      "keys": [
        "ctrl+shift+6"
      ]
    },
    {
      "command": "newTabProfile6",
      "keys": [
        "ctrl+shift+7"
      ]
    },
    {
      "command": "newTabProfile7",
      "keys": [
        "ctrl+shift+8"
      ]
    },
    {
      "command": "newTabProfile8",
      "keys": [
        "ctrl+shift+9"
      ]
    },
    {
      "command": "nextTab",
      "keys": [
        "ctrl+tab"
      ]
    },
    {
      "command": "openSettings",
      "keys": [
        "ctrl+,"
      ]
    },
    {
      "command": "prevTab",
      "keys": [
        "ctrl+shift+tab"
      ]
    },
    {
      "command": "scrollDown",
      "keys": [
        "ctrl+shift+down"
      ]
    },
    {
      "command": "scrollDownPage",
      "keys": [
        "ctrl+shift+pgdn"
      ]
    },
    {
      "command": "scrollUp",
      "keys": [
        "ctrl+shift+up"
      ]
    },
    {
      "command": "scrollUpPage",
      "keys": [
        "ctrl+shift+pgup"
      ]
    },
    {
      "command": "switchToTab0",
      "keys": [
        "alt+1"
      ]
    },
    {
      "command": "switchToTab1",
      "keys": [
        "alt+2"
      ]
    },
    {
      "command": "switchToTab2",
      "keys": [
        "alt+3"
      ]
    },
    {
      "command": "switchToTab3",
      "keys": [
        "alt+4"
      ]
    },
    {
      "command": "switchToTab4",
      "keys": [
        "alt+5"
      ]
    },
    {
      "command": "switchToTab5",
      "keys": [
        "alt+6"
      ]
    },
    {
      "command": "switchToTab6",
      "keys": [
        "alt+7"
      ]
    },
    {
      "command": "switchToTab7",
      "keys": [
        "alt+8"
      ]
    },
    {
      "command": "switchToTab8",
      "keys": [
        "alt+9"
      ]
    }
  ],
  "Theme": "system",
  "showTabsInTitlebar": true,
  "showTerminalTitleInTitlebar": true,
  "profiles": [
    {
      "acrylicOpacity": 0.75,
      "background": "#012411",
      "closeOnExit": true,
      "colorScheme": "One Half Dark",
      "commandline": "powershell.exe",
      "cursorColor": "#FFFFFF",
      "cursorShape": "bar",
      "fontFace": "Consolas",
      "fontSize": 10,
      "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
      "historySize": 9001,
      "icon": "ms-appx:///ProfileIcons/{61c54bbd-c2c6-5271-96e7-009a87ff44bf}.png",
      "name": "Windows PowerShell",
      "padding": "0, 0, 0, 0",
      "snapOnInput": true,
      "startingDirectory": "%USERPROFILE%",
      "useAcrylic": false
    },
    {
      "acrylicOpacity": 0.85,
      "closeOnExit": true,
      "colorScheme": "One Half Dark",
      "commandline": "cmd.exe",
      "cursorColor": "#FFFFFF",
      "cursorShape": "bar",
      "fontFace": "Consolas",
      "fontSize": 10,
      "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
      "historySize": 9001,
      "icon": "ms-appx:///ProfileIcons/{0caa0dad-35be-5f56-a8ff-afceeeaa6101}.png",
      "name": "cmd",
      "padding": "0, 0, 0, 0",
      "snapOnInput": true,
      "startingDirectory": "%USERPROFILE%",
      "useAcrylic": true
    },
    {
      "guid": "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}",
      "hidden": false,
      "name": "Ubuntu-18.04",
      "source": "Windows.Terminal.Wsl"
    },
    {
      "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
      "hidden": false,
      "name": "Azure Cloud Shell",
      "source": "Windows.Terminal.Azure"
    },
    {
      "guid": "{00000000-0000-0000-ba54-000000000002}",
      "acrylicOpacity": 0.75,
      "closeOnExit": true,

      "colorScheme": "Campbell",
      "commandline": "\"%PROGRAMFILES%\\git\\usr\\bin\\bash.exe\" -i -l",
      "cursorColor": "#FFFFFF",
      "cursorShape": "bar",
      "fontFace": "Consolas",
      "fontSize": 10,
      "historySize": 9001,
      "icon": "%SystemDrive%\\Program Files\\Git\\mingw64\\share\\git\\git-for-windows.ico",
      "name": "Git",
      "padding": "0, 0, 0, 0",
      "snapOnInput": true,
      "startingDirectory": "E:\\source\\",
      "useAcrylic": true
    },
    {
      "guid": "{00000000-0000-0000-ba54-000000000003}",
      "acrylicOpacity": 0.75,
      "closeOnExit": true,
      "background": "#5d81a3",
      "colorScheme": "Campbell",
      "commandline": "%PROGRAMFILES%\\Far Manager\\Far.exe",
      "cursorColor": "#FFFFFF",
      "cursorShape": "bar",
      "fontFace": "Consolas",
      "fontSize": 10,
      "historySize": 9001,
      "name": "Far Manager",
      "padding": "0, 0, 0, 0",
      "snapOnInput": true,
      "startingDirectory": "%USERPROFILE%",
      "useAcrylic": true
    },
    {
        "guid": "{07b52e3e-de2c-5db4-bd2d-ba144ed6c273}",
        "hidden": false,
        "name": "Ubuntu-20.04",
        "source": "Windows.Terminal.Wsl"
    }
  ],
  "schemes": [
    {
      "background": "#0C0C0C",
      "black": "#0C0C0C",
      "blue": "#0037DA",
      "brightBlack": "#767676",
      "brightBlue": "#3B78FF",
      "brightCyan": "#61D6D6",
      "brightGreen": "#16C60C",
      "brightPurple": "#B4009E",
      "brightRed": "#E74856",
      "brightWhite": "#F2F2F2",
      "brightYellow": "#F9F1A5",
      "cyan": "#3A96DD",
      "foreground": "#F2F2F2",
      "green": "#13A10E",
      "name": "Campbell",
      "purple": "#881798",
      "red": "#C50F1F",
      "white": "#CCCCCC",
      "yellow": "#C19C00"
    },
    {
      "background": "#282C34",
      "black": "#282C34",
      "blue": "#61AFEF",
      "brightBlack": "#5A6374",
      "brightBlue": "#61AFEF",
      "brightCyan": "#56B6C2",
      "brightGreen": "#98C379",
      "brightPurple": "#C678DD",
      "brightRed": "#E06C75",
      "brightWhite": "#DCDFE4",
      "brightYellow": "#E5C07B",
      "cyan": "#56B6C2",
      "foreground": "#DCDFE4",
      "green": "#98C379",
      "name": "One Half Dark",
      "purple": "#C678DD",
      "red": "#E06C75",
      "white": "#DCDFE4",
      "yellow": "#E5C07B"
    },
    {
      "background": "#FAFAFA",
      "black": "#383A42",
      "blue": "#0184BC",
      "brightBlack": "#4F525D",
      "brightBlue": "#61AFEF",
      "brightCyan": "#56B5C1",
      "brightGreen": "#98C379",
      "brightPurple": "#C577DD",
      "brightRed": "#DF6C75",
      "brightWhite": "#FFFFFF",
      "brightYellow": "#E4C07A",
      "cyan": "#0997B3",
      "foreground": "#383A42",
      "green": "#50A14F",
      "name": "One Half Light",
      "purple": "#A626A4",
      "red": "#E45649",
      "white": "#FAFAFA",
      "yellow": "#C18301"
    },
    {
      "background": "#073642",
      "black": "#073642",
      "blue": "#268BD2",
      "brightBlack": "#002B36",
      "brightBlue": "#839496",
      "brightCyan": "#93A1A1",
      "brightGreen": "#586E75",
      "brightPurple": "#6C71C4",
      "brightRed": "#CB4B16",
      "brightWhite": "#FDF6E3",
      "brightYellow": "#657B83",
      "cyan": "#2AA198",
      "foreground": "#FDF6E3",
      "green": "#859900",
      "name": "Solarized Dark",
      "purple": "#D33682",
      "red": "#D30102",
      "white": "#EEE8D5",
      "yellow": "#B58900"
    },
    {
      "background": "#FDF6E3",
      "black": "#073642",
      "blue": "#268BD2",
      "brightBlack": "#002B36",
      "brightBlue": "#839496",
      "brightCyan": "#93A1A1",
      "brightGreen": "#586E75",
      "brightPurple": "#6C71C4",
      "brightRed": "#CB4B16",
      "brightWhite": "#FDF6E3",
      "brightYellow": "#657B83",
      "cyan": "#2AA198",
      "foreground": "#073642",
      "green": "#859900",
      "name": "Solarized Light",
      "purple": "#D33682",
      "red": "#D30102",
      "white": "#EEE8D5",
      "yellow": "#B58900"
    }
  ]
}
@dmytrobaranovskyi commented on GitHub (Dec 3, 2020): i've just copy-pasted this one. Works in 1.5.3242.0 Preview. Crashes in the latest release. ``` { "$schema": "https://aka.ms/terminal-profiles-schema", "alwaysShowTabs": true, "defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", "initialCols": 120, "initialRows": 30, "keybindings": [ { "command": "closeTab", "keys": [ "ctrl+w" ] }, { "command": "newTab", "keys": [ "ctrl+t" ] }, { "command": "copy", "keys": [ "ctrl+c" ] }, { "command": "paste", "keys": [ "ctrl+v" ] }, { "command": "newTabProfile2", "keys": [ "ctrl+shift+3" ] }, { "command": "newTabProfile3", "keys": [ "ctrl+shift+4" ] }, { "command": "newTabProfile4", "keys": [ "ctrl+shift+5" ] }, { "command": "newTabProfile5", "keys": [ "ctrl+shift+6" ] }, { "command": "newTabProfile6", "keys": [ "ctrl+shift+7" ] }, { "command": "newTabProfile7", "keys": [ "ctrl+shift+8" ] }, { "command": "newTabProfile8", "keys": [ "ctrl+shift+9" ] }, { "command": "nextTab", "keys": [ "ctrl+tab" ] }, { "command": "openSettings", "keys": [ "ctrl+," ] }, { "command": "prevTab", "keys": [ "ctrl+shift+tab" ] }, { "command": "scrollDown", "keys": [ "ctrl+shift+down" ] }, { "command": "scrollDownPage", "keys": [ "ctrl+shift+pgdn" ] }, { "command": "scrollUp", "keys": [ "ctrl+shift+up" ] }, { "command": "scrollUpPage", "keys": [ "ctrl+shift+pgup" ] }, { "command": "switchToTab0", "keys": [ "alt+1" ] }, { "command": "switchToTab1", "keys": [ "alt+2" ] }, { "command": "switchToTab2", "keys": [ "alt+3" ] }, { "command": "switchToTab3", "keys": [ "alt+4" ] }, { "command": "switchToTab4", "keys": [ "alt+5" ] }, { "command": "switchToTab5", "keys": [ "alt+6" ] }, { "command": "switchToTab6", "keys": [ "alt+7" ] }, { "command": "switchToTab7", "keys": [ "alt+8" ] }, { "command": "switchToTab8", "keys": [ "alt+9" ] } ], "Theme": "system", "showTabsInTitlebar": true, "showTerminalTitleInTitlebar": true, "profiles": [ { "acrylicOpacity": 0.75, "background": "#012411", "closeOnExit": true, "colorScheme": "One Half Dark", "commandline": "powershell.exe", "cursorColor": "#FFFFFF", "cursorShape": "bar", "fontFace": "Consolas", "fontSize": 10, "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", "historySize": 9001, "icon": "ms-appx:///ProfileIcons/{61c54bbd-c2c6-5271-96e7-009a87ff44bf}.png", "name": "Windows PowerShell", "padding": "0, 0, 0, 0", "snapOnInput": true, "startingDirectory": "%USERPROFILE%", "useAcrylic": false }, { "acrylicOpacity": 0.85, "closeOnExit": true, "colorScheme": "One Half Dark", "commandline": "cmd.exe", "cursorColor": "#FFFFFF", "cursorShape": "bar", "fontFace": "Consolas", "fontSize": 10, "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", "historySize": 9001, "icon": "ms-appx:///ProfileIcons/{0caa0dad-35be-5f56-a8ff-afceeeaa6101}.png", "name": "cmd", "padding": "0, 0, 0, 0", "snapOnInput": true, "startingDirectory": "%USERPROFILE%", "useAcrylic": true }, { "guid": "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}", "hidden": false, "name": "Ubuntu-18.04", "source": "Windows.Terminal.Wsl" }, { "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}", "hidden": false, "name": "Azure Cloud Shell", "source": "Windows.Terminal.Azure" }, { "guid": "{00000000-0000-0000-ba54-000000000002}", "acrylicOpacity": 0.75, "closeOnExit": true, "colorScheme": "Campbell", "commandline": "\"%PROGRAMFILES%\\git\\usr\\bin\\bash.exe\" -i -l", "cursorColor": "#FFFFFF", "cursorShape": "bar", "fontFace": "Consolas", "fontSize": 10, "historySize": 9001, "icon": "%SystemDrive%\\Program Files\\Git\\mingw64\\share\\git\\git-for-windows.ico", "name": "Git", "padding": "0, 0, 0, 0", "snapOnInput": true, "startingDirectory": "E:\\source\\", "useAcrylic": true }, { "guid": "{00000000-0000-0000-ba54-000000000003}", "acrylicOpacity": 0.75, "closeOnExit": true, "background": "#5d81a3", "colorScheme": "Campbell", "commandline": "%PROGRAMFILES%\\Far Manager\\Far.exe", "cursorColor": "#FFFFFF", "cursorShape": "bar", "fontFace": "Consolas", "fontSize": 10, "historySize": 9001, "name": "Far Manager", "padding": "0, 0, 0, 0", "snapOnInput": true, "startingDirectory": "%USERPROFILE%", "useAcrylic": true }, { "guid": "{07b52e3e-de2c-5db4-bd2d-ba144ed6c273}", "hidden": false, "name": "Ubuntu-20.04", "source": "Windows.Terminal.Wsl" } ], "schemes": [ { "background": "#0C0C0C", "black": "#0C0C0C", "blue": "#0037DA", "brightBlack": "#767676", "brightBlue": "#3B78FF", "brightCyan": "#61D6D6", "brightGreen": "#16C60C", "brightPurple": "#B4009E", "brightRed": "#E74856", "brightWhite": "#F2F2F2", "brightYellow": "#F9F1A5", "cyan": "#3A96DD", "foreground": "#F2F2F2", "green": "#13A10E", "name": "Campbell", "purple": "#881798", "red": "#C50F1F", "white": "#CCCCCC", "yellow": "#C19C00" }, { "background": "#282C34", "black": "#282C34", "blue": "#61AFEF", "brightBlack": "#5A6374", "brightBlue": "#61AFEF", "brightCyan": "#56B6C2", "brightGreen": "#98C379", "brightPurple": "#C678DD", "brightRed": "#E06C75", "brightWhite": "#DCDFE4", "brightYellow": "#E5C07B", "cyan": "#56B6C2", "foreground": "#DCDFE4", "green": "#98C379", "name": "One Half Dark", "purple": "#C678DD", "red": "#E06C75", "white": "#DCDFE4", "yellow": "#E5C07B" }, { "background": "#FAFAFA", "black": "#383A42", "blue": "#0184BC", "brightBlack": "#4F525D", "brightBlue": "#61AFEF", "brightCyan": "#56B5C1", "brightGreen": "#98C379", "brightPurple": "#C577DD", "brightRed": "#DF6C75", "brightWhite": "#FFFFFF", "brightYellow": "#E4C07A", "cyan": "#0997B3", "foreground": "#383A42", "green": "#50A14F", "name": "One Half Light", "purple": "#A626A4", "red": "#E45649", "white": "#FAFAFA", "yellow": "#C18301" }, { "background": "#073642", "black": "#073642", "blue": "#268BD2", "brightBlack": "#002B36", "brightBlue": "#839496", "brightCyan": "#93A1A1", "brightGreen": "#586E75", "brightPurple": "#6C71C4", "brightRed": "#CB4B16", "brightWhite": "#FDF6E3", "brightYellow": "#657B83", "cyan": "#2AA198", "foreground": "#FDF6E3", "green": "#859900", "name": "Solarized Dark", "purple": "#D33682", "red": "#D30102", "white": "#EEE8D5", "yellow": "#B58900" }, { "background": "#FDF6E3", "black": "#073642", "blue": "#268BD2", "brightBlack": "#002B36", "brightBlue": "#839496", "brightCyan": "#93A1A1", "brightGreen": "#586E75", "brightPurple": "#6C71C4", "brightRed": "#CB4B16", "brightWhite": "#FDF6E3", "brightYellow": "#657B83", "cyan": "#2AA198", "foreground": "#073642", "green": "#859900", "name": "Solarized Light", "purple": "#D33682", "red": "#D30102", "white": "#EEE8D5", "yellow": "#B58900" } ] } ```
Author
Owner

@zadjii-msft commented on GitHub (Dec 3, 2020):

Huh. I'm not seeing a crash on 1.4.3243.0 with your settings, nor am I seeing a crash on main.
image
image

What editor are you using to edit the file? Maybe a garbage byte snuck its way into the file, that doesn't round-trip through github?

@zadjii-msft commented on GitHub (Dec 3, 2020): Huh. I'm not seeing a crash on 1.4.3243.0 with your settings, nor am I seeing a crash on `main`. ![image](https://user-images.githubusercontent.com/18356694/101000430-85cf1280-3523-11eb-92c4-27dd7b8c1b00.png) ![image](https://user-images.githubusercontent.com/18356694/101000822-ffff9700-3523-11eb-8c9d-67952762b101.png) What editor are you using to edit the file? Maybe a garbage byte snuck its way into the file, that doesn't round-trip through github?
Author
Owner

@dmytrobaranovskyi commented on GitHub (Dec 3, 2020):

Wtf... I've reinstalled and it is ok...
Sorry for disturbing you.

@dmytrobaranovskyi commented on GitHub (Dec 3, 2020): Wtf... I've reinstalled and it is ok... Sorry for disturbing you.
Author
Owner

@zadjii-msft commented on GitHub (Dec 3, 2020):

Don't worry about it! Glad it's fixed itself ☺️

@zadjii-msft commented on GitHub (Dec 3, 2020): Don't worry about it! Glad it's fixed itself ☺️
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#11673