GoClipse / goclipse

Eclipse IDE for the Go programming language:
http://goclipse.github.io/
Eclipse Public License 1.0
841 stars 286 forks source link

Auto running gofmt does not work #237

Closed refaelsh closed 7 years ago

refaelsh commented 7 years ago

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

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

refaelsh commented 7 years ago

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

bruno-medeiros commented 7 years ago

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

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

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

bruno-medeiros commented 7 years ago

(See "Help / Installation Details" menu option)

refaelsh commented 7 years ago

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

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

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

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