wuudjac / godocdash Goto Github PK
View Code? Open in Web Editor NEWGenerate Dash docset for Dash/Zeal from your local $GOPATH packages
License: MIT License
Generate Dash docset for Dash/Zeal from your local $GOPATH packages
License: MIT License
When I run godocdash
I get an empty docset, a lot of logged lines but a positive exitcode. This is the output I get:
➜ godocdash
2019/07/31 14:37:50 ReadFile: open /usr/local/Cellar/go/1.12.7/libexec/http:/localhost:63161/lib/godoc/dirlist.html: no such file or directory
2019/07/31 14:37:50 ReadFile: open /usr/local/Cellar/go/1.12.7/libexec/http:/localhost:63161/lib/godoc/codewalk.html: no such file or directory
2019/07/31 14:37:50 lstat /usr/local/Cellar/go/1.12.7/libexec/http:/localhost:63161/lib/godoc/analysis: no such file or directory
2019/07/31 14:37:50 ReadFile: open /usr/local/Cellar/go/1.12.7/libexec/http:/localhost:63161/lib/godoc/example.html: no such file or directory
2019/07/31 14:37:50 ReadFile: open /usr/local/Cellar/go/1.12.7/libexec/http:/localhost:63161/lib/godoc/callgraph.html: no such file or directory
2019/07/31 14:37:50 ReadFile: open /usr/local/Cellar/go/1.12.7/libexec/http:/localhost:63161/lib/godoc/codewalkdir.html: no such file or directory
2019/07/31 14:37:50 ReadFile: open /usr/local/Cellar/go/1.12.7/libexec/http:/localhost:63161/lib/godoc/godoc.html: no such file or directory
2019/07/31 14:37:50 ReadFile: open /usr/local/Cellar/go/1.12.7/libexec/http:/localhost:63161/lib/godoc/error.html: no such file or directory
2019/07/31 14:37:50 lstat /usr/local/Cellar/go/1.12.7/libexec/http:/localhost:63161/lib/godoc/images: no such file or directory
2019/07/31 14:37:50 ReadFile: open /usr/local/Cellar/go/1.12.7/libexec/http:/localhost:63161/lib/godoc/implements.html: no such file or directory
2019/07/31 14:37:50 ReadFile: open /usr/local/Cellar/go/1.12.7/libexec/http:/localhost:63161/lib/godoc/methodset.html: no such file or directory
2019/07/31 14:37:50 lstat /usr/local/Cellar/go/1.12.7/libexec/http:/localhost:63161/lib/godoc/opensearch.xml: no such file or directory
2019/07/31 14:37:50 ReadFile: open /usr/local/Cellar/go/1.12.7/libexec/http:/localhost:63161/lib/godoc/package.html: no such file or directory
2019/07/31 14:37:50 ReadFile: open /usr/local/Cellar/go/1.12.7/libexec/http:/localhost:63161/lib/godoc/packageroot.html: no such file or directory
2019/07/31 14:37:50 ReadFile: open /usr/local/Cellar/go/1.12.7/libexec/http:/localhost:63161/lib/godoc/searchtxt.html: no such file or directory
2019/07/31 14:37:50 ReadFile: open /usr/local/Cellar/go/1.12.7/libexec/http:/localhost:63161/lib/godoc/searchdoc.html: no such file or directory
2019/07/31 14:37:50 ReadFile: open /usr/local/Cellar/go/1.12.7/libexec/http:/localhost:63161/lib/godoc/search.html: no such file or directory
2019/07/31 14:37:50 ReadFile: open /usr/local/Cellar/go/1.12.7/libexec/http:/localhost:63161/lib/godoc/searchcode.html: no such file or directory
killing godoc on http://localhost:63161
I just generated a docset on my system (twice to be sure) and I can't see any "Type" or "Function" entries in the search index. It's documenting 1977 packages/constants/variables, but never any types or functions. I can see types and functions exposed on Package pages when I browse the generated docset.
go version
)user@hostname MMMMMMMMMMMMMMMMMMMMMMMMMmds+. OS: Mint 18.3 sylvia MMm----::-://////////////oymNMd+` Kernel: x86_64 Linux 4.15.0-48-generic MMd /++ -sNMd: Uptime: 31d 18h 52m MMNso/` dMM `.::-. .-::.` .hMN: Packages: 3344 ddddMMh dMM :hNMNMNhNMNMNh: `NMm Shell: zsh 5.1.1 NMm dMM .NMN/-+MMM+-/NMN` dMM Resolution: 6398x1440 NMm dMM -MMm `MMM dMM. dMM DE: Cinnamon 3.6.7 NMm dMM -MMm `MMM dMM. dMM WM: Muffin NMm dMM .mmd `mmm yMM. dMM WM Theme: Linux Mint (Mint-X) NMm dMM` ..` ... ydm. dMM GTK Theme: Mint-X [GTK2/3] hMM- +MMd/-------...-:sdds dMM Icon Theme: Mint-X-Grey -NMm- :hNMNNNmdddddddddy/` dMM Font: Noto Sans 9 -dMNs-``-::::-------.`` dMM CPU: Intel Core i7-7600U CPU @ 3.9GHz `/dMNmy+/:-------------:/yMMM GPU: Mesa DRI Intel(R) HD Graphics 620 (Kaby Lake GT2) ./ydNMMMMMMMMMMMMMMMMMMMMM RAM: 5572MiB / 15918MiB \.MMMMMMMMMMMMMMMMMMM
go get
(latest)go get
(latest)To reproduce:
$ godocdash --silent --name test
$ sqlite3 test.docset/Contents/Resources/docSet.dsidx
SQLite version 3.11.0 2016-02-15 17:29:24
Enter ".help" for usage hints.
sqlite> SELECT COUNT(*) FROM searchIndex;
1977
sqlite> SELECT DISTINCT type FROM searchIndex;
Package
Constant
Variable
In my windows 10 64-bit, go get is failed with following error:
go get github.com/wuudjac/godocdash
# github.com/mattn/go-sqlite3
exec: "gcc": executable file not found in %PATH%
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.