-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find declaration to go to #2404
Comments
emmm... I think I solve it.
and then i found the *.iml not generated again. |
@aolose have you solved this problem? I do that as you describe , just can not open my project as a normal flutter project. |
It's not working for me. And the strange thing is other flutter projects are unaffected for now. |
not solved issue, reopen please |
For people seeing this issue, I would:
|
@Diaglyonok: does @devoncarew's suggestion work for you? |
No, this is not helps, I found only one solution - recreating the project, but after adding some dependency to pubspec.yaml it repeats again. |
Seems that one of the following actions (or their combination) solves the problem:
after any of these actions: Since this problem does not always appear, at the moment I cannot test these solutions again, if you have such a problem, try this solution and report the result, please. |
solution, that i suggested above (first) just tested and it worked for me again. |
Here's my output from the doctor.... Did a consistent solution ever appear? Thank you! C:\Users\Blake>flutter doctor -v [√] Android toolchain - develop for Android devices (Android SDK version 29.0.0) [√] Android Studio (version 3.4) [√] IntelliJ IDEA Community Edition (version 2018.2) [√] IntelliJ IDEA Community Edition (version 2018.3) [√] VS Code (version 1.35.1) [√] Connected device (1 available) • No issues found! |
same problem for me, any new solution? |
stopping Onedrive autosync solved the problem for me , i dont know why, how, or what's going on |
I am still having this problem with 1.17.4 |
I had this issue, but removing the root project .iml fixed it. |
Delete |
Same issue here when updating to Flutter 2 |
I noticed my problem was a local dependency added to my project: dependencies:
random_name:
path: ../random_name Using the git integration solved my problem. dependencies:
random_name:
git:
url: https://github.com/efraespada/random_name.git But it is crazy how a simple dependency can block/break your project indexation. |
This comment has been minimized.
This comment has been minimized.
Not a Flutter bug. I'm also looking for a fix of this problem... but i'm using React-Native (Android files in Java). 😏 |
Same issue Channel stable, 3.3.3 (Android) Android Studio (version 4.1) |
Same issue Channel stable,3.3.8 |
it works for me!!!! thanks |
Same problem. It gets worse with Records. |
This is enough to trigger the problem: Make a file named bug.dart: import 'package:flutter/widgets.dart';
Widget totalBuilder(List<(String, String)> none) {
return Container();
} Reproducible project: |
Does anyone have a solution? |
same problem for me, I moved my project to another folder, a folder with a nomenclature without an accent |
Thanks for the feedback! If your issue is related to the Flutter framework itself,
please open an issue at
github.com/flutter/flutter.
Steps to Reproduce
When Ctrl + Click ,ide shows :
Cannot find declaration to go to
Version info
Please paste the output of running
flutter doctor -v
here (available from the commandline or from
Tools > Flutter > Flutter Doctor
). It will provide the version of theFlutter framework as well as of the IntelliJ plugin.
The text was updated successfully, but these errors were encountered: