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

Custom Tactic Block won't work with GHC 9.0 #2942

Closed
konn opened this issue Jun 6, 2022 · 2 comments
Closed

Custom Tactic Block won't work with GHC 9.0 #2942

konn opened this issue Jun 6, 2022 · 2 comments
Labels
component: wingman type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..

Comments

@konn
Copy link
Collaborator

konn commented Jun 6, 2022

Your environment

Which OS do you use: macOS Monterey 12.4

Which LSP client (editor/plugin) do you use: VSCode 1.67.2
GHC: 9.0.2

Describe your project (alternative: link to the project): a simple project with GHC 9.0.2 consisting of the single file:

{-# LANGUAGE DataKinds #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE StandaloneKindSignatures #-}
{-# LANGUAGE TypeFamilies #-}

module Lib where

data Type1 = A | B
  deriving (Show)

data SType1 (t :: Type1) where
  SA :: SType1 'A
  SB :: SType1 'B

type Eql :: Type1 -> Type1 -> Bool
type family Eql l r where
  Eql 'A 'A = 'True
  Eql 'A 'B = 'False
  Eql 'B 'A = 'False
  Eql 'B 'B = 'True

data SBool (b :: Bool) where
  STrue :: SBool 'True
  SFalse :: SBool 'False

sEql :: SType1 l -> SType1 r -> SBool (Eql l r)
sEql = _

Steps to reproduce

  1. Invoke Wingman: use custom tactic block code action at the _ on the RHS of sEql.2.
  2. Hover on [wingman||] or open diagnostics.

Expected behaviour

Goals and assumptions must be shown in the diagnostics in [wingman||].
Also, there must be code action Run custom tactic.

Actual behaviour

All of the above are missing and there is Use custom tactic block code action even after one invokes the same code action.

Include debug information

lsp.log

@konn konn added type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc.. component: wingman status: needs triage labels Jun 6, 2022
@isovector
Copy link
Collaborator

Try enabling the DEBUG flag used by Wingman.Debug (I'm not sure how to enable it, sorry --- maybe just recompile with the debugging stuff in that module not commented out). The log from that will be much more helpful :)

@michaelpj
Copy link
Collaborator

Did you figure this one out in the end?

@Ailrun Ailrun added status: needs info Not actionable, because there's missing information and removed status: needs info Not actionable, because there's missing information labels Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: wingman type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Projects
None yet
Development

No branches or pull requests

4 participants