Skip to content

Conversation

@kenzieschmoll
Copy link
Member

@kenzieschmoll kenzieschmoll added the autosubmit Merge PR when tree becomes green via auto submit App label Jan 22, 2024
@auto-submit
Copy link

auto-submit bot commented Jan 22, 2024

auto label is removed for flutter/devtools/7085, due to - The status or check suite Verify PR Release Note Requirements has failed. Please fix the issues identified (or deflake) before re-applying this label.

@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Jan 22, 2024
@kenzieschmoll kenzieschmoll merged commit bc67308 into flutter:master Jan 22, 2024
@kenzieschmoll kenzieschmoll deleted the dart-cmd branch January 22, 2024 23:57
Copy link
Contributor

@DanTup DanTup 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 a small nit I'll open a PR about.

// the "dart devtools" command for testing local DevTools/server changes.
...remainingArguments,
],
].join(' '),
Copy link
Contributor

Choose a reason for hiding this comment

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

It's not safe for us to combine these with spaces here because if serveLocalScriptPath or remainingArguments contain spaces, they'll be split into separate arguments. For example my Dart SDKs are in a folder named "Dart SDKs" on my Mac.

We've had some issues because of this in the past (like #6679).

I think we should remove all of the split(' ') code inside these helpers because it's too easy to accidentally pass things strings that had variables in that may or may not have spaces. If it's convenient to use strings for some things, I think we should add the .split(' ') in the call instead (so it's next to the string that may be using interpolated variables and much clearer that there may be a bug).

I'll open a PR to see what this looks like and discuss.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Run with custom devtools not working

3 participants