-
Notifications
You must be signed in to change notification settings - Fork 330
Take 2 on "Some initial work for FlutterWeb apps" change #3342
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
Conversation
@NotNull | ||
private final List<String> args; | ||
|
||
// TODO(github.com/flutter/flutter-intellij/issues/3293) This is a temporary "<pub-cache>/bin/webdev" that can be provided to test some |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please update these to bugs related to the problem being solved with the workaround not the feature being implemented.
its fine if the bug descriptions are short but that will make more sense to users viewing the TODO. For example, the bug you linked to will be closed but the TODOs will still exist. In general the bugs for the TODO should not be closed until the TODO is removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do, I suppose it will make it more explicit, right now the issue, #3293, has a list of tasks associated with it... I will create some additional more explicit issues to track the specific tasks (4th bullet point, in this case.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, #3348
|
||
line.setExePath(FileUtil.toSystemDependentName(sdk.getHomePath() + "/bin/" + FlutterSdkUtil.flutterScriptName())); | ||
/** | ||
* Creates a FlutterWeb command line to run. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this comment as it doesn't add any value beyond the method name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/io/flutter/sdk/FlutterSdk.java
Outdated
args.add("run"); | ||
args.add("webdev"); | ||
args.add("daemon"); | ||
// TODO After debug is supported by webdev, this should be modified to check for debug and add any additional needed flags: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a bug related to this TODO or add your username to the todo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, #3349
+ e.toString() + "\n" + | ||
formatStackTraces(e)); | ||
return; | ||
// TODO(github.com/flutter/flutter-intellij/issues/3293, github.com/dart-lang/webdev/issues/233) The following check disables the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as other cases. add a bug for the TODO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually in this case only list the one bug related to the issue and not the bug describing the feature you are implementing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/io/flutter/run/LaunchState.java
Outdated
final Project project = getEnvironment().getProject(); | ||
final FlutterDevice device = DeviceService.getInstance(project).getSelectedDevice(); | ||
|
||
// If the device is null and the project is not a flutter web project, show a message that a device is required and return null. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: make the comment explain that flutter web doesn't yet support devices so this tweak is needed. As is the comment explains what happens which is visible from the code but not why that is a good thing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm with some nits. it would be good to fix up the TODOs that reference the wrong bug before commit.
* Take 2 on "Some initial work for FlutterWeb apps" change that was reverted. * last commetns from @jacob314
The fix to the
flutter run
regression is in DartVmServiceDebugProcess.javaOriginal, reverted, PR: #3315
Tracking issue: #3293