question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

azure - Error with schema and VS Studio Code

See original GitHub issue

Describe the bug I tried a lot of times even with different schemas but I always receive: [Error - 1:15:59 PM] Request textDocument/completion failed. Message: Request textDocument/completion failed with message: Cannot read property '$ref' of null Code: -32603 or Unable to parse content from '(working directory deleted for issue reporting but file is there)\schemu.json': Parse error at offset 0.

To Reproduce $ python3 -m venv custodian $ source custodian/bin/activate (custodian) $ pip install c7n (custodian) $ pip install c7n_azure custodian schema --json > schema.json

Expected behavior Auto completion working in VS Studio Code

Background (please complete the following information):

  • OS: W10
  • Python Version: 3.9 but tried with 3.8 too
  • Custodian Version: 0.9.6
  • Cloud Provider: aws and azure

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
kapiltcommented, Oct 20, 2020

through a lot of trial and error i was able to narrow this down to the logic app action which appears to have a broken schema.

1reaction
jtroberts83commented, Oct 16, 2020

Thanks so much for taking this into account. Really appreciate the effort and work on this project 😃 @gussj I worked on this last night and found the issue to be within the c7n_azure tool. If I uninstalled c7n_azure and then outputted my schema.json for VS Code it works. Not sure what exactly in the Azure schema is causing an issue but if you want to get it working for AWS and GCP now you can, we just need to further investigate the azure issue piece

Read more comments on GitHub >

github_iconTop Results From Across the Web

VSCode Error with Schema for Azure DevOps Yaml extension
I figured out what was wrong in the end for some reason in my settings VSCode can not resolve: "http://www.schemastore.org/json/composer".
Read more >
YAML Schema Validation reports incorrect errors for if conditions
For an Azure Devops pipeline where there is a valid condition (e.g. it runs correctly) it is reporting a validation error in the...
Read more >
Quickstart: Use Visual Studio Code to connect and query
In Visual Studio Code, press Ctrl+Shift+P (or F1) to open the Command Palette. · Select MS SQL:Connect and choose Enter. · Select Create ......
Read more >
JSON Schema Store
JSON Schemas for common JSON file formats. ... In supported JSON editors like Visual Studio and Visual Studio Code, schema files can offer...
Read more >
Updating ARM schema & apiVersion values - Pasi Huuhka
... the wonderful Azure Resource Manager Tools for Visual Studio Code extension ... (And finally make it stop complaining about the issue) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found