Auto-Completion on Types and Type Constructors defined in the same file (at least Record or Union) stopped working after upgrade to 1.0.0-beta76
See original GitHub issueafter the latest update I noticed that I am no longer able to auto-complete my defined types (and also their type constructors) where they are defined. I am on the latest IntelliJ Ultimate (2020.1.3)
However, this still works when putting them in a module and trying to access from a different file
I tried to update my Haskell tools which unfortunately did not help. I can also reproduce the problem in a fresh Haskell project.
Steps to reproduce:
- create a new haskell project (for instance with
stack new hello-haskell new-template
) - put in some types in Lib.hs
module Lib where
data Test = Test String
data Person = Person {first :: String, last :: String}
data Union = First | Second
someFunc :: IO ()
someFunc = putStrLn "someFunc"
when trying to use the types by starting to type in Lib.hs
(Test, Union, Person) or their Type constructors (Test, Person, First, Second) I don’t get any auto-completion suggestions. However, using them inside of Spec.hs
(after importing Lib, of course) works perfectly.
I noticed some strange TypeInfo in the auto-complete selection in 1.0.0-beta75 (which I am going back for now, as this is a deal breaker for me 😢). Thought it might help
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top GitHub Comments
Yeah, I can confirm that. Thanks for your help! ❤️
Should be fixed in beta78