News for hackers. Stuff that matters.
Re:Language Server Protocol by Eridrus on Monday October 03, 2016 @09:46AM (#12627380)
I'm on the fence about this, standardization let's people pool resources to provide common functionality, but it also ossifies the interface so that doing anything not supported by the interface becomes harder than before.

The first thing that pops into my head is that for languages with interprocedural type inference, I really want my IDE to show me what types it has inferred, but this is outside the spec and not even applicable to all languages.

Re:Language Server Protocol by hitr on Monday October 03, 2016 @09:59AM (#12627458)
With this,a new language can have an IDE integration done easily which can cover say 95% features. Some language specific feature may be obviously left out but getting a minimum viable integration to any supported IDE is a good thing.May be when this protocol evolves,it can give extension to the protocols to cover the other 5% features(or may be it is already there)
Re:Language Server Protocol by Eridrus on Monday October 03, 2016 @11:19AM (#12628047)
Heh. We'll see. Writing the glue code is not what makes writing language analysis hard. This is clearly a move to make the lives of IDE writers easier, rather than those who would be writing the analysis code.
Re:Language Server Protocol by euyyn on Monday October 03, 2016 @01:26PM (#12629411)
But it'd make your analysis code work for multiple IDEs and editors instead of having to learn about each's peculiarities. One less thing to worry about is always good.
Re:Language Server Protocol by avita1 on Monday October 03, 2016 @11:00AM (#12627843)
Are there any examples of extensible protocols like this in the wild? I'm asking because the only such protocol that seems to get mentioned on HN is XMPP (and always with groans).
Re:Language Server Protocol by riffraff on Monday October 03, 2016 @03:04PM (#12630340)
wouldn't inferred types fit into the "Diagnostic" interface? There are both "info" and "hint" levels which seem appropriate.

(I don't disagree with your general point, just curious about this specific example)

Re:Language Server Protocol by Eridrus on Tuesday October 04, 2016 @12:18PM (#12636612)
Sort of; the hover interface helps, but I would prefer it if the IDE showed it as if it was written there explicitly, not just when you hover over it.

Which requires explicit UI work, which this protocol won't support.