Skip to content
This repository has been archived by the owner on Apr 3, 2018. It is now read-only.

Auto running gofmt does not work #237

Closed
refaelsh opened this issue Feb 6, 2017 · 10 comments
Closed

Auto running gofmt does not work #237

refaelsh opened this issue Feb 6, 2017 · 10 comments

Comments

@refaelsh
Copy link

refaelsh commented Feb 6, 2017

Go to Windows-->Preferences-->Go-->Tools and the check the "Format automatically on editor save".
Well, this check box has no effect. This feature simply does not work.
I am obviously missing something. I require help :-)

@bruno-medeiros
Copy link
Contributor

What does the Go Tools Log console say after you save a file? (look in the Console view for this console)

@refaelsh
Copy link
Author

@bruno-medeiros I am sorry, but I don't understand where to look. Can You please explain with more details?

@bruno-medeiros
Copy link
Contributor

image

The Eclipse "Console" view has different console panes, one of them being "Go Tools Log". There's a dropdown menu to select the one of the different panes.

@refaelsh
Copy link
Author

Thank You very much for Your patient answer :-)
I have no such option in that drop down menu.
Here is a screenshot: https://www.dropbox.com/s/v9naxz48ck2f4ai/Screenshot_2017-02-18_21-36-45.png?dl=0

@bruno-medeiros
Copy link
Contributor

The Go editor icon is not right... which Goclipse version do you have?

@bruno-medeiros
Copy link
Contributor

(See "Help / Installation Details" menu option)

@refaelsh
Copy link
Author

I have version 0.16.1, here is a screenshot:
https://www.dropbox.com/s/z7xvo9foe016f6w/Screenshot_2017-02-20_12-16-40.png?dl=0

@bruno-medeiros
Copy link
Contributor

That's weird. In any case the editor you are opening the Go file is not Goclipse's editor. The icon is wrong, and also the Outline view is different. This is how it should look like:
image
Try, right clicking on .go file, and do "Open With / Go Editor", like show above.

@refaelsh
Copy link
Author

Thanks. It works now. The file was open with "Liclipse Go Editor", it was the default double click action, that what confused Me. As soon as I opened it with "Go Editor", everything started working.
Thanks! :-)

@bruno-medeiros
Copy link
Contributor

Ah, Liclipse, that explains... I was wondering which editor it could be since, I didn't know of any other Go editors/IDEs for Eclipse

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