wrong redundant import removed (beta64)
See original GitHub issueFor this example, I have a redundant imported symbol, per ghcid
’s output:
intellij-idea shows the same redundant import
and the following action:
but when executed, line 23 was removed (the qualified import), not line 24:
which is not what we wanted:
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
@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.