haskell / haskell-ide-engine

The engine for haskell ide-integration. Not an IDE
BSD 3-Clause "New" or "Revised" License
2.38k stars 210 forks source link

Integrate HIE into sourcegraph #1202

Open mpickering opened 5 years ago

mpickering commented 5 years ago

sourcegraph is powered by language servers. It would be good to add proper Haskell support by writing an extension.

This amounts to starting up HIE in a docker container and then communicating with HIE using websockets. In theory writing the extension is then very easy using the lsp-client library but whether that is finished is unclear to me.

Relevant issues:

https://github.com/sourcegraph/sourcegraph/issues/2359 https://github.com/sourcegraph/lsp-client Python example: https://sourcegraph.com/extensions/sourcegraph/python https://www.npmjs.com/package/@sourcegraph/lsp-client https://about.sourcegraph.com/blog/improving-language-support-in-2019

mpickering commented 5 years ago

Indeed it looks like the lsp-client library is finished.

https://github.com/sourcegraph/sourcegraph-go/issues/28 https://github.com/sourcegraph/sourcegraph-go/pull/36 https://github.com/sourcegraph/sourcegraph-typescript/pull/106

alanz commented 5 years ago

I am pretty sure hie is already in sourcegraph, see this older commit: https://github.com/sourcegraph/lsp-adapter/blob/dc2ede25752a7a3878a5f63e4718dda0e096b8ab/dockerfiles/haskell-ide-engine/Dockerfile

mpickering commented 5 years ago

The lap-adapter approach appears to be deprecated. https://about.sourcegraph.com/blog/improving-language-support-in-2019