pearofducks / ansible-vim

A vim plugin for syntax highlighting Ansible's common filetypes
MIT License
800 stars 98 forks source link

UltiSnips generation fails #58

Closed chauncey-garrett closed 6 years ago

chauncey-garrett commented 6 years ago

I get this when installing the snippets:

Traceback (most recent call last):
  File "generate.py", line 99, in <module>
    for document in get_documents():
  File "generate.py", line 17, in get_documents
    documentation = plugin_docs.get_docstring(os.path.join(root, f))[0]
TypeError: get_docstring() takes at least 2 arguments (1 given)

ansible is v2.5.

pearofducks commented 6 years ago

Can you try the fix-generate-against-2.5 branch?

cyberang3l commented 6 years ago

I can confirm the fix in branch fix-generate-against-2.5 works for ansible v2.5.

pearofducks commented 6 years ago

Thanks @cyberang3l - much appreciated!