Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#43091 - [liteide] Unable to browse or search Golang documentation

Attached to Project: Community Packages
Opened by Alain Kalker (ackalker) - Friday, 12 December 2014, 11:59 GMT
Last edited by Alexander F. Rødseth (xyproto) - Wednesday, 07 January 2015, 09:14 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Alexander F. Rødseth (xyproto)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

I'm unable to browse Golang documentation. Clicking the link on the Welcome screen, I get no documentation page but instead it produces the following error in the Event Log:

12:49:26 GolangDoc: 2014/12/12 12:49:25 open /doc/docs.html: no such file or directory

From some digging with strace, it appears that LiteIDE executes godoc:

3193 execve("/usr/bin/godoc", ["/usr/bin/godoc", "-html=true", "/doc/docs.html"], [/* 70 vars
*/]) = 0

Translating this to a shell command indeed produces the same error:

$ /usr/bin/godoc -html=true /doc/docs.html
2014/12/12 12:53:03 open /doc/docs.html: no such file or directory

From looking at godoc's help message, it appears that one needs to wrap the URL of the requested document with `-url=`. This indeed appears to work:

$ /usr/bin/godoc -html=true -url="/doc/docs.html"
[...HTML output...]

I don't know enough about godoc's history to say that this need to use `-url=` is a recent change, so there.

Additional info:
* package version(s)
go 2:1.4-1
liteide 25-1
* config and/or log files etc.


Steps to reproduce:
- Start LiteIDE.
- On the Welcome screen, under "Quicklinks", click the link "Golang Documents".
This task depends upon

Closed by  Alexander F. Rødseth (xyproto)
Wednesday, 07 January 2015, 09:14 GMT
Reason for closing:  Fixed
Comment by Alain Kalker (ackalker) - Friday, 12 December 2014, 12:04 GMT
Please ignore "or search" in the title, that is another issue, which I'm still investigating.
Comment by Alexander F. Rødseth (xyproto) - Wednesday, 31 December 2014, 17:08 GMT
Hi. Thanks for reporting. Does it work in the latest release of liteide, version x26?
Comment by Alain Kalker (ackalker) - Wednesday, 31 December 2014, 17:40 GMT
Yes, it works, both documentation and packages load correctly.
Thanks for updating :-)
Comment by Alexander F. Rødseth (xyproto) - Wednesday, 07 January 2015, 09:14 GMT
Great :) Thanks for testing.

Loading...