Intellisense in Go not working for $GOPATH packages.

Post any comments, suggestions, annoyances or ideas for future releases here. Please do not post bug reports or questions here.
Post Reply
Posts: 3
Joined: Mon May 28, 2012 7:12 pm

Intellisense in Go not working for $GOPATH packages.

Post by gheorghe » Tue May 29, 2012 5:37 am


I have packages which are outside the standard distribution installed in a directory under $GOPATH and they don't get picked up by the Zeus intellisense.

Is there a way to fix this? Typically, every package I get from github via "go get" and that I subsequently try to use in Zeus is covered by this.


Site Admin
Posts: 2458
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij » Tue May 29, 2012 12:21 pm

Is there a way to fix this?
Yes you can.

The intellisense information used in Zeus is created by the ctags utility and by creating a Zeus workspace a ctags database will also be created.

That database can then be used to drive the intellisense.

For example the standard Go intellisense in Zeus was configured by first creating a Go Core workspace containing all the Go package source code and the resulting Go Core ctags database was then bound to the Go document type.

You can see this database by editing the Tags Database section of the Go document type.

So to make Zeus intellisense a package outside the standard set of Go packages you will need to do the following:

1) Use the Workspace menu to sreate a new workspace.

2) Add the Go source files to this new workspace. There are several ways to build a Zeus workspace but one of the simplest is to use Windows explorer drag and drop the source files onto the workspace.

3) Use the Options, Editor Options menu to edit the Go document type and add the newly created workspace database to the document type.

Now the intellisense should work for that package.

Cheers Jussi

Post Reply
kuchnie warszawa opinie

Who is online

Users browsing this forum: No registered users and 5 guests