Closed stardiviner closed 10 years ago
when XYZ nil
usually means that you have XYZ in common-docsets but there's no dir named XYZ.docset in the helm-dash-docsets-path
. can you doublecheck there's a directory called 'Ruby on Rails.docset' inside? Also, that the directory has the documentation (I'm thinking of corrupted downloads or something....). Mine weights 43M
~/.docsets
❯ du -sh Ruby\ on\ Rails.docset
43M Ruby on Rails.docset
@kidd I downloaded the docsets, and sure it has 43M. The directory structure:
Ruby on Rails.docset/
Contents/
- Info.plist
- Resources/
.....
@kidd I'm not sure which meaning are you saying, if you mean have XYZ.docset
folder in variable helm-dash-docsets-path
, then no, it's a string "/home/stardiviner/.docsets"
. Is this correct? I think depend on my config init setting, (setq helm-dash-docsets-path (expand-file-name "~/.docsets"))
, this should be correct. And I checked out that helm-dash
use expand-file-name
too.
helm-dash-docsets-path should be "/home/stardiviner/.docsets". this is fine.
Just to make sure you have the dependencies, you have sqlite3 installed and in the path, right? helm-dash just shells a sqlite3 process.
@kidd Yes, I have sqlite3 install on Ubuntu Linux, and is in the path available. How to debug this?
I found .sqliterc
config file has a line .mode column
cause this problem.
Now solved.
Great you found a fix.
setting '.mode list' makes it work.
May I suggest that helm-dash-sql
use sqlite3 -list
? That way it no longer matters what format the user prefers in .sqliterc
. It'd be nice if the user's choice for command line usage does not interfere with the operation of helm-dash.
Maybe helm-dash should extract helm-dash-sql
's call-process
out a variable called like helm-dash-sql-parameters
. So that user can specify like --list
.
For now I'll add '-list' to the hardcoded commandline... I don't foresee many more configs needed... We'll do it when really needed
that should do it, right?
@kidd It's fine.
I install helm-dash through el-get. And configure it with:
After download docsets with
helm-dash-install-docsets
. And when I execute[M-x helm-dash]
. It only showRuby nil
orRuby on Rails nil
. I also tried commandhelm-dash-active-docsets
. None of them can work correctly.