Skip to content

Conversation

@elliette
Copy link
Member

Follow-up to #8621

I noticed that running DevTools locally in VS Code was timing out. This is because the output is JSON when running with --machine.

If --machine is true, we simply run the serve process instead of starting it and handling the output ourselves.

// If --machine flag is true, then the output is a tool-readable JSON.
// Therefore, skip reading the process output and instead just run the
// process.
return processManager.runProcess(
Copy link
Member

@kenzieschmoll kenzieschmoll Dec 17, 2024

Choose a reason for hiding this comment

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

if we run the process I think we will wait for this process to exit, which will cause this script to fail for the case where runApp is true. We wait for the serveLocalProcess exit below, so we should be able to use startIndependentProcess here still

Copy link
Member Author

Choose a reason for hiding this comment

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

Chatted offline that for now we can check whether --machine and --run-app are both set and if so throw an exception.

@elliette elliette merged commit 65ceb66 into flutter:master Dec 17, 2024
24 checks passed
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.

2 participants