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

Multiple documents in one yaml file #12122

Open
1 task done
wisniew opened this issue May 22, 2024 · 12 comments
Open
1 task done

Multiple documents in one yaml file #12122

wisniew opened this issue May 22, 2024 · 12 comments
Labels
defect [core label] language An umbrella label for all programming languages syntax behaviors yaml YAML data format support

Comments

@wisniew
Copy link

wisniew commented May 22, 2024

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

Having multiple yaml documents in one file, Zed marks the second document all in red with the information:

Source contains multiple documents; please use YAML.parseAllDocuments() at line 169, column 1: (MULTIPLE_DOCS)

Example of yaml file:

metadata:
  name: doc1
---
metadata:
  name: doc2
---
metadata:
  name: doc3

aur/zed-editor 0.135.2-1 on Arch Linux

Environment

Zed: v1.0.0 (Zed)
OS: Linux 1.0.0
Memory: 13.7 GiB
Architecture: x86_64

If applicable, add mockups / screenshots to help explain present your vision of the feature

image

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

No response

@wisniew wisniew added admin read Pending admin review defect [core label] triage Maintainer needs to classify the issue labels May 22, 2024
@JosephTLyons JosephTLyons added yaml YAML data format support language An umbrella label for all programming languages syntax behaviors and removed triage Maintainer needs to classify the issue admin read Pending admin review labels May 23, 2024
@MrHaroldA
Copy link

This makes working with Kubernetes yaml files pretty difficult ...

@ziermmar
Copy link

Failing Syntax Highlighting for multiple Yaml documents in one file is also occurring in the mac version, 0.145.1 in my case.

@yodatak
Copy link
Contributor

yodatak commented Jul 31, 2024

I have this issue too with flux2 yaml file

@yodatak
Copy link
Contributor

yodatak commented Jul 31, 2024

@yodatak
Copy link
Contributor

yodatak commented Jul 31, 2024

@h3adex
Copy link

h3adex commented Aug 14, 2024

Bump. Would be nice this fix this issue, since this makes working on kubernetes ressources diffcult.

@h3adex
Copy link

h3adex commented Aug 19, 2024

This bug seems fixed.

@simonccc
Copy link

I'm still observing this problem on mac Zed 0.149.5

@imleafz
Copy link

imleafz commented Aug 23, 2024

I'm still observing this problem on mac Zed 0.149.5

me too.

@weirdo-adam
Copy link

I'm still observing this problem on mac Zed Preview 0.153.1

@akashsokik
Copy link

same here, still observing this problem, is there a fix for this?

@weirdo-adam
Copy link

我仍然在 Mac Zed Preview 0.157.4 上观察到这个问题,有解决办法吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect [core label] language An umbrella label for all programming languages syntax behaviors yaml YAML data format support
Projects
None yet
Development

No branches or pull requests

10 participants