Cannot index / search one file
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing the report with the attached badfile using cindex and csearch, then trace the indexing and search entry points involved in those commands. Compare the indexed output with text returned by grep; done means text such as “main” and “threads” can be found through csearch without breaking existing indexing behavior.
Written by the indexing model from the issue text.
Description
What steps will reproduce the problem?
1. Index the attached file with cindex
2. Search for a pattern inside it
3. No hits
What is the expected output? What do you see instead?
repro$
repro$ cindex -reset
repro$ cindex badfile
2013/03/13 18:51:52 index /tmp/repro/badfile
2013/03/13 18:51:52 flush index
2013/03/13 18:51:52 merge 0 files + mem
2013/03/13 18:51:52 0 data bytes, 92 index bytes
2013/03/13 18:51:52 done
repro$ cindex -list
/tmp/repro/badfile
repro$
repro$
repro$
repro$ grep main badfile
libc.so.6 __libc_start_main
torch main
torch realmain(int, char**)
libglib-2.0.... g_main_context_iteration
libglib-2.0.... g_main_context_prepare
libglib-2.0.... g_main_context_dispatch
#85 0x00000032f5c38f0e in g_main_context_dispatch () from
/lib64/libglib-2.0.so.0
#87 0x00000032f5c3ca3a in g_main_context_iteration () from
/lib64/libglib-2.0.so.0
#93 0x000000000040e74d in realmain(int, char**) ()
#94 0x000000000040e933 in main ()
repro$
repro$ csearch main <= no results here !!
repro$
repro$ grep threads badfile
============ All threads ==========
============ All threads ==========
repro$
repro$ csearch threads <= no results here !!
repro$
I cannot find (with csearch) text that is in a file I have indexed (cindex)
What version of the product are you using? On what operating system?
I'm using the Linux binaries that are available on the Download page.
I tried to compile go / codesearch but couldn't make it work (my go
install might be funky).
Please provide any additional information below.
It looks like the problem happens at indexing time.
Original issue reported on code.google.com by [email protected] on 14 Mar 2013 at 1:57
Attachments:
- Dominant language
- Go
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from jmurzy/codesearch
-
auto-migrated Priority-Medium Type-Defect
Difficulty 1/5 Under an hour Newbie friendliness 65/100
jmurzy/codesearch#34 ·
-
auto-migrated Priority-Medium Type-Defect
Difficulty 1/5 Under an hour Newbie friendliness 65/100
jmurzy/codesearch#31 ·
-
auto-migrated Priority-Medium Type-Defect
Difficulty 2/5 1-3 hours Newbie friendliness 39/100
jmurzy/codesearch#37 ·
-
auto-migrated Priority-Medium Type-Defect
Difficulty 1/5 Under an hour Newbie friendliness 45/100
jmurzy/codesearch#38 ·
-
auto-migrated Type-Patch
Difficulty 1/5 Under an hour Newbie friendliness 45/100
jmurzy/codesearch#36 ·
All issues in jmurzy/codesearch
Similar issues
-
bug effort:s impact:med raised-by:reviewer risk:med
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
medici-finance/assay#7108 · 1 comment ·
Maintainers usually reply within 1 day
-
bug ready-for-pr
Difficulty 1/5 Under an hour Newbie friendliness 82/100
kunchenguid/no-mistakes#1806 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
mohanraj00/entelos#200 ·
Maintainers usually reply within 1 day
-
sweep
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
bketelsen/truenas-mcp#79 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100