Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#87] Fix completion via ghcide's getCompletionsLSP #107

Merged
merged 1 commit into from
May 13, 2020

Conversation

korayal
Copy link
Contributor

@korayal korayal commented May 11, 2020

fixes #71 and #87

This fix requires the ghcide's Development.IDE.Plugin.Completions module to expose getCompletionsLSP

This fix requires the ghcide's `Development.IDE.Plugin.Completions` module to
expose `getCompletionsLSP`
@Avi-D-coder
Copy link
Collaborator

Avi-D-coder commented May 11, 2020

@korayal It looks like the build is failing

@korayal
Copy link
Contributor Author

korayal commented May 11, 2020 via email

@ndmitchell
Copy link
Collaborator

@korayal - is there a corresponding upstream commit to expose it from ghcide?

@korayal
Copy link
Contributor Author

korayal commented May 12, 2020

@ndmitchell I haven't pushed that change to anywhere because hls is using @alanz 's fork. So I thought it would be easier to make the change there directly. But here you go:

korayal/ghcide@f594fd1

@Avi-D-coder
Copy link
Collaborator

I can confirm this fixed my issue, @korayal can you send a PR to @alanz's ghcide fork exposing getCompletionsLSP.

@korayal
Copy link
Contributor Author

korayal commented May 13, 2020

@Avi-D-coder done:
alanz/ghcide#3

@fendor
Copy link
Collaborator

fendor commented May 13, 2020

@korayal could you rather open it against https://github.com/mpickering/ghcide ?
That is the main-line fork that @alanz's pr is based on, we do not want to diverge from it.

@korayal
Copy link
Contributor Author

korayal commented May 13, 2020

@fendor sure, initially I was a bit confused where to make this PR, so I thought allowing the project maintainers to make the change wherever it's easiest. But, anyways, here you go: mpickering/ghcide#36

@fendor
Copy link
Collaborator

fendor commented May 13, 2020

sure, initially I was a bit confused where to make this PR

I feel you, it is not as transparent/hard to find in github.
Thank you for your PR!

@korayal
Copy link
Contributor Author

korayal commented May 13, 2020

@fendor @alanz since the necessary changes are merged, I think the next step to wrap this PR up is to merge the latest ghcide into the fork.

@alanz alanz merged commit 7edbf67 into haskell:master May 13, 2020
@fendor fendor mentioned this pull request May 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Language server returns empty array when invoking textDocument/completion
5 participants