Skip to content

Incorrect resolution of twig template if it contains slashes #182

@shoomyth

Description

@shoomyth

Resolution doesn't work with the following notation:
{% extends 'MyBundle::_layout/content/profile.html.twig' %}
Says "Missing template"

If I change to
{% extends 'MyBundle:_layout:content/profile.html.twig' %}
"Missing" message disappears, but ctrl+mouseover throws an exception:

Null target element is returned by fr.adrienbrault.idea.symfony2plugin.templating.TwigTemplateGoToDeclarationHandler

If I change to
{% extends 'MyBundle:_layout/content:profile.html.twig' %}
it works, but on ctrl+mouseover there are 2 underlined parts - one before slash and the second after slash

phpstorm 131.487, plugin 0.10.32

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions