#Trying to import yaml for but nothing shows up.
1 messages · Page 1 of 1 (latest)
I don't know what other info I should I add but I think have all the dependencies and resources added.
Trying to import yaml for but nothing shows up.
apparently it's the indentation?
Right off the bat, I notice that your indentation is wrong. Highlight everything from Line 3 down to the last line of your code snippet. Then, press Tab twice.
YAML is very particular about its indentation.
Another option would have been to Add a Card, scroll to the bottom, choose Manual and then paste the code.
Ok thx I'll try it out I thought I had to learn all yaml indentation to do this lol.
You saved me alot of time
Just think of the indentation as sections. Everything indented to certain point is part of that section until it is indented differently (either forward two spaces or back two spaces.)
I just tried this and got this error
"Unable to parse YAML: YAMLException: bad indentation of a mapping entry (3:11) 1 | views: 2 | - title: Home 3 | type: vertical-stack ---------------^ 4 | cards: 5 | - type: horizontal-stack"
How do I fix this?
Can you provide a screenshot of your code? (Generally, screenshots of code is frowned upon around here, but I want to see it exactly how it looks on your screen.)
I forgot about the cards: section for the view. ```yaml
views:
- title: Title here
cards:- type: vertical-stack
cards:- type: horizontal-stack
- type: vertical-stack
I don't understand.
Sorry. I got my threads mixed up. Forget my last message and let's go with a screenshot of your code.