Go Format macro fails and disappears from menu

If reporting a bug with the Zeus IDE please post the details here. Please do not post questions here.
Post Reply
RIL
Posts: 2
Joined: Fri Jun 07, 2013 6:55 am

Go Format macro fails and disappears from menu

Post by RIL »

Hi,

( Using Windows7 SP1 and Go1.1 ).
I just installed Zeus 3.97p on a Win7 and tried formatting some Go code but it resulted in the following error message :

Code: Select all

Debug: Macro trace debugging is active.
Debug: debug_output
gofmt.exe -comments=true -w=true -tabs=false -tabwidth=4 "filename.go"

Error executing the 'Go Format' command!
Debug: system
After failure the Go macros no longer show up in the menu (nor in the options list) until after restarting of Zeus IDE.
Edit: It does not seem to depend on the code being formatted, since any (previously) good formatted code will also fail.

Any hints about where to look for a cause? On an vmware XP (3.97o) this works fine.

I did some Go-newbie coding for several days and Zeus really looks good.

Regards from Sweden,
// Rolf
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Hi Rolf,
I just installed Zeus 3.97p on a Win7 and tried formatting some Go code but it resulted in the following error message
I suspect the Go install folder is not in the system PATH.

To test this start Zeus and use the Tools, Dos Shell menu and in the resulting command line prompt type in this:

Code: Select all

C:\>go.exe
Go is a tool for managing Go source code.

Usage:

        go command [arguments]
....
Use "go help [topic]" for more information about that topic.
If instead you see this:

Code: Select all

C:\>go.exe
'go.exe' is not recognized as an internal or external command,
operable program or batch file.
It means that the Go.exe is not in the PATH or Go is not installed.

One easy way to set the path is like this:

1) Find out where the Go.exe is installed (usually C:\Go\bin)
2) Close any open workspace
3) Use the Workspace Options menu and select the General section
4) Add the path from step one to the PATH field (i.e. c:\Go\bin;)
5) Apply the changes and repeat the command line prompt again

Alternatively you could also change the path using the Windows Control Panel.
After failure the Go macros no longer show up in the menu (nor in the options list) until after restarting of Zeus IDE.

What happenened is because the Go execute failed the active window changed.

Now Zeus binds tools, macros and templates against the document type so when the active window change so did the document type.

To see the menu again just make a Go file the active file.
Any hints about where to look for a cause? On an vmware XP (3.97o) this works fine.

I am pretty sure the test above will indicate the Go.exe is not in the path and after you make that change it should all work.

Let me know how you get on.

Cheers Jussi
RIL
Posts: 2
Joined: Fri Jun 07, 2013 6:55 am

Post by RIL »

jussij wrote:I am pretty sure the test above will indicate the Go.exe is not in the path and after you make that change it should all work.
Let me know how you get on.
Well, you were pretty right. It now works perfectly. :)

Looking good this. And thank you for your quick reply. Wow!

// Rolf
Post Reply