Open ghost opened 4 years ago
@dnfield commented on May 16, 2020, 3:37 PM UTC:
Which IDE are you using?
This seems like a bug in an IDE plugin, or perhaps a bug in the analysis server.
@dnfield commented on May 16, 2020, 3:38 PM UTC:
/cc @DanTup @jacob314
@subzero911 commented on May 16, 2020, 3:38 PM UTC:
I use Android Studio
@DanTup commented on May 18, 2020, 8:23 AM UTC:
If IntelliJ handles this the same as VS Code, this is likely coming from the analysis server. (@bwilkerson @scheglov)
@bwilkerson commented on May 18, 2020, 3:10 PM UTC:
Yes, this looks like an issue in the analysis server. Please move this issue to the sdk repository.
@scheglov In case you have any insight as to why this might be happening.
I don't have much to add.
In general we use the URI that SourceFactory
restored from the path.
@subzero911 commented on May 16, 2020, 9:48 AM UTC:
Steps to Reproduce
Expected results: Project relative path generated: import 'package:chatapp/widgets/auth/auth_form.dart';
Actual results: Absolute disk path generated: import 'file:///D:/Flutter/chat_app/lib/widgets/auth/auth_form.dart';
Obviously if you move your project to the other folder this path would be wrong. Thus it's not a appropriate behaviour.
This issue was moved by devoncarew from flutter/flutter-intellij#4551.