KyleBanks / goggles

🔭 Goggles is a cross-platform GUI for your $GOPATH!
Apache License 2.0
671 stars 18 forks source link

Support for Standard Library #26

Open bits01 opened 7 years ago

bits01 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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

bits01 commented 7 years ago

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 commented 7 years ago

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

KyleBanks commented 7 years ago

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

bits01 commented 7 years ago

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

KyleBanks commented 7 years ago

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

bits01 commented 7 years ago

goggles.txt

KyleBanks commented 7 years ago

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.