PHP-Twig.tmbundle icon indicating copy to clipboard operation
PHP-Twig.tmbundle copied to clipboard

Failed to load snippets

Open polalegria opened this issue 6 years ago • 2 comments

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.

polalegria avatar Sep 06 '18 13:09 polalegria

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

eivindml avatar May 07 '19 07:05 eivindml

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!

CuriousCactus avatar Jul 24 '19 10:07 CuriousCactus