Twig error

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

Twig error

Postby jorrit » November 18th, 2018, 12:57 pm

The twig editor considers
Code: Select all
{% trans %}
an "unexpected token". The twig code is red underlined with on hover showing that error message. Is this desirable? If not, is this fixable (by PHP Tools, me, third party)?
jorrit
 
Posts: 21
Joined: March 26th, 2015, 8:08 am
Location: Amsterdam

Re: Twig error

Postby Michal Brabec » November 26th, 2018, 2:43 pm

Hi jorrit,
we would like to address your issue, but we would need a bigger code sample to determine the situation and fix it if necessary.
Could you please send us a sample file where does Twig determine the {% trans %} tag as unexpected?
Best regards,
Michal
Michal Brabec │ DEVSENSE s.r.o. │ @gMichalBrabecmichal.brabec@devsense.com
User avatar
Michal Brabec
 
Posts: 13
Joined: September 14th, 2016, 8:55 am

Re: Twig error

Postby Michal Brabec » November 29th, 2018, 9:12 am

Hi jorrit,
I have investigated the issue and the trans tag is part of the Symfony extension for Twig. We currently do not directly support this extension, but we are planning to add extensions in the future.
What extensions would you like to see the most in PHP Tools?
Thanks,
Michal
Michal Brabec │ DEVSENSE s.r.o. │ @gMichalBrabecmichal.brabec@devsense.com
User avatar
Michal Brabec
 
Posts: 13
Joined: September 14th, 2016, 8:55 am

Re: Twig error

Postby jorrit » January 12th, 2019, 9:17 am

Thanks for you explanation. (More) support for frequently used extensions in popular frameworks would be a great improvement indeed, but I don't have specific requests right now. Thanks again.
jorrit
 
Posts: 21
Joined: March 26th, 2015, 8:08 am
Location: Amsterdam


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 53 guests

cron

User Control Panel

Login

Who is online

In total there are 53 users online :: 0 registered, 0 hidden and 53 guests (based on users active over the past 5 minutes)
Most users ever online was 256 on March 28th, 2024, 9:42 am

Users browsing this forum: No registered users and 53 guests