-
Notifications
You must be signed in to change notification settings - Fork 18k
x/tools/cmd/godoc: directory listings aren't updated #3386
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
Comments
Labels changed: added priority-later, removed priority-triage. Owner changed to @griesemer. Status changed to Accepted. |
Using the fsnotify package (go.exp/fsnotify) to solve this issue is probably the preferred way. If so issue #4068 should be marked as a blocker for this issue. |
Owner changed to bgarcia@golang.org. |
Comment 11 by bgarcia@golang.org: I see that Corpus.RunIndexer() should periodically update the index. https://code.google.com/p/go/source/browse/godoc/index.go?repo=tools#1477 But digging a little deeper, I find that it will only reindex after Corpus.invalidateIndex is called. And that is only called once, from Corpus.Init. So it would seem that the infinite loop within Corpus.RunIndexer will do something once, at startup, but then never do anything again. Is there another code path that I'm missing? How do people feel about re-indexing unconditionally every Corpus.IndexInterval? |
I think the plan is to use fsnotify to solve this issue. The proposal is located at: https://docs.google.com/document/d/1xl_aRcCbksFRmCKtoyRQG9L7j6DIdMZtrkFAoi5EXaA/edit?pli=1 |
Comment 13 by bgarcia@google.com: In the meantime, it appears that the Corpus.RunIndexer loop serves no purpose. We should either exit that loop after updating the index, or just periodically re-index unconditionally. Or, does that loop serve another purpose that I'm just not seeing? |
Comment 14 by bgarcia@golang.org: In the meantime, it appears that the Corpus.RunIndexer loop serves no purpose. We should either exit that loop after updating the index, or just periodically re-index unconditionally. Or, does that loop serve another purpose that I'm just not seeing? |
Comment 15 by bgarcia@golang.org: Short-term fix has been submitted: https://code.google.com/p/go/source/detail?r=2e2c0a636a58&repo=tools This will unconditionally re-index periodically. Leaving this issue unresolved for a permanent fix that makes use of fsnotify when it's ready. Labels changed: added release-go1.3maybe, removed release-none. |
This was decided in #7524 that it is enough to be able to tune the index interval to have enough control to change the update frequency. Mentioning here for reference -
Hence, closing this. |
by trolleriprofessorn:
The text was updated successfully, but these errors were encountered: