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.

Unused methods not greying-out when not referenced.

See original GitHub issue

The method is local to the library, if it’s not used, it should have greyed-out as it used to do. I tried restarting the IntelliJ Idea but nothing changed.

image

Flutter doctor:

[✓] Flutter (Channel dev, 1.24.0-10.2.pre, on Mac OS X 10.15.7 19H2 darwin-x64, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[!] Xcode - develop for iOS and macOS (Xcode 12.0.1)
    ! CocoaPods 1.8.4 out of date (1.9.0 is recommended).
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To upgrade see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] IntelliJ IDEA Community Edition (version 2020.2.3)
[✓] VS Code (version 1.49.0)

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
stevemessickcommented, Dec 6, 2020

Haha, np. Thanks for closing.

On Fri, Dec 4, 2020, 9:24 PM Dark Chocolate notifications@github.com wrote:

Closed #5075 https://github.com/flutter/flutter-intellij/issues/5075.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/flutter/flutter-intellij/issues/5075#event-4075218358, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACA7VDJQZOLNICYBDLNNMVTSTG7YLANCNFSM4UCDTNFA .

0reactions
dark-chocolatecommented, Dec 5, 2020

@stevemessick Sincere apologies. I just found that I was using:

// ignore_for_file: unused_element

Actually my original file had around 700 lines of code, so I didn’t notice that line when creating a new Foo class for your reference.

Read more comments on GitHub >

github_iconTop Results From Across the Web

IntelliJ IDEA greys out some unused methods but not all
In this class, it only greys out getReason() . It makes sense that it does not grey out the constructor or the fields....
Read more >
VS 2017 C# editor does not grey or fade out unused variables ...
1. Previously, unused local variables are automatically greyed out. Now, this only works when variable declaration and definitons are separate. For example: int ......
Read more >
Gray names for unused functions (using solution-wide-analysis)
In the 4.5 beta, using solution-wide analysis, public methods that were unused in the solution showed up with grayed out names (the same...
Read more >
Finding Unused methods - MSDN - Microsoft
If your requirement is not met with Resharper, then only option I can see is go to each method, right click on it,...
Read more >
Quick Tip - Remove Unused Using References in Visual Studio
First is putting your cursor on one of the grayed out lines and clicking the light bulb, then clicking Remove Unnecessary Usings. (NOTE:...
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