Skip to content
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

Error loading Schemas #536

Closed
StevonixDev opened this issue Mar 14, 2020 · 6 comments
Closed

Error loading Schemas #536

StevonixDev opened this issue Mar 14, 2020 · 6 comments

Comments

@StevonixDev
Copy link

Hi,

When initializing the extension following errors are written to the log. I have tried to Reload Cached Schemas and have manually deleted .local/share/Microsoft/ARMLanguageServer but none worked.
This error prevents the plugin to function properly.

MacOS: 10.15.3 (19D76)
Version: 1.43.0
Commit: 78a4c91400152c0f27ba4d363eb56d2835f9903a
Date: 2020-03-09T19:34:44.548Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 19.3.0

[Error - 9:21:25 PM] Unexpected: no 'oneOf' member found in 'https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json'
[Info - 9:21:25 PM] Finding descriptor for initialize
[Info - 9:21:26 PM] Starting: Routing Request (0) initialize
[Info - 9:21:26 PM] Converting params for Request (0) initialize to OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeParams
[Info - 9:21:26 PM] Result was System.Threading.Tasks.Task`1[[OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeResult, OmniSharp.Extensions.LanguageProtocol, Version=0.12.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]]
[Info - 9:21:26 PM] Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeResult
[Info - 9:21:26 PM] Finished: Routing Request (0) initialize in 132ms
[Info - 9:21:26 PM] Finding descriptor for initialized
[Info - 9:21:26 PM] Finding descriptor for workspace/didChangeConfiguration
[Info - 9:21:26 PM] Starting: Routing Notification initialized
[Info - 9:21:26 PM] Converting params for Notification initialized to OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializedParams
[Info - 9:21:26 PM] logLevel set to Warning
[Error - 9:21:32 PM] Error loading schema: https://schema.management.azure.com/schemas/2019-10-01/Microsoft.StorageSync.json

[Error - 9:21:33 PM] Error loading schema: https://schema.management.azure.com/schemas/2018-02-01/Microsoft.Resources.json

[Error - 9:21:33 PM] Error loading schema: https://schema.management.azure.com/schemas/2015-11-01/Microsoft.Resources.json

[Error - 9:21:33 PM] Error loading schema: https://schema.management.azure.com/schemas/2020-02-01/Microsoft.ContainerService.json

[Error - 9:21:33 PM] Error loading schema: https://schema.management.azure.com/schemas/2020-03-01/Microsoft.Batch.json

[Error - 9:21:33 PM] Error loading schema: https://schema.management.azure.com/schemas/2019-11-01-preview/Microsoft.AppConfiguration.json

[Error - 9:21:33 PM] Error loading schema: https://schema.management.azure.com/schemas/2018-03-01-preview/Microsoft.SignalRService.json

[Error - 9:21:33 PM] Error loading schema: https://schema.management.azure.com/schemas/2019-12-01-preview/Microsoft.ApiManagement.json

[Error - 9:21:33 PM] Error loading schema: https://schema.management.azure.com/schemas/2019-05-10/Microsoft.Resources.json

[Error - 9:21:33 PM] Error loading schema: https://schema.management.azure.com/schemas/2016-10-10/Microsoft.ApiManagement.json

[Error - 9:21:33 PM] Error loading schema: https://schema.management.azure.com/schemas/2019-03-01/Microsoft.Resources.json

[Error - 9:21:33 PM] Error loading schema: https://schema.management.azure.com/schemas/2016-07-01/Microsoft.Resources.json

[Error - 9:21:33 PM] Error loading schema: https://schema.management.azure.com/schemas/2019-10-01-preview/Microsoft.Resources.json

[Error - 9:21:34 PM] Error loading schema: https://schema.management.azure.com/schemas/2019-10-01/Microsoft.AppConfiguration.json

[Error - 9:21:34 PM] Error loading schema: https://schema.management.azure.com/schemas/2020-04-01-preview/Microsoft.EventGrid.json

[Error - 9:21:34 PM] Error loading schema: https://schema.management.azure.com/schemas/2020-03-01/Microsoft.DocumentDB.json

[Error - 9:21:34 PM] Error loading schema: https://schema.management.azure.com/schemas/2020-01-01-preview/Microsoft.EventGrid.json

[Error - 9:21:34 PM] Error loading schema: https://schema.management.azure.com/schemas/2019-10-27-preview/Microsoft.ContainerService.json

@neilpeterson
Copy link
Contributor

Thanks for opening this issue, we are investigating.

@neilpeterson
Copy link
Contributor

@StevonixDev we are still working on this and have recently cleared the cache on the content delivery network (CDN) for the schemas. Can you try again to reload the schema cache and let us know the results?

Thanks

@StevonixDev
Copy link
Author

StevonixDev commented Mar 21, 2020

Hi ,

thanks for working on my request. This plugin would really help me.
Sorry to say it is still not working. (If I call the schema file manually I can load it, so I guess it is not my connection, proxy or so...)

This is what I tried:
-I reloaded the cached schemas in with the VS Code

Results in the Terminal VS Code Output:

[Error - 2:56:17 PM] Unexpected: no 'oneOf' member found in 'https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json'
[Error - 2:56:17 PM] Unexpected: no 'oneOf' member found in 'https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json'
[Info - 2:56:17 PM] Finding descriptor for initialize
[Info - 2:56:18 PM] Starting: Routing Request (0) initialize
[Info - 2:56:18 PM] Converting params for Request (0) initialize to OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeParams
[Info - 2:56:19 PM] Result was System.Threading.Tasks.Task`1[[OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeResult, OmniSharp.Extensions.LanguageProtocol, Version=0.12.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]]
[Info - 2:56:19 PM] Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeResult
[Info - 2:56:19 PM] Finished: Routing Request (0) initialize in 260ms
[Info - 2:56:19 PM] Finding descriptor for initialized
[Info - 2:56:19 PM] Finding descriptor for workspace/didChangeConfiguration
[Info - 2:56:19 PM] Starting: Routing Notification initialized
[Info - 2:56:19 PM] Converting params for Notification initialized to OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializedParams
[Info - 2:56:20 PM] logLevel set to Warning
[Error - 2:56:24 PM] Error loading schema: https://schema.management.azure.com/schemas/2019-05-10/Microsoft.Resources.json
.....
The $schema property gets marked as squiggly and mouse over shows:
There are problems with this document's schema impacting one or more items in the document

The VS Code Problems tab shows:
There are problems with this document's schema impacting one or more items in the document

regards
Stefan

@neilpeterson
Copy link
Contributor

@StevonixDev we have identified the problem and have a fix in the works. I will update early next week with status.

@neilpeterson
Copy link
Contributor

@StevonixDev fix is complete. We are preparing a hot fix release now which should be out within the coming days.

@StephenWeatherford
Copy link
Contributor

Hotfix 0.8.5 is live. Thanks for reporting!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants