Open bits01 opened 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.
v0.2.0 now supports custom GOPATH values, GOROOT and stdlib docs are still outstanding.
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.
Does it persist GOPATH anywhere? If so where is the config file located, please?
@bits01 it should be stored in ~/Library/Caches/goggles/goggles.conf
The file looks correct, but it's not working unless I start it from the cmd line with GOPATH set. Any debugging help?
Would you mind deleting ~/Library/Logs/goggles.log
, running again (from the .App) and then posting the contents of ~/Library/Logs/goggles.log
?
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.
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.