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

Support for Standard Library #26

Open
bits01 opened this issue Mar 23, 2017 · 9 comments
Open

Support for Standard Library #26

bits01 opened this issue Mar 23, 2017 · 9 comments
Labels

Comments

@bits01
Copy link

bits01 commented Mar 23, 2017

If Goggles is started from the command line, could it also detect where Go is installed or take an argument "goroot" so that the stdlib godoc can also be shown? It would be nice to have all documentation available in a single app and not switch between Dash and Goggles for example.

Or perhaps the app could support its own config file something like ~/.config/goggles/... where the user could define defaults for GOROOT and GOPATH. Then the app could be started from anywhere, not just cmd line. Eventually the app could have its own Prefs GUI, but a simple file to start with would be fine.

@KyleBanks
Copy link
Owner

KyleBanks commented Mar 23, 2017

Support for custom $GOPATH and $GOROOT is already planned and pretty much encompasses your ideas: #23 just need some time to get to it :)

As for stdlib, definitely! That's a great idea and will be added to the roadmap.

@KyleBanks
Copy link
Owner

v0.2.0 now supports custom GOPATH values, GOROOT and stdlib docs are still outstanding.

@KyleBanks KyleBanks changed the title Support stdlib godoc too Support for Standard Library Mar 24, 2017
@bits01
Copy link
Author

bits01 commented Mar 24, 2017

Thanks for looking into it. It prompts for GOPATH, I enter the correct one and it's still complaining that it can't find any packages. If I start it from the cmd line with the same GOPATH set it works.

@bits01
Copy link
Author

bits01 commented Mar 24, 2017

Does it persist GOPATH anywhere? If so where is the config file located, please?

@KyleBanks
Copy link
Owner

@bits01 it should be stored in ~/Library/Caches/goggles/goggles.conf

@bits01
Copy link
Author

bits01 commented Mar 24, 2017

The file looks correct, but it's not working unless I start it from the cmd line with GOPATH set. Any debugging help?

@KyleBanks
Copy link
Owner

Would you mind deleting ~/Library/Logs/goggles.log, running again (from the .App) and then posting the contents of ~/Library/Logs/goggles.log?

@bits01
Copy link
Author

bits01 commented Mar 24, 2017

goggles.txt

@KyleBanks
Copy link
Owner

It looks like it's pulling out the correct gopath, but for some reason it gets stuck in a loop. I'll open a separate bug for this and look into it as soon as I get a chance.

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

No branches or pull requests

2 participants