"Yaml Support" log shows this error:
[Error - 6:11:37 PM] (node:2616) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code
and a lot of errors like this:
[Error - 6:11:37 PM] (node:2616) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): #<Object>
redhat.vscode-yaml v0.0.17
Window 10 v1809 x64
Version: 1.28.0
Commit: 431ef9da3cf88a7e164f9d33bf62695e07c6c2a9
Date: 2018-10-05T14:58:53.203Z
Electron: 2.0.9
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
Architecture: x64
Is there any specific action that makes the log show up?
The following triggers the errors:
yaml.schemas leads to error 2 in the logsChanging YAML or schema doesn't produce the errors.
I got these errors too
I get these errors once the extension, regardless of whether or not the file is valid Yaml.
I get the same error multiple time
I'm getting the same error, regardless of whether or not the file is valid or not.
It only happens when opening a YAML file, the first one.
My vscode version is 1.29, and running on MacOS Mojave
If there's any other information needed to pinpoint the issue, let me know.
The error pops up whenever I try to edit a file, regardless of file type.

Do you have something like autoformat or something like that on? I'm having a hard time finding the issue because I cannot reproduce
I disabled the Vim plugin, and it no longer pops up.
Both plugins have plenty users, I shouldn't be the first one to encounter this... I did some customization to the vim plugin though, not sure if related...
I don't have vim plugin installed tho.
Maybe do you know what are the customization of your Vim plugin?
vim plugin specific:
{
"vim.hlsearch": true,
"vim.leader": "<space>",
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": ["leader", "w"],
"commands": [
{
"args": [],
"command": "workbench.action.files.save"
}
]
}
],
"vim.useSystemClipboard": true,
"vim.statusBarColorControl": true,
}
full settings:
{
"editor.codeLens": false,
"editor.lineNumbers": "relative",
"editor.minimap.enabled": true,
"editor.minimap.showSlider": "always",
"editor.minimap.side": "left",
"editor.tabSize": 2,
"editor.wordWrap": "on",
"emmet.triggerExpansionOnTab": true,
"explorer.openEditors.visible": 0,
"git.enableSmartCommit": true,
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
"vim.hlsearch": true,
"vim.leader": "<space>",
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": ["leader", "w"],
"commands": [
{
"args": [],
"command": "workbench.action.files.save"
}
]
}
],
"vim.useSystemClipboard": true,
"window.title": "${dirty}${activeEditorShort}${separator}${activeEditorMedium}",
"workbench.colorTheme": "One Dark Pro",
"workbench.startupEditor": "newUntitledFile",
"explorer.confirmDelete": false,
"window.titleBarStyle": "custom",
"typescript.updateImportsOnFileMove.enabled": "never",
"emmet.showExpandedAbbreviation": "inMarkupAndStylesheetFilesOnly",
"editor.fontSize": 15,
"javascript.updateImportsOnFileMove.enabled": "never",
"vim.statusBarColorControl": true,
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
// "node_modules": true
},
"workbench.colorCustomizations": {
"statusBar.background": "#5f00af",
"statusBar.noFolderBackground": "#5f00af",
"statusBar.debuggingBackground": "#5f00af"
},
"breadcrumbs.enabled": true,
"git.autofetch": true,
"explorer.confirmDragAndDrop": false,
"javascript.implicitProjectConfig.experimentalDecorators": true,
"extensions.ignoreRecommendations": true
}
@JPinkney I do have auto-save and auto-format on
Same issue here. Only other extension is Bash Beautify.
Plugin version 0.3.0
Version: 1.31.1 (user setup)
Commit: 1b8e8302e405050205e69b59abb3559592bb9e60
Date: 2019-02-12T02:20:54.427Z
Electron: 3.1.2
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT x64 10.0.17134
Thanks everyone for the debugging info! I haven't found the cause yet but all the diagnostics everyone gave should give me a few places to look!
+1
If I may, I have the same issue with a french os.
It might not be the issue, but it is an issue with so many tools, that I feel obligated to share ;)
I've seen this happening in an environment where my access to the json schema server is blocked (due to firewall or vpn) and "yaml.schemaStore.enable": true.
I believe the extension is trying to download some schemas from the json schema server automatically and failing.
I was able to use local schemas using the file protocol and "yaml.schemas" variable. In that case the extension worked just fine.
The solution could be as simple as fixing proxy settings or any other connectivity issue.
I believe I was finally able to solve the issue! It was a super simple fix too: https://github.com/redhat-developer/yaml-language-server/pull/183/files. it should be available in the next release
@JPinkney sorry, when you say "next release" is exactly which release of vscode?
Most helpful comment
I get these errors once the extension, regardless of whether or not the file is valid Yaml.