{"action":"created","issue":{"url":"https://api.github.com/repos/acquia/blt/issues/737","repository_url":"https://api.github.com/repos/acquia/blt","labels_url":"https://api.github.com/repos/acquia/blt/issues/737/labels{/name}","comments_url":"https://api.github.com/repos/acquia/blt/issues/737/comments","events_url":"https://api.github.com/repos/acquia/blt/issues/737/events","html_url":"https://github.com/acquia/blt/issues/737","id":193303828,"number":737,"title":"Twig Linting doesn't recognize Drupal functions/filters/etc","user":{"login":"dpagini","id":1724163,"avatar_url":"https://avatars3.githubusercontent.com/u/1724163?v=4","gravatar_id":"","url":"https://api.github.com/users/dpagini","html_url":"https://github.com/dpagini","followers_url":"https://api.github.com/users/dpagini/followers","following_url":"https://api.github.com/users/dpagini/following{/other_user}","gists_url":"https://api.github.com/users/dpagini/gists{/gist_id}","starred_url":"https://api.github.com/users/dpagini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpagini/subscriptions","organizations_url":"https://api.github.com/users/dpagini/orgs","repos_url":"https://api.github.com/users/dpagini/repos","events_url":"https://api.github.com/users/dpagini/events{/privacy}","received_events_url":"https://api.github.com/users/dpagini/received_events","type":"User","site_admin":false},"labels":[{"id":365209873,"url":"https://api.github.com/repos/acquia/blt/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":{"login":"grasmash","id":539205,"avatar_url":"https://avatars0.githubusercontent.com/u/539205?v=4","gravatar_id":"","url":"https://api.github.com/users/grasmash","html_url":"https://github.com/grasmash","followers_url":"https://api.github.com/users/grasmash/followers","following_url":"https://api.github.com/users/grasmash/following{/other_user}","gists_url":"https://api.github.com/users/grasmash/gists{/gist_id}","starred_url":"https://api.github.com/users/grasmash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grasmash/subscriptions","organizations_url":"https://api.github.com/users/grasmash/orgs","repos_url":"https://api.github.com/users/grasmash/repos","events_url":"https://api.github.com/users/grasmash/events{/privacy}","received_events_url":"https://api.github.com/users/grasmash/received_events","type":"User","site_admin":false},"assignees":[{"login":"grasmash","id":539205,"avatar_url":"https://avatars0.githubusercontent.com/u/539205?v=4","gravatar_id":"","url":"https://api.github.com/users/grasmash","html_url":"https://github.com/grasmash","followers_url":"https://api.github.com/users/grasmash/followers","following_url":"https://api.github.com/users/grasmash/following{/other_user}","gists_url":"https://api.github.com/users/grasmash/gists{/gist_id}","starred_url":"https://api.github.com/users/grasmash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grasmash/subscriptions","organizations_url":"https://api.github.com/users/grasmash/orgs","repos_url":"https://api.github.com/users/grasmash/repos","events_url":"https://api.github.com/users/grasmash/events{/privacy}","received_events_url":"https://api.github.com/users/grasmash/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-12-03T17:53:31Z","updated_at":"2018-05-11T02:25:37Z","closed_at":"2016-12-05T19:30:25Z","author_association":"CONTRIBUTOR","body":"My system information:\r\n* Operating system type: OSX\r\n* Operating system version: 10.12.1\r\n* BLT version: 8.6.0-beta1\r\n\r\nOutput of `blt doctor`:\r\n```\r\n+--------------------------+---------------------------------------------------------------------------------+\r\n| Check                    | Outcome                                                                         |\r\n+--------------------------+---------------------------------------------------------------------------------+\r\n| checkDocrootExists       | Found docroot.                                                                  |\r\n| checkCoreExists          | Drupal core exists                                                              |\r\n| checkSettingsFile        | BLT settings are included in settings file.                                     |\r\n| checkLocalSettingsFile   | Found your local settings file.                                                 |\r\n| checkLocalDrushFile      | Found your local drush settings file.                                           |\r\n| checkUri                 | $options['uri'] is set.                                                         |\r\n| checkUriResponse         | Received a response from site local.mysite.com.                       |\r\n| checkFileSystem:%files   | Public files directory is writable.                                             |\r\n| checkFileSystem:%private | Private files directory is not set.                                             |\r\n| checkFileSystem:%temp    | Temporary files directory is writable.                                          |\r\n| checkDbConnection        | Connected to database.                                                          |\r\n| checkDrupalBootstrapped  | Bootstrapped Drupal via drush.                                                  |\r\n| checkDrupalInstalled     | Drupal is installed.                                                            |\r\n| checkCaching:page        | Drupal cache is disabled.                                                       |\r\n| checkCaching:css         | CSS preprocessing is disabled.                                                  |\r\n| checkCaching:js          | JS preprocessing is disabled.                                                   |\r\n| checkNvmExists           | NVM does not exist.                                                             |\r\n|                          |                                                                                 |\r\n|                          | It is recommended that you use NVM to manage multiple versions of NodeJS on one |\r\n|                          | machine.                                                                        |\r\n|                          | Instructions for installing NVM can be found at:                                |\r\n|                          |   https://github.com/creationix/nvm#installation                                |\r\n| checkCiConfig            | Git remotes are set in project.yml.                                             |\r\n| checkComposer:require    | acquia/blt is in composer.json's require object.                                |\r\n| checkComposer:plugins    | hirak/prestissimo plugin for composer is installed.                             |\r\n| checkBehat:exists        | Behat local settings file exists.                                               |\r\n| checkProjectYml:keys     | project.yml has no deprecated keys.                                             |\r\n| checkPhpDateTimezone     | PHP setting for date.timezone is correctly set                                  |\r\n+--------------------------+---------------------------------------------------------------------------------+\r\n```\r\n\r\nWhen I run this command:\r\n```\r\ngit commit -m \"Some commit message\"\r\n```\r\n\r\nI get the following output:\r\n```\r\n      11      */\r\n      12     #}\r\n  >>  13     <img{{ attributes|without('height','width') }} />\r\n  >> Unknown \"without\" filter. \r\n      14     \r\n  ERROR  in /Users/dpagini/Websites/mysite/docroot/themes/custom/mytheme/templates/layout/html.html.twig (line 27)\r\n```\r\n\r\nAnd I expected this to happen:\r\nThis is a valid Drupal twig filters, so they should be recognized as such.\r\n\r\nApologies 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 as `without`. 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.\r\n"},"comment":{"url":"https://api.github.com/repos/acquia/blt/issues/comments/388240761","html_url":"https://github.com/acquia/blt/issues/737#issuecomment-388240761","issue_url":"https://api.github.com/repos/acquia/blt/issues/737","id":388240761,"user":{"login":"brooke-heaton","id":19474864,"avatar_url":"https://avatars1.githubusercontent.com/u/19474864?v=4","gravatar_id":"","url":"https://api.github.com/users/brooke-heaton","html_url":"https://github.com/brooke-heaton","followers_url":"https://api.github.com/users/brooke-heaton/followers","following_url":"https://api.github.com/users/brooke-heaton/following{/other_user}","gists_url":"https://api.github.com/users/brooke-heaton/gists{/gist_id}","starred_url":"https://api.github.com/users/brooke-heaton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brooke-heaton/subscriptions","organizations_url":"https://api.github.com/users/brooke-heaton/orgs","repos_url":"https://api.github.com/users/brooke-heaton/repos","events_url":"https://api.github.com/users/brooke-heaton/events{/privacy}","received_events_url":"https://api.github.com/users/brooke-heaton/received_events","type":"User","site_admin":false},"created_at":"2018-05-11T02:25:37Z","updated_at":"2018-05-11T02:25:37Z","author_association":"CONTRIBUTOR","body":"Not sure if this is related, but I'm getting this error because I'm using twig_tweak:\r\n\r\n```\r\n  ERROR  in /Users/brookeheaton/Sites/naswa/docroot/themes/custom/naswa/templates/paragraph/paragraph--landing-teaser.html.twig (line 10)\r\n      8              {% set nid = content.field_shortcut_url.0['#plain_text'] %}\r\n      9              {% set slink = \"node/\" ~ nid %}\r\n  >>  10             {% set stitle = drupal_field('title', 'node', nid) %}\r\n  >> Unknown \"drupal_field\" function. \r\n      11     {% endif %}\r\n      12     \r\n\r\n```"}}
{"actor":{"display_login":"brooke-heaton"}}