-
-
Notifications
You must be signed in to change notification settings - Fork 390
ghcide does not recognize the DerivingVia extension #746
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
Comments
It's not just |
Can someone elaborate a little more on what the behavior is supposed to be? |
maybe @ndmitchell could help with |
@gdevanla feel free to go into #haskell-ide-engine room in freenode irc (you can use https://kiwiirc.com/nextclient/ for example) and ask about hls, ghcide, haskell-lsp, etc topics. Not always is active but hopefully someone will answer sooner or later. |
I am not able to see any completions on extensions using latest HLS and Emacs. I think, since there is an diagnostic error, the completions is not getting triggered. Here is the screen shot of what I see. Because of this error completions are not reevaluated and we only get completions from already cached results. I am using Emacs, and master of hls/ghcide. |
I feel like we could move By moving it our into its own rule( outside NonLocalCompletions) we can show this completions, without encountering the parser error I am observing now. Is that approach acceptable? Are there any negative implication to that approach I should be aware of? If not, I will attempt to make that change. |
Yes, this goes in the right direction. My preference would be to decompose the completions code into multiple providers, which is exactly what the plugin model in haskell-language-server does. Given that there is already a plugin to suggest pragmas in HLS, which at the moment it only provides code actions, I would support moving the completions code to that plugin, and at the same time take the chance to get rid of the code action in ghcide that does the same thing as reported in #380. |
Thanks @pepeiborra . The plugin seems to be the perfect place to add this change. I will move the functionality there. But, can you clarify how this is related to haskell/ghcide#380. I may be missing some context here. |
Oops, I meant github.com//issues/380 |
I'm pretty sure this issue no longer exists in version 0.6.0.0. |
I have not been able to get this working with latest (master) hls/ghcide on Emacs. I need to dig deeper to see if this is an Emacs issue. Whenever, my cursor is inside the bounds of this text {-# #-}, I do not see any requests for 'textdocument/CodeCompletion' going out to the server at least in Emacs. If others feel this is only an Emacs issue than we can close this ticket. For now, I am trying to reproduce this outside any editor. The HLS plugin currently does not have any tests, and many tests in HLS seemed to be commented out. Update: I did confirm that this works fine on VS Code. Update 2: I have logged an issue emacs-lsp/lsp-haskell#95 on emacs-lsp. Depending on the resolution we can close this issue. |
I fixed this issue with Emacs here. I think this issue can be closed. |
closing |
It does not show up during completion.
The text was updated successfully, but these errors were encountered: