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.

Support for multiple YAML documents in single file

See original GitHub issue

Some of my Kubernetes yaml files are in form of:

---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: web-deployment
...
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: userdirectory-deployment
...

it looks like the autocomplete/<kbd>Ctrl</kbd>+<kbd>space</kbd> is not working when there are multiple objects in a single yaml file.

Should this be supported?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
JPinkneycommented, Apr 12, 2018

No apologies needed. I’m just glad its working as expected 😄

1reaction
DazWilkincommented, Apr 12, 2018

Resolved 😦

I had a conflicting YAML extension (that I’d forgotten I had installed). I disabled all extensions and reinstalled redhat.vscode-yaml and it works as expected.

By a process of elimination, I identified djabraham.vscode-yaml-validation (link) as the conflicting extension.

When that’s disabled, everything WAI.

Apologies for wasting your time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ways of loading multiple YAML Documents in a single file.
Hi. Is it possible to load multiple YAML documents in a single file with a named reference in Snake YAML. e.g.: ---NM host1...
Read more >
Kubernetes: Merge Multiple YAML Files Into One
We would like a build a Multi Resource File from separate YAML files for Kubernetes. Let's create one using Kustomize! We can use...
Read more >
Support multiple yaml documents in the same file #24 - GitHub
Hello, How can I read multiple yaml documents from a single file ? Is that supported? In yaml, you can write multiple documents...
Read more >
python - How to parse a YAML file with multiple documents?
What I would like is for it to parse each of these documents as a separate object, perhaps all of them in the...
Read more >
OpenShift 4.8 Blog: Import Multiple YAML Files
Previously, on our Import YAML page, you could add only a single YAML entry at a time. Now, you can easily import multiple...
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