Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: no such table: ZTOKEN #93

Closed
stardiviner opened this issue Jul 31, 2015 · 10 comments
Closed

Error: no such table: ZTOKEN #93

stardiviner opened this issue Jul 31, 2015 · 10 comments

Comments

@stardiviner
Copy link
Contributor

Current path (pwd) is /home/stardiviner/.emacs.d/init/programming/document/.

----------------
 HEY! This is helm-dash (sqlite) error logging. If you want to disable it, set `helm-dash-enable-debugging` to nil
---------------- 

Error: no such table: ZTOKEN
Error: no such table: ZTOKEN
Error: no such table: ZTOKEN


Error: unable to open database "/home/stardiviner/.emacs.d/init/programming/document/Contents/Resources/docSet.dsidx": unable to open database file

Error: unable to open database "/home/stardiviner/.emacs.d/init/programming/document/Contents/Resources/docSet.dsidx": unable to open database file

Error: unable to open database "/home/stardiviner/.emacs.d/init/programming/document/Contents/Resources/docSet.dsidx": unable to open database file

Error: unable to open database "/home/stardiviner/.emacs.d/init/programming/document/Contents/Resources/docSet.dsidx": unable to open database file

I found some docsets can not query now.
here is the error message after I toggle helm-dash-enable-debugging.

The debug info shows helm-dash is opening docset database in a wrong place, my docsets path is ~/.docsets.

Some docsets has this problem, some docsets not.
problem docsets: Ruby, Go,

@vspinu
Copy link
Contributor

vspinu commented Sep 6, 2015

Any news on this? I managed to run helm-dash a couple of times but now I am permanently getting this error.

vspinu added a commit to vspinu/helm-dash that referenced this issue Sep 7, 2015
@vspinu
Copy link
Contributor

vspinu commented Sep 7, 2015

It turned out that I was using "JavaSE7" as a docet name whicle the docset directory was simply "Java".

Creating a PR for a more meaningful error.

@stardiviner
Copy link
Contributor Author

error still exist.

@stardiviner stardiviner changed the title Is this debugging error normal? Error: no such table: ZTOKEN Oct 5, 2015
@stardiviner
Copy link
Contributor Author

After compare between good docset and broken docset.

The files in HTML docset:

: docSet.dsidx
: docSet.mom
: docSet.toc
: docSet.tokencache
: Documents
: LICENSE
: Nodes.xml
: Tokens.xml

the files in Ruby docset:

: docSet.dsidx
: Documents
: LICENSE

You can see, some files are missing. I guess that's why the docset report error: no such table: ZTOKEN.

@stardiviner
Copy link
Contributor Author

I also checked sqlite database file docSet.dsidx.
execute SQL statement select name, type, path from searchIndex;
This is correct.

@kidd
Copy link
Member

kidd commented Oct 6, 2015

there are several different types of docsets, so the queries change depending on which type of docset it is. I can't reproduce any of this either with Ruby or Go.

@kidd kidd closed this as completed in b3c61d2 Oct 6, 2015
kidd added a commit that referenced this issue Oct 6, 2015
[Fix #93] Add meaningful error message with misspelled docsets
@stardiviner
Copy link
Contributor Author

I found the reason now:
My sqlite config caused this issue:
Here is my config:

-- [beautiful views]
-- .mode column
.header on
.headers on
.nullvalue "Null"
.separator "|"
.prompt "sqlite> " "   ...> "
-- .echo off

-- for Emacs packages like "helm-dash".
.mode list

@kidd
Copy link
Member

kidd commented Oct 7, 2015

is there a way to invoke sqlite ignoring the .sqliterb file?

@stardiviner
Copy link
Contributor Author

@kidd what about use sqlite3 -init "" ?

@kidd
Copy link
Member

kidd commented Oct 7, 2015

thanks @stardiviner . It's ready to be bundled in #102

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants