uhnomoli / PHP-Twig.tmbundle

A TextMate (and Sublime Text) bundle for Twig.
Other
400 stars 122 forks source link

Failed to load snippets #69

Open polalegria opened 6 years ago

polalegria commented 6 years ago

Hi,

When open atom with PHP-Twig appear this alert message:

Failed to load snippets from '/Users/polalegria/.atom/packages/language-twig/snippets/PHP-twig.cson'
/Users/polalegria/.atom/packages/language-twig/snippets/PHP-twig.cson: Duplicate key 'include'

Any suggestions? Thanks in advance.

eivindml commented 5 years ago

Did you figure anything out? Have the same issue, and tried to delete and reinstall the plugin.

CuriousCactus commented 5 years ago

I went to:

/Users/myname/.atom/packages/language-twig/snippets/PHP-twig.cson

and found that there were two sections called 'include'

I removed the following lines:

  'include':
    'prefix': 'include'
    'body': '{% include \'${1:template}\' ${2:with ${3:vars}${4: only}} %}$0'

and I stopped getting the error on opening a new project.

Hope this helps!