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

Twig macro autocompletion not working as advertised #924

Closed
Danita opened this issue May 4, 2017 · 4 comments
Closed

Twig macro autocompletion not working as advertised #924

Danita opened this issue May 4, 2017 · 4 comments
Labels

Comments

@Danita
Copy link

Danita commented May 4, 2017

Hi! Thanks for this wonderful plugin. I discovered the documentation says it supports twig macro autocompletion but it never worked in any of my projects so far:

{% extends 'AppBundle::base.html.twig' %}
{% import 'AppBundle::macros.html.twig' as macros %}

{% block body %}
  <p>{{ macros.  // NO AUTOCOMPLETION HERE  }}</p>
{% endblock %}

Using v0.14.142

Thanks!

@Danita
Copy link
Author

Danita commented May 4, 2017

I just read this on the README

Many features require the app/cache/dev/appDevDebugProjectContainer.xml file to exist. It is generated when you boot your app in dev environment (open /app_dev.php in a browser or php app/console).

Could it be this? I'm using Vagrant, so I don't have the cache autogenerated files on my dev machine.

Also: PHPStorm 2017.1.3, Windows 7 x64.

@Danita
Copy link
Author

Danita commented May 4, 2017

Wasn't that. Downloaded the file from the VM and I now get services autocompletion, but still no macro autocomplete. 😭

@Haehnchen
Copy link
Owner

confirming this is not working. an untested feature that is broken by some previous Twig Plugin changes. 😭

@Danita
Copy link
Author

Danita commented May 8, 2017

Yeah, you rock! Thanks!! 🤘

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

No branches or pull requests

2 participants