Skip to content

MEGATHREAD: Breaking settings changes in version 0.11! #5458

Closed

Description

BREAKING SETTINGS CHANGES IN 0.11


Do your settings look like this?

{
    "globals": {
        "defaultProfile": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
        "initialCols": 200,
        "initialRows": 65,
        "initialPosition": "0,0",
        "wordDelimiters" : " ()\"'-:,;<>~!@#$%^&*|+=[]{}~?\u2502",
        "confirmCloseAllTabs": true,
        "keybindings": [
            ...
        ]
    },
    "profiles": {
        ...
    }
}

Then change them to look like this:

{
    "defaultProfile": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
    "initialCols": 200,
    "initialRows": 65,
    "initialPosition": "0,0",
    "wordDelimiters" : " ()\"'-:,;<>~!@#$%^&*|+=[]{}~?\u2502",
    "confirmCloseAllTabs": true,
    "keybindings": [
        ...
    ],
    "profiles": {
        ...
    }
}

Or even better, make a backup of your settings file, and delete the contents entirely. We'll re-generate the file with some better formatting and more sane defaults, and you can copy the modifications you want back in.

Activity

  1. added
    Issue-Question
    Area-Settings
    Product-Terminal
    on Apr 22, 2020
  2. ghost added
    Needs-Triage
    on Apr 22, 2020
  3. removed
    Needs-Triage
    on Apr 22, 2020
  4. changed the title [-]MEGATHREAD: My settings are gone! My default profile stopped bring default! I hate this![/-] [+]MEGATHREAD: My settings are gone! My default profile broke! I hate this![/+] on Apr 22, 2020
  5. changed the title [-]MEGATHREAD: My settings are gone! My default profile broke! I hate this![/-] [+]MEGATHREAD: DEFAULT PROFILE STOPPED WORKING! My settings are gone! I hate you![/+] on Apr 22, 2020
  6. changed the title [-]MEGATHREAD: DEFAULT PROFILE STOPPED WORKING! My settings are gone! I hate you![/-] [+]MEGATHREAD: DEFAULT PROFILE STOPPED WORKING! Settings are gone! I hate you![/+] on Apr 22, 2020
  7. mlewand commented on Apr 23, 2020

    @mlewand

    Out of curiosity, any reason why settings.json's global values weren't moved automatically to the root level after the upgrade? You migrate the config on multiple occasions which is good, but not this time.

    I myself had this problem and got into #5489 even though I scanned changelog before the upgrade, but haven't picked up that I have actually to change something in my config 🙂

  8. bmarkovic commented on Apr 23, 2020

    @bmarkovic

    If you had settings hanging out in the globals dictionary, you'll want to move them out.
    Failure to do so will cause us to ignore your default profile, launch mode, etc., etc.
    THIS INCLUDES defaultProfile

    You might want to reword that from "move them out" as that really doesn't say nearly enough to anyone. Be specific:

    ...you will need to move them to the root object of the settings.json.

  9. DHowett-MSFT commented on Apr 23, 2020

    @DHowett-MSFT
    ContributorAuthor

    Bojan Markovic (@bmarkovic) that’s a great suggestion, thank you. I appreciate that you edited your comment.

  10. bmarkovic commented on Apr 23, 2020

    @bmarkovic

    In my particular case this didn't restore functionality of keybindings, did something change about the format (or the JSON key name)?

  11. 61 remaining items

  12. DHowett-MSFT commented on May 12, 2020

    @DHowett-MSFT
    ContributorAuthor

    (There are three independent copy flags. copyOnSelect determines whether text is copied when you release the left mouse button, copyFormatting determines whether text is copied with color information and singleLine determines whether all newlines are deleted, even if they were intentional.)

  13. pecigonzalo commented on May 12, 2020

    @pecigonzalo

    Dustin L. Howett (MSFT) (@DHowett-MSFT) I understand that to be the case regarding the different options, but it seems then there is a bug that affect that and its "fixed" by setting copyFormatting to true.

    Repro for me is really simple for me and I can even dynamically toggle that and have it broken/fixed.

    ~
    ❯ echo this is a really long command that shouldnotbe breaking when copy paste
    this is a really long command that shouldnotbe breaking when copy paste
    
    ~
    ❯ echo this is a really long command that shouldnotbe breakin
    
    this is a really long command that shouldnotbe breakin
    
    ~
    ❯ g when copy paste
    git: 'when' is not a git command. See 'git --help'.
    
    The most similar commands are
            clean
            clone
            prune
            shell
    
    ~
    ❯
    

    As you can see on that output, the line when pasted is split into multi line and ran as 2 commands.

    • Type a really long line that breaks to multi-line in your console (or make a smaller console)

    • Select text

    • Paste as ctrl+shif+v or ctrl-v or right click or whatever is your paste

    • It runs 2 commands

    • Toggle copyFormatting to true

    • Do the same

    • Does not break

    Please note im not copying with ctrl+c or ctrl+shift+c but with copy on select.

    For reference, this is my relevant config:

    {
      "$schema": "https://aka.ms/terminal-profiles-schema",
      "defaultProfile": "{01751d96-d6f8-573f-8029-e581f2f7c955}",
      "copyFormatting": false,
      "profiles": {
        "defaults": {
          "historySize": 9001,
          "fontFace": "Fira Code",
          "fontSize": 12,
          "useAcrylic": true,
          "acrylicOpacity": 0.85
        },
        "list": [
          ...
        ]
      },
      "schemes": [
        ...
      ],
      "keybindings": [
        {
          "command": {
            "action": "copy",
            "singleLine": true
          },
          "keys": "ctrl+c"
        },
        {
          "command": {
            "action": "adjustFontSize",
            "delta": -1
          },
          "keys": "ctrl+-"
        },
        {
          "command": {
            "action": "adjustFontSize",
            "delta": 1
          },
          "keys": "ctrl+="
        }
      ]
    }
    
  14. pecigonzalo commented on May 12, 2020

    @pecigonzalo

    Ok, oddly enough while I just did this while creating this comment and it caused the output I pasted (broken line) and it happened multiple times since the update. I just ran it once again after, just to check other cases and it worked correctly, which has me really confused now.

  15. EverlyScott commented on May 17, 2020

    @EverlyScott

    Any reason why we haven't gotten a GUI for changing settings yet?

  16. DHowett commented on May 17, 2020

    @DHowett
    Member

    @ScribbleNerd because that will take months of work that we couldn't complete until we nailed the basics of actually being a terminal? That work is being tracked in #1564.

  17. exitdown commented on May 17, 2020

    @exitdown

    yeah not meaning to sound condescending but its a cli tool for cli competent people, so it makes far more sense to work on the core functionality and cli user features rather than trying to make it easy point and click to make pretty - at least until all the main things are done, upvote for html link handler haha

  18. added a commit that references this issue on May 20, 2020
  19. ashishpawar517 commented on May 22, 2020

    @ashishpawar517

    I only changed the default profile to cmd.exe in last version. then today after update it showing me global deprecated error over and over again.

  20. warpdesign commented on Jun 1, 2020

    @warpdesign

    How about automatically converting the file if older format is detected: seeing the format changes it appears to be possible.

    Seeing how full of comments is this issue I think this could solve problems for a lot of people.

  21. gareth-a-jones commented on Jun 10, 2020

    @gareth-a-jones

    Got to say, I found this extremely jarring for a product that that is at GA status.
    Auto-migrating such things seems a pretty bare minimum for a breaking change release.

  22. DHowett commented on Jun 10, 2020

    @DHowett
    Member

    is at GA status

    Only people who were using the Preview build will encounter breaking changes. The preview build was offered with no warranties (express or implied.)

    I’m sorry it was jarring. Settings migration is planned for any updates to the stable channel that require settings model changes.

  23. locked as resolved and limited conversation to collaborators on Jul 9, 2020
  24. ghost added
    Needs-Tag-Fix
    on Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-SettingsIssue-QuestionNeeds-Tag-FixProduct-Terminal

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions