Skip to content

Conversation

@jonahwilliams
Copy link
Contributor

@jonahwilliams jonahwilliams commented Sep 10, 2019

Description

Allow configuration of the hostname and port number chosen for running the web devices, via --hostname and --port. if not specified, they default to localhost and an arbitrary free os port by default.

@fluttergithubbot fluttergithubbot added the tool Affects the "flutter" command-line tool. See also t: labels. label Sep 10, 2019
@flutter flutter deleted a comment from fluttergithubbot Sep 10, 2019
@codecov
Copy link

codecov bot commented Sep 11, 2019

Codecov Report

Merging #40191 into master will decrease coverage by 0.29%.
The diff coverage is 86.66%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #40191     +/-   ##
=========================================
- Coverage   59.32%   59.03%   -0.3%     
=========================================
  Files         192      192             
  Lines       18543    18551      +8     
=========================================
- Hits        11001    10951     -50     
- Misses       7542     7600     +58
Flag Coverage Δ
#flutter_tool 59.03% <86.66%> (-0.3%) ⬇️
Impacted Files Coverage Δ
packages/flutter_tools/lib/src/device.dart 58.82% <ø> (-2.95%) ⬇️
packages/flutter_tools/lib/src/web/web_device.dart 20.51% <0%> (-25.65%) ⬇️
packages/flutter_tools/lib/src/commands/run.dart 63.54% <100%> (+0.54%) ⬆️
...ools/lib/src/build_runner/resident_web_runner.dart 78.37% <100%> (+0.29%) ⬆️
.../flutter_tools/lib/src/runner/flutter_command.dart 81.38% <100%> (+0.24%) ⬆️
...ges/flutter_tools/lib/src/build_runner/web_fs.dart 22.22% <75%> (ø) ⬆️
...kages/flutter_tools/lib/src/linux/build_linux.dart 0% <0%> (-86.49%) ⬇️
packages/flutter_tools/lib/src/linux/makefile.dart 0% <0%> (-80%) ⬇️
...ckages/flutter_tools/lib/src/commands/channel.dart 3.07% <0%> (-69.24%) ⬇️
...es/flutter_tools/lib/src/commands/build_linux.dart 25% <0%> (-60%) ⬇️
... and 18 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 963c8a8...9afff8c. Read the comment docs.

@jonahwilliams jonahwilliams changed the title add initial configuration to skip launch and configure hostname add host and port to run configuration for web devices Sep 11, 2019
@jonahwilliams jonahwilliams marked this pull request as ready for review September 11, 2019 19:58
@jonahwilliams jonahwilliams added the platform-web Web applications specifically label Sep 11, 2019
@jonahwilliams
Copy link
Contributor Author

@nturgut could you try this out locally and confirm that it works for yoou?


/// Retrieve the [DebugConnection] for the current application.
///
/// if [useExtension] is true, will attempt to connect via the extension
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: "if" => "If"

Copy link
Contributor

@yjbanov yjbanov Sep 12, 2019

Choose a reason for hiding this comment

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

Also, are you sure "useExtension" is a thing? I don't see any other occurrences of it in this file 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

..right, I removed it... silly me

@jonahwilliams jonahwilliams merged commit 925a52f into flutter:master Sep 12, 2019
@jonahwilliams jonahwilliams deleted the no_launch_hostname branch September 12, 2019 15:58
}

void usesWebOptions({ bool hide = true }) {
argParser.addOption('hostname',
Copy link
Member

Choose a reason for hiding this comment

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

How about --web-hostname and --web-port ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

SGTM

Inconnu08 pushed a commit to Inconnu08/flutter that referenced this pull request Sep 30, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

platform-web Web applications specifically tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants