When I perform a simple string query through the web interface, any line of
code that contains the simple string appears in the list multiple times
consecutively.  Most commonly I see it appear in triplicate, but I have
also seen it appear four times.  Has anyone else ever encountered this, or
is it yet another artifact of a partially-failed (or partially successful)
installation?

In looking at the search.cgi and queries.cgi it appears that those lines
are coming out of the database, so I thought I would fire up sqlite3
command line and look at the database.  However, I cannot successfully get
it to recognize the dxr-code-tokenizer so that it returns data from the fts
table.  I used ".load" and even explicitly request that it run the same
init function that the python script runs, but when I "select * from fts;"
I get errors.

SQLite version 3.7.11 2012-03-20 11:35:50
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> .load
/home/ccleeland/localbuilds/dxr/sqlite/libdxr-code-tokenizer.so sqlite>
select (select path from files where id = fts.rowid),fts.content,
offsets(fts) from fts where fts.content match "pthread_create";
Error: unknown tokenizer: dxrCodeTokenizer


Is anybody familiar with the magic incantations required to get this to
work and willing to share?  Google seems to turn up nothing useful for me.

Thanks,

-- 
Chris Cleeland
_______________________________________________
dev-static-analysis mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-static-analysis

Reply via email to