Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to load snippets #69

Open
polalegria opened this issue Sep 6, 2018 · 2 comments
Open

Failed to load snippets #69

polalegria opened this issue Sep 6, 2018 · 2 comments

Comments

@polalegria
Copy link

polalegria commented Sep 6, 2018

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
Copy link

eivindml commented May 7, 2019

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

@CuriousCactus
Copy link

CuriousCactus commented Jul 24, 2019

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants