shibukawa / oktavia

Full text search engine for JS environments
MIT License
70 stars 11 forks source link

ReferenceError occurred if some -f specified. #20

Closed shirou closed 9 years ago

shirou commented 10 years ago

When I run a oktavia-mkindex-cli with this args

% oktavia-mkindex-cli -m html -i _build/html -r _build/html -u file -f .body -c 5

on a sphinx with default theme, this error occured on my environment. -b .body is came from oktavia.info document and sphinx default theme uses <div class="body"> to store contents.

 /path/to/Works/oktavia/bin/oktavia-mkindex-cli:36034
                        SA[$__jsx_ipdec(bkt, OArray$get$LOArray$I(s, (i | 0)), 1)] = (i | 0);
                           ^
ReferenceError: $__jsx_ipdec is not defined
    at SAIS$_make$LOArray$AIII ( /path/to/oktavia/bin/oktavia-mkindex-cli:36034:7)
    at SAIS$make$S  /path/to/oktavia/bin/oktavia-mkindex-cli:35994:2)
    at Object.BurrowsWheelerTransform ( /path/to/oktavia/bin/oktavia-mkindex-cli:35098:39)
    at FMIndex$build$LFMIndex$IUI ( /path/to//oktavia/bin/oktavia-mkindex-cli:2286:8)
    at Oktavia$build$LOktavia$UI ( /path/to/oktavia/bin/oktavia-mkindex-cli:872:2)
    at HTMLParser$dump$LHTMLParser$IB ( /path/to/oktavia/bin/oktavia-mkindex-cli:1164:2)
    at _Main$run$AS ( /path/to/oktavia/bin/oktavia-mkindex-cli:358:12)
    at Function._Main$main$AS  /path/to/Works/oktavia/bin/oktavia-mkindex-cli:156:2)
    at Object.JSX.runMain ( /path/to//oktavia/bin/oktavia-mkindex-cli:37022:15)
    at /path/to/oktavia/bin/oktavia-mkindex-cli:37064:5

Perhaps I have miss understandings, but could you tell me what's wrong with it.

tuchida commented 10 years ago

This is the JSX's problem. https://github.com/jsx/JSX/issues/320

Fixed now.