-
Notifications
You must be signed in to change notification settings - Fork 396
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 Linting doesn't recognize Drupal functions/filters/etc #737
Comments
I can also confirm I'm seeing this on |
Yup. Gotta dig into this. Not quite sure how to tell Twig about Drupal's custom filters and functions. |
Not sure if this is related, but I'm getting this error because I'm using twig_tweak:
|
per ^^^ drupal_field is a twig_tweak function: https://www.drupal.org/docs/8/modules/twig-tweak/cheat-sheet-8x-2x Do I need to override this somehow or is my build simply indefinitely broken? |
My system information:
Output of
blt doctor
:When I run this command:
I get the following output:
And I expected this to happen:
This is a valid Drupal twig filters, so they should be recognized as such.
Apologies if this was already reported, or even fixed, but I couldn't find another issue that reported the same thing. The twig linting does not recognize drupal twig function such as
path()
or filters such aswithout
. My commit was still successful, so I think this is just for information for now, but for this to be useful, I dont want to see these types of errors, or else the output here will just be ignored.The text was updated successfully, but these errors were encountered: