-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Draft 2019-09 schemas are not yet fully supported terminal in settings,json #7683
Comments
The schema error has no bearing on whether Terminal actually supports your settings. Can you share the rest of your |
If I had to guess, I'd say you are using Windows PowerShell x86 and running into #7418. Don't make me guess. |
The schema was upgraded to draft 2019-09 in 06b50b4 (#6891), presumably to allow This rationale in the commit message looks odd, though:
Because the |
Fair. It's also been a year, so I'm surprised that our modern auto-updating text editor still carps about it. 😀 |
@DHowett You are correct while I am using Powershell syntax highlighting is working fine but it is not the case for other like Ubuntu, Cmd and Azure // This file was initially generated by Windows Terminal 1.2.2381.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// 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",
"defaultProfile": "{2c4de342-38b7-51cf-b940-2309a097f518}",
"copyOnSelect": true,
"copyFormatting": false,
"profiles":
{
"list":
[
{
"guid": "{2c4de342-38b7-51cf-b940-2309a097f518}",
"hidden": false,
"name": "Ubuntu",
"source": "Windows.Terminal.Wsl",
"colorScheme": "Andromeda",
"startingDirectory": "C:/Users/UDIT SWAROOPA/OneDrive/UNIX"
},
{
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"name": "Windows PowerShell",
"commandline": "powershell.exe",
"hidden": false
},
{
"guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
"name": "Command Prompt",
"commandline": "cmd.exe",
"hidden": false
},
{
"guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
"hidden": false,
"name": "Azure Cloud Shell",
"source": "Windows.Terminal.Azure"
}
]
},
"schemes": [
{
"name": "Andromeda",
"black": "#090300",
"red": "#db2d20",
"green": "#01a252",
"yellow": "#fded02",
"blue": "#01a0e4",
"purple": "#a16a94",
"cyan": "#b5e4f4",
"white": "#a5a2a2",
"brightBlack": "#5c5855",
"brightRed": "#e8bbd0",
"brightGreen": "#3a3432",
"brightYellow": "#4a4543",
"brightBlue": "#807d7c",
"brightPurple": "#d6d5d4",
"brightCyan": "#cdab53",
"brightWhite": "#f7f7f7",
"background": "#090300",
"foreground": "#a5a2a2"
}
],
"keybindings":
[
{ "command": {"action": "copy", "singleLine": false }, "keys": "ctrl+c" },
{ "command": "paste", "keys": "ctrl+v" },
{ "command": "find", "keys": "ctrl+shift+f" },
{ "command": { "action": "splitPane", "split": "auto", "splitMode": "duplicate" }, "keys": "alt+shift+d" }
]
} |
The default shell in Ubuntu, |
I'm not seeing any syntax highlighting. That's just a colored prompt. Can you share a screenshot of what it looks like now, when it is not working? |
So the schema error pops up regardless if you have a default settings.json or a customized one. I'm not sure why it shows up but might be VS Code related since it wasn't an issue before. I can also confirm the color prompt issue as well (but for ssh, not WSL). That may be better filed separately though. |
I guess the schema warnings started on 14 July 2020 when #6891 was merged, even for those users who did not install newer versions of Windows Terminal. Related: microsoft/vscode#98724 |
Alright so the schema thing seems like a red herring to me. That's not going to be the cause of the colors not working in the terminal. Looks like for whatever reason, you color scheme isn't getting applied. @uditswaroopa What version of the terminal are you using? |
Hey, @zadjii-msft, I don't think so the schema is not applying because the schema is working fine when I am in Powershell, also I made no changes with the settings.json file this warning popped up all of a sudden. Btw this is my version 1.3.2651.0 |
@uditswaroopa, you could try changing to Regarding the prompt colors, I think the declare -p BASH_VERSION PS1 TERM
echo $- |
Wait lets make sure to clear something up: "schema" != "scheme". "schema" refers to the json schema, which provides some metadata on the json settings that editors like VsCode can use to provide error checking and autocomplete. "scheme" refers to "color scheme", as in the set of colors that the Terminal uses to draw text with. I concur with @KalleOlaviNiemitalo - could you run those commands? |
Hello, @KalleOlaviNiemitalo thanks for the light on the issue the warning has gone which proves both are different issues. |
It looks like you're hitting this particularly plain bit of Debian's default bash configuration:
"non-color". It might be worthwhile to run Alternatively, you may have added a It's complicated, for sure, but not something Terminal broke. |
Just change |
@fxzxmic do you mean you have |
Set schema in |
@KalleOlaviNiemitalo In fact, I just answered the author's questions, and I didn't study the deep technical details. After all, for warnings that just need to be removed from VSCODE, this is only the result of the URL not being updated in time. |
You can do that too, but the URL is too long. 🤣 |
It's just a copy and paste.....plus that ensures you get the latest updates for the schema, in case the shortened URL isn't updated. For example, I made an update yesterday that shows there now. |
Well, you're right. |
Hmm. This link is supposed to track the state of the schema at the time that we made the stable release. I can backport the schema version change to it, but I cannot wholesale update it to be the latest version as it would contain settings that do not work in (current stable version) 1.8. |
Does that mean it also contains settings that don't work in version 1.9? Because it's the same in 1.9 and 1.8.
But for VScode, it needs https://json-schema.org/draft/2020-12/schema# . So is VScode too far ahead?
|
That just means that we didn't get a fix for us using an unacceptable version of the json-schema draft schema in time for 1.9. 😄 |
Everything was fine till yesterday, today all of a sudden I noticed my custom windows terminal theme showed just two colors the primary background color and font color as white for every word. Then I hover over my settings.json file I saw warning popping up in
$schemas: "https://aka.ms/terminal-profiles-schema" with warning "Draft 2019-09 schemas are not yet fully supported terminal"
Everything is working fine except some words are not highlighted in a different color, which earlier was working fine.
The text was updated successfully, but these errors were encountered: