Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

[Question] How to identify which goimports go-plus is running? #749

Closed
Moataz-E opened this issue Feb 5, 2018 · 4 comments
Closed

[Question] How to identify which goimports go-plus is running? #749

Moataz-E opened this issue Feb 5, 2018 · 4 comments

Comments

@Moataz-E
Copy link

Moataz-E commented Feb 5, 2018

Hi,

This information appears to have been previously provided under the "Display Go Information" function. Since then, this function has been removed.

Do you know how can I find out which goimports my go-plus is using?

@lloiser
Copy link
Collaborator

lloiser commented Feb 5, 2018

There are only two options in this order:

  • either in $GOPATH/bin
  • or somewhere in $PATH

If you are still unsure you can run which -a goimports and see how many goimports come up.

@Moataz-E
Copy link
Author

Moataz-E commented Feb 5, 2018

That's the weird thing, I get command unrecognized!

image

I can see goimports when I run go list ...:

image

EDIT: Please note that I am using a windows machine.

@lloiser
Copy link
Collaborator

lloiser commented Feb 6, 2018

It seems that you did not add the %GOPATH%/bin folder to your PATH env variable.
In this case you would have to run $env:GOPATH\bin\goimports in powershell (or %GOPATH%\bin\goimports in cmd)

Btw: what are you trying to achieve? Do you have any problems with go-plus itself?

go-plus also adds a panel to the bottom of atom that has a "Go" tab in it. It shows the result go env and may help you troubleshooting your problem.
You can also execute the Golang: Update Tools command in atom to update all the go tools required by go-plus. see https://github.com/joefitzgerald/go-plus/wiki/FAQ#tools

@Moataz-E
Copy link
Author

Moataz-E commented Feb 6, 2018

Lukas, you are a god amongst men.

I didn't have %GOPATH%/bin added to my PATH env variable but I had %GOPATH% defined, and that is where go-plus was looking up the tool executables.

Thanks, this answers my question!

@Moataz-E Moataz-E closed this as completed Feb 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants