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.

wrong redundant import removed (beta64)

See original GitHub issue

For this example, I have a redundant imported symbol, per ghcid’s output:

image

intellij-idea shows the same redundant import image

and the following action: image

but when executed, line 23 was removed (the qualified import), not line 24: image

which is not what we wanted: image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
aryairanicommented, Apr 2, 2020

I think so. I did a lot of "Remove redundant import"s in beta66 yesterday (as you may have guessed), and didn’t encounter this issue.

0reactions
rikvdkleijcommented, Apr 5, 2020

@aryairani Can you confirm that changing the file e.g. by just pressing an enter, shows the warnings.

If that’s is the case then I know your issue and that is an non-deterministic issue for already long time. I’m investigating the right solution for this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

config: Remove redundant and incorrect rules from import ...
The import control configuration has become a bit out of sync and has to be updated in several places. I will list the...
Read more >
How to remove unused imports in Intellij IDEA on commit?
Go to Settings > Editor > General > Auto Import and check the Optimize ... Choose the project/module you want to remove unused...
Read more >
Imports - checkstyle
Checks that there are no import statements that use the * notation. Rationale: Importing all classes from a package or static members from...
Read more >
IDE0005: Remove unnecessary import - .NET - Microsoft Learn
Remove unnecessary using directives (IDE0005)​​ This rule flags the following unnecessary constructs. If unnecessary, these constructs can be  ...
Read more >
Remove unused import statements on the fly - YouTube
Unused import statements can happen due to many reasons. For example, you had written some code and deleted only the code, ...
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