settings.json is lies #10050

Open
opened 2026-01-31 02:11:16 +00:00 by claunia · 0 comments
Owner

Originally created by @ncook-hxgn on GitHub (Aug 7, 2020).

Environment

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

Any other software?

image

Steps to reproduce

Expected behavior

I my single powershell entry starts powershell 7, not 5.

The easiest way to describe this issue is with a paste of my settings.json, a screenshot of my terminal, and the question "how does this file represent this menu?"

`
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation

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

// Default to PowerShell
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",

"initialCols": 140,
"initialRows": 30,
"profiles":
[
    {
        // Make changes here to the cmd.exe profile
        "guid": "{DB7EBB6F-0DEE-462F-8D0E-3288AAB04073}",
        "name": "Command Prompt",
        "icon": "C:\\Windows\\System32\\SHELL32.dll",
        "commandline": "cmd.exe",
        "background": "#3a3939",
        "foreground": "#ececec",
        "cursorColor": "#ececec",
        "hidden": false
    },
    {
        "guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
        "name": "PowerShell",
        "source": "Windows.Terminal.PowershellCore",
        "background": "#3a3939",
        "foreground": "#ececec",
        "cursorColor": "#ececec",
        "hidden": false,
        "startingDirectory": "E:\\repos"
    },
    {
        // Make changes here to the cmd.exe profile
        "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
        "name": "VS 2017",
        "icon": "C:\\Windows\\System32\\SHELL32.dll",
        "background": "#3a3939",
        "foreground": "#ececec",
        "cursorColor": "#ececec",
        "hidden": false,
        "startingDirectory": "E:\\repos",
        "commandline": "%comspec% /k \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2017 15.9\\Professional\\Common7\\Tools\\VsDevCmd.bat\""
    },
    {
        "guid": "{C8F1B58D-FC58-462A-87F1-CC8CEB91C076}",
        "name": "VS 2019",
        "icon": "C:\\Windows\\System32\\SHELL32.dll",
        "hidden": false,
        "background": "#3a3939",
        "foreground": "#ececec",
        "cursorColor": "#ececec",
        "startingDirectory": "D:\\Development\\repos",
        "commandline": "%comspec% /k \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019 16.3\\Professional\\Common7\\Tools\\VsDevCmd.bat\""
    },
    {
        // Make changes here to the NodeJS.exe profile
        "guid": "{3b47f3c3-ed09-4301-a139-826c8151ee5c}",
        "name": "NodeJS",
        "icon": "C:\\Windows\\System32\\SHELL32.dll",
        "commandline": "%comspec% /k \"C:\\Program Files\\nodejs\\nodevars.bat\" && node && exit",
        "background": "#3a3939",
        "foreground": "#ececec",
        "cursorColor": "#ececec",
        "hidden": false
    },
    {
        "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
        "hidden": false,
        "background": "#3a3939",
        "foreground": "#ececec",
        "cursorColor": "#ececec",
        "name": "Azure Cloud Shell",
        "source": "Windows.Terminal.Azure"
    }
],

// Add custom color schemes to this array
"schemes": [
    {
        "name": "Nathan",
        "background": "#3a3939",
        "foreground": "#ececec"
    }
],

// Add any keybinding overrides to this array.
// To unbind a default keybinding, set the command to "unbound"
"keybindings": []

}
`

Actual behavior

image

Why have I got a second powershell entry when none is listed in the settings.json?

I've signed out & in again to try to make Windows forget stuff, but it hasn't worked. I still have two powershell entries when only one is listed in settings.json

Originally created by @ncook-hxgn on GitHub (Aug 7, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 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? ``` ![image](https://user-images.githubusercontent.com/36889813/89637949-f0887e00-d8a2-11ea-8337-e6b1351f440f.png) # Steps to reproduce - Install Powershell 7 from https://github.com/PowerShell/PowerShell/releases/tag/v7.0.3 I used the msix - Update entry in terminal's settings.json to point to pwsh.exe instead of powershell.exe - Restart Windows Terminal - Now I have two powershell entries in the new window menu <!-- A description of how to trigger this bug. --> # Expected behavior I my single powershell entry starts powershell 7, not 5. <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> The easiest way to describe this issue is with a paste of my settings.json, a screenshot of my terminal, and the question "how does this file represent this menu?" ` // To view the default settings, hold "alt" while clicking on the "Settings" button. // For documentation on these settings, see: https://aka.ms/terminal-documentation { "$schema": "https://aka.ms/terminal-profiles-schema", // Default to PowerShell "defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}", "initialCols": 140, "initialRows": 30, "profiles": [ { // Make changes here to the cmd.exe profile "guid": "{DB7EBB6F-0DEE-462F-8D0E-3288AAB04073}", "name": "Command Prompt", "icon": "C:\\Windows\\System32\\SHELL32.dll", "commandline": "cmd.exe", "background": "#3a3939", "foreground": "#ececec", "cursorColor": "#ececec", "hidden": false }, { "guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}", "name": "PowerShell", "source": "Windows.Terminal.PowershellCore", "background": "#3a3939", "foreground": "#ececec", "cursorColor": "#ececec", "hidden": false, "startingDirectory": "E:\\repos" }, { // Make changes here to the cmd.exe profile "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", "name": "VS 2017", "icon": "C:\\Windows\\System32\\SHELL32.dll", "background": "#3a3939", "foreground": "#ececec", "cursorColor": "#ececec", "hidden": false, "startingDirectory": "E:\\repos", "commandline": "%comspec% /k \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2017 15.9\\Professional\\Common7\\Tools\\VsDevCmd.bat\"" }, { "guid": "{C8F1B58D-FC58-462A-87F1-CC8CEB91C076}", "name": "VS 2019", "icon": "C:\\Windows\\System32\\SHELL32.dll", "hidden": false, "background": "#3a3939", "foreground": "#ececec", "cursorColor": "#ececec", "startingDirectory": "D:\\Development\\repos", "commandline": "%comspec% /k \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019 16.3\\Professional\\Common7\\Tools\\VsDevCmd.bat\"" }, { // Make changes here to the NodeJS.exe profile "guid": "{3b47f3c3-ed09-4301-a139-826c8151ee5c}", "name": "NodeJS", "icon": "C:\\Windows\\System32\\SHELL32.dll", "commandline": "%comspec% /k \"C:\\Program Files\\nodejs\\nodevars.bat\" && node && exit", "background": "#3a3939", "foreground": "#ececec", "cursorColor": "#ececec", "hidden": false }, { "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}", "hidden": false, "background": "#3a3939", "foreground": "#ececec", "cursorColor": "#ececec", "name": "Azure Cloud Shell", "source": "Windows.Terminal.Azure" } ], // Add custom color schemes to this array "schemes": [ { "name": "Nathan", "background": "#3a3939", "foreground": "#ececec" } ], // Add any keybinding overrides to this array. // To unbind a default keybinding, set the command to "unbound" "keybindings": [] } ` # Actual behavior ![image](https://user-images.githubusercontent.com/36889813/89637366-f6319400-d8a1-11ea-901d-976634ebd3ab.png) <!-- What's actually happening? --> Why have I got a second powershell entry when none is listed in the settings.json? I've signed out & in again to try to make Windows forget stuff, but it hasn't worked. I still have two powershell entries when only one is listed in settings.json
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#10050