Ctrl+click completion for file paths in twig function

Hello,

The file path in twig function doesn't match with CTRL+Click. It is not recognize by IDE like path.
It works in php with include/require function.
Root resource directory is marked.

is there additionnal parameter to do in order to navigate with this file please ?

3 comments
Comment actions Permalink

Hello Gregory,

Please try installing Symfony plugin, it should greatly extend the Twig support within IDE:
https://plugins.jetbrains.com/plugin/7219-symfony-support/

0
Comment actions Permalink

hello Vasily, I have symfony plugin and ide doesn't understant path between quotes. Twig function 'include_js' is customized with path parameter.

0
Comment actions Permalink

Hello,

Unfortunately, I was not able to find a way to make it work. Here is a similar request that I have managed to find, it seems to be that autocompletion and path resolution in functions does not work:
https://youtrack.jetbrains.com/issue/WI-45871

I also guess that it could be a nice feature request for the Symfony plugin but I cannot find any similar requests on their issue tracker:
https://github.com/Haehnchen/idea-php-symfony2-plugin/issues

0

Please sign in to leave a comment.