GoEclipse code assist and auto completion


(SHYAKA Rene) #1

Hello, I started learning Go yesterday, I’m using liteIDE its great but I use eclipse for all my work, I installed GoEclipse plugin I created a file but looks like its refuse to connect to the language server if go has one, context assist is not working on go files. Any help is appreciated.

  • Go installation “C:\programming\golang\go”
  • Project Go path “C:\programming\java\eclipse-new\projects\hello\src”

(Norbert Melzer) #2

Even though I don’t use Eclipse, what is the error behind those squiggle lines? That could help us to identify the problem behind what you see…


(SHYAKA Rene) #3

Thanks for the reply, The error does nothing to do with learning Go, I’m using Hello world as example to check if eclipse plugin works, if I could find someone who uses eclipse to help me configure it to detect go syntax. Thank you again


(Norbert Melzer) #4

Again, please tell us the error, it can give us tipps on what exactly you missconfigured.

From the screenshot it looks as if eclipse is already picking up some GOPATH and GOROOT, so from a first glance, there seems to be a plugin active which is aware of gos environment.

Though from a first glance… GOROOT usually does not end in src… But maybe things are different in windows…


(SHYAKA Rene) #5

This is the window of project properties gopath is pointed here “C:\programming\golang\go” I don’t know how it ended up in src i thought its IDE automation,

and helloworld project is in this folder “C:\programming\java\eclipse-new\projects\hello”
when I press . autocomplete window says “an error occured during content assist”

I’m using eclipse “Version: Neon.3 Release (4.6.3)”


(Norbert Melzer) #6

What are the errors associated to the underlined sections of code?

Knowing the exact error messages could give valuable hints to what is wrong.


(SHYAKA Rene) #7

Its says “Use of package fmt without selector” and when i press . it says “an error occured during content assist”


(Norbert Melzer) #8

Not while you try to invoke completions, but those on your very first screenshot.


(SHYAKA Rene) #9

@NobbZ I think you don’t get my point eclipse doesn’t resolve go autocomplete


(Norbert Melzer) #10

And you don’t get mine. Those errors that eclipse thinks are there might contain hints on the actual problem.

But fine. I’m out.