{"action":"created","issue":{"url":"https://api.github.com/repos/jasonhall/codesearch/issues/30","labels_url":"https://api.github.com/repos/jasonhall/codesearch/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/jasonhall/codesearch/issues/30/comments","events_url":"https://api.github.com/repos/jasonhall/codesearch/issues/30/events","html_url":"https://github.com/jasonhall/codesearch/issues/30","id":57509160,"number":30,"title":"Cannot index / search one file","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jasonhall/codesearch/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/jasonhall/codesearch/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/jasonhall/codesearch/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-02-12T19:42:40Z","updated_at":"2015-02-12T19:42:42Z","closed_at":null,"body":"```\nWhat steps will reproduce the problem?\n1. Index the attached file with cindex\n2. Search for a pattern inside it\n3. No hits\n\nWhat is the expected output? What do you see instead?\n\nrepro$\nrepro$ cindex -reset\nrepro$ cindex badfile\n2013/03/13 18:51:52 index /tmp/repro/badfile\n2013/03/13 18:51:52 flush index\n2013/03/13 18:51:52 merge 0 files + mem\n2013/03/13 18:51:52 0 data bytes, 92 index bytes\n2013/03/13 18:51:52 done\nrepro$ cindex -list\n/tmp/repro/badfile\nrepro$\nrepro$\nrepro$\nrepro$ grep main badfile\nlibc.so.6        __libc_start_main\ntorch             main\ntorch              realmain(int, char**)\nlibglib-2.0....          g_main_context_iteration\nlibglib-2.0....           g_main_context_prepare\nlibglib-2.0....            g_main_context_dispatch\n#85 0x00000032f5c38f0e in g_main_context_dispatch () from \n/lib64/libglib-2.0.so.0\n#87 0x00000032f5c3ca3a in g_main_context_iteration () from \n/lib64/libglib-2.0.so.0\n#93 0x000000000040e74d in realmain(int, char**) ()\n#94 0x000000000040e933 in main ()\nrepro$\nrepro$ csearch main  <= no results here !!\nrepro$ \nrepro$ grep threads badfile \n============ All threads ==========\n============ All threads ==========\nrepro$\nrepro$ csearch threads <= no results here !!\nrepro$ \n\nI cannot find (with csearch) text that is in a file I have indexed (cindex)\n\nWhat version of the product are you using? On what operating system?\n\nI'm using the Linux binaries that are available on the Download page.\nI tried to compile go / codesearch but couldn't make it work (my go\ninstall might be funky).\n\nPlease provide any additional information below.\n\nIt looks like the problem happens at indexing time.\n```\n\n-----\nOriginal issue reported on code.google.com by bserg...@gmail.com on 14 Mar 2013 at 1:57\n\nAttachments:\n* [badfile](https://storage.googleapis.com/google-code-attachments/codesearch/issue-30/comment-0/badfile)\n"},"comment":{"url":"https://api.github.com/repos/jasonhall/codesearch/issues/comments/74138236","html_url":"https://github.com/jasonhall/codesearch/issues/30#issuecomment-74138236","issue_url":"https://api.github.com/repos/jasonhall/codesearch/issues/30","id":74138236,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-02-12T19:42:42Z","updated_at":"2015-02-12T19:42:42Z","body":"```\nI don't know how far you guys should go with that, but having those 2 options \nto set the maxLineLen and maxFileSize on the command line would also help.\n\nThe default behavior could be to print a message like that (with a better \nphrasing probably / different options names) when a file got skipped.\n\n=> /tmp/foo wasn't indexed (maxLine too long) / try to reindex with cindex \n-maxLineLen 3000\n\n=> /tmp/foo wasn't indexed (file too big) / try to reindex with cindex \n-maxFileSize 1M\n\n```\n\n-----\nOriginal comment by bserg...@gmail.com on 14 Mar 2013 at 4:26"}}