What happened to yaml editing in 2018?

Answered

There seems to be some very different behavior's wrt to yaml in 2018. For example

given

- name: Check for foobar
  fail: msg="..."
  when: check == true

With the cursor at the 'n' in name, hit return, I would expect the result to be

- 
  name: Check for foobar
  fail: msg="..."
  when: check == true

But instead it is this with the cursor still just before the 'n' in name

  name: Check for foobar
  fail: msg="..."
  when: check == true

Super annoying. Is this a bug or some new assumption on syntax?

0
3 comments
Avatar
Permanently deleted user

Here's another example

I have

  tasks:
    - include_tasks: ../tenant/_vimana-config-repo.yml

The cursor is on the end of the `-include_tasks` line. I hit enter and get

  tasks:
    - include_tasks: ../tenant/_vimana-config-repo.yml
      -

When I expect

  tasks:
    - include_tasks: ../tenant/_vimana-config-repo.yml
0
Avatar
Permanently deleted user

Thanks Serge

0

Please sign in to leave a comment.