{"action":"created","issue":{"url":"https://api.github.com/repos/petdance/ack2/issues/523","labels_url":"https://api.github.com/repos/petdance/ack2/issues/523/labels{/name}","comments_url":"https://api.github.com/repos/petdance/ack2/issues/523/comments","events_url":"https://api.github.com/repos/petdance/ack2/issues/523/events","html_url":"https://github.com/petdance/ack2/issues/523","id":58150434,"number":523,"title":"Grep finds result, ack doesn't.  Problem with large directories?","user":{"login":"jamischarles","id":606014,"avatar_url":"https://avatars.githubusercontent.com/u/606014?v=3","gravatar_id":"","url":"https://api.github.com/users/jamischarles","html_url":"https://github.com/jamischarles","followers_url":"https://api.github.com/users/jamischarles/followers","following_url":"https://api.github.com/users/jamischarles/following{/other_user}","gists_url":"https://api.github.com/users/jamischarles/gists{/gist_id}","starred_url":"https://api.github.com/users/jamischarles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamischarles/subscriptions","organizations_url":"https://api.github.com/users/jamischarles/orgs","repos_url":"https://api.github.com/users/jamischarles/repos","events_url":"https://api.github.com/users/jamischarles/events{/privacy}","received_events_url":"https://api.github.com/users/jamischarles/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-02-19T00:17:01Z","updated_at":"2015-02-19T01:44:04Z","closed_at":null,"body":"I love ack, want to use it for everything. But I ran into this issue.\r\n\r\nI have a pretty large node_modules directory.\r\n\r\nUsing ack yields nothing:\r\n\r\n```\r\n$ ack -i --noEnv   'buyerUserAgreement' node_modules\r\n```\r\n\r\nUsing grep does:\r\n```\r\n$ grep -R buyerUserAgreement node_modules\r\n\r\nnode_modules/dummySomething-config/config/links/links.json:\t\t\"buyerUserAgreement\": {\r\nnode_modules/dummySomething-dummyB/models/fergus/someOtherModel.js:\tsomelinks.buyerUserAgreement = {};\r\n```\r\n\r\nI even tried commenting out this in my .ackrc file\r\n```\r\n# Node modules created by npm\r\n#--ignore-directory=is:node_modules\r\n```\r\n\r\nAny thoughts?\r\n"},"comment":{"url":"https://api.github.com/repos/petdance/ack2/issues/comments/74985788","html_url":"https://github.com/petdance/ack2/issues/523#issuecomment-74985788","issue_url":"https://api.github.com/repos/petdance/ack2/issues/523","id":74985788,"user":{"login":"jamischarles","id":606014,"avatar_url":"https://avatars.githubusercontent.com/u/606014?v=3","gravatar_id":"","url":"https://api.github.com/users/jamischarles","html_url":"https://github.com/jamischarles","followers_url":"https://api.github.com/users/jamischarles/followers","following_url":"https://api.github.com/users/jamischarles/following{/other_user}","gists_url":"https://api.github.com/users/jamischarles/gists{/gist_id}","starred_url":"https://api.github.com/users/jamischarles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamischarles/subscriptions","organizations_url":"https://api.github.com/users/jamischarles/orgs","repos_url":"https://api.github.com/users/jamischarles/repos","events_url":"https://api.github.com/users/jamischarles/events{/privacy}","received_events_url":"https://api.github.com/users/jamischarles/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T01:44:04Z","updated_at":"2015-02-19T01:44:04Z","body":"So I discovered something interesting:\r\n\r\nWhen I comment out the .ackrc line to ignore node_modules, **this works**:\r\n`$ ack -C 5   'buyerUserAgreement' node_modules`\r\n\r\nbut this doesn't:\r\n`ack --noenv -C 5   'buyerUserAgreement' node_modules`\r\n\r\nI assume this is what's happening:\r\nMy .ackrc file has the 'ignore node_modules' line commented out, so it doesn't ignore that folder. When I flip the --noenv flag, it ignores my override, and loads the default which ignores node_modules. \r\n\r\nIs this accurate?"}}