4 ms·
The IDE side is in my experience the worse part for Go (unless you pay for JetBrains GoLand). Code navigation is extremely basic (can only find references in t
by tsimionescu 6y ago
The IDE side is in my experience the worse part for Go (unless you pay for JetBrains GoLand).
Code navigation is extremely basic (can only find references in the same package!), often breaks, and can't handle stuff like finding all interfaces that a type implements, or finding all implementations of an interface.
- justinclift 6y agoWhich Go IDE's have you tried?
- deleted 6y ago[deleted]
- tsimionescu 6y agoI tried GoLand, which was great. Then, I tried VSCode with the Go plugin, both the default version and the go pls based one; and Emacs with the LSP package and go pls.
- throwaway894345 6y agoIt used to be really good across the board, but I think modules broke a lot of things and they never fully repaired? I'm not sure, but I get the feeling that the quality of these editor integrations dropped a year or two ago.
- tsimionescu 6y agoAs far as I can tell, they never had support for finding usages across packages, never had support for finding implementations of an interface, never had support for finding what interfaces a certain type matches/implements. These are basic features in any IDE for a language that has packages and interfaces. Really good IDE support would include refactoring (more than renaming a local variable/struct field, e.g. Extract Function, extract parameter), advanced navigation/analysis (analyze data flow to/from variable, find call stack etc). Go is somewhat decent in the tooling area, and you can get your job done with it, but it really doesn't have anything I would call good support in any area of tooling except the compiler (not code analysis, not debugging, not monitoring, not profiling, not package management).
- throwaway894345 6y ago> As far as I can tell, they never had support for finding usages across packages, never had support for finding implementations of an interface, never had support for finding what interfaces a certain type matches/implements. These are basic features in any IDE for a language that has packages and interfaces. I suppose it depends on what you're used to. I've never found myself wanting to do these things, but I'm also strictly from a Python and C++ background so my standards are admittedly lower than Java and C# people. Hopefully gopls solves for these problems.
- tsimionescu 6y agoIn C++, you have never tried to go to the definition vs declaration of a function? Or find calls to your class through a superclass?