Skip to content

Conversation

jwren
Copy link
Member

@jwren jwren commented Apr 1, 2019

The fix to the flutter run regression is in DartVmServiceDebugProcess.java

Original, reverted, PR: #3315
Tracking issue: #3293

@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
Copy link
Contributor

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.

Copy link
Member Author

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.)

Copy link
Member Author

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.
Copy link
Contributor

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

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:
Copy link
Contributor

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.

Copy link
Member Author

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
Copy link
Contributor

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

Copy link
Contributor

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

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.
Copy link
Contributor

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

Copy link
Contributor

@jacob314 jacob314 left a 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.

@jwren jwren merged commit 7fbb724 into flutter:master Apr 3, 2019
alexander-doroshko pushed a commit to alexander-doroshko/flutter-intellij that referenced this pull request Jan 24, 2020
* Take 2 on "Some initial work for FlutterWeb apps" change that was reverted.

* last commetns from @jacob314
@jwren jwren deleted the FlutterWeb-run-config-03 branch October 18, 2023 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants