question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 issue

after 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

grafik

grafik

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
enolivecommented, Jul 22, 2020

Yeah, I can confirm that. Thanks for your help! ❤️

0reactions
rikvdkleijcommented, Jul 21, 2020

Should be fixed in beta78

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why autocomplete stop working in an object with type in ...
I have a list of routes in one object and want to import it in other file and have autocomplete for object ...
Read more >
Solved: Re: CLI auto-complete stopped working after 8.2. u...
Functionality worked before the upgrade. After upgrade logon shows "Tab-completion of "splunk <verb> <object> is available".
Read more >
Literal String Union Autocomplete · Issue #29729 - GitHub
Autocomplete works for literal string unions, but adding a union of string negates autocomplete entirely.
Read more >
Bug: Auto-complete doesn't work for Java in eclipse 2021-03
So I fixed the ini file. But autocomplete doesn't work. The first time I try it I get a popup that has just...
Read more >
Code completion in C# | JetBrains Fleet Documentation
The functionality described below is only available in .NET/.NET Core and ASP.NET Core projects and requires ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found