-
Notifications
You must be signed in to change notification settings - Fork 268
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
Relative path schema loading #154
Comments
Hmm, I'm guessing you created a *.vsix file with master of YAML language server and master of VSCode-YAML? Or are you using a different editor? If yes, is this commit in the vsix? |
That's pretty much it. Indeed, I have the latest commit in my working tree, so the commit you mention is included. I've found that the error is caused by this call in
when jsonSchemas contains relative paths. I think the trouble might have been introduced by this commit, specifically by the changes to |
The last commit fixes the errors, but there might some underlying issues with autocomplete. For my YAML files, auto completion is not giving any suggestions (although hovering works). |
Is it possible for you to post the schema? Its probably an issue inside of the autocompletor somewhere or when the schema is set. Autocompletion is the only feature we don't use https://www.npmjs.com/package/vscode-json-languageservice for |
Looks like this issue was being caused by my schema. The relative path loading patch should be enough to fix the schema loading errors. The fact that my schema was the culprit, revealed another issue - even though I had fixed the schema in the editor, the schema content was not reloaded after it was changed on disk. Only after closing and re-opening VS Code did the changes take effect. This But this still was not enough, now schema changes were picked up, but content was still not reloaded. |
With a custom schema configuration in the workspace, such as
The schema fails to load with the output message:
This does not happen with the npm v0.4.1 yaml-language-server package, only with the latest GitHub build
The text was updated successfully, but these errors were encountered: