yaegassy / coc-ansible

ansible-language-server extension for coc.nvim
https://www.npmjs.com/package/@yaegassy/coc-ansible
MIT License
71 stars 3 forks source link

Unable getting it work #31

Closed havenokarma closed 1 year ago

havenokarma commented 1 year ago

Hello, Getting error when trying to use extension

>>- name: Task name
   $ref '%2F%24defs%2Ftasks' in 'https://raw.githubusercontent.com/ansible/
   ansible-lint/main/src/ansiblelint/schemas/ansible.json' can not be resolved.
   (YAML 768)
yaegassy commented 1 year ago

Thanks for reporting the issue. I think this is probably an issue on the ansible-lint repository side.

Please report issues to ansible-lint.

https://github.com/ansible/ansible-lint

yaegassy commented 1 year ago

I have tried it in my environment. It works fine in my environment and I cannot reproduce the problem.

coc-ansible-issue-31-check-1

Does the problem persist now in your environment?

havenokarma commented 1 year ago

Thanks for a quick reply! Hence, it's something with my personal setup, issue can be closed.

do3cc commented 7 months ago

I have had the same problem and needed quite some time to find the root cause. @yaegassy your support in another ticket with the minimum test setup help a lot, thank you! When I got the error described above, I missed the filemapping from the docs:

let g:coc_filetype_map = {
  \ 'yaml.ansible': 'ansible',
  \ }

The docs are clear, but I somehow interpreted this as an install another plugin OR do the mapping. Adding the mapping makes it work.