gocode icon indicating copy to clipboard operation
gocode copied to clipboard

Feature request: support reporting parse errors

Open r4nt opened this issue 10 years ago • 2 comments

Currently there are different tools for getting code completion and parse errors. It would be nice if we had one tool that supports both :)

r4nt avatar May 27 '15 15:05 r4nt

Well. Gocode can report syntax errors, but that's the kind of errors people don't do often. When it comes to semantic errros, gocode does only partial analysis, for example it looks only into a function which is under the cursor and doesn't do so for any other functions. And gocode's semantic analysis is incomplete and incorrect in some cases. So, gocode can't really subsitute a proper complier.

I don't think it's a good idea. Syntax errors as I said are rare and there is no point in showing them.

nsf avatar May 27 '15 15:05 nsf

Thanks for explaining. I was hoping to get full semantic errors. It would make my life significantly easier if I could get them from gocode (running the compiler usually is done as part of a build of a larger project, which has a non-Go build system for generated files and other languages, so it's orders of magnitude slower).

r4nt avatar May 28 '15 07:05 r4nt