Skip to content

when run hello_world in flutter_web #2263

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

Closed
mohamedanwer006 opened this issue May 10, 2019 · 1 comment
Closed

when run hello_world in flutter_web #2263

mohamedanwer006 opened this issue May 10, 2019 · 1 comment

Comments

@mohamedanwer006
Copy link

Connecting to the build daemon...
Generating build script...
Generating build script completed, took 572ms

Deleted previous snapshot due to missing asset graph.
Creating build script snapshot......
Creating build script snapshot... completed, took 13.1s

Starting daemon...
BuildDefinition: Initializing inputs

BuildDefinition: Building new asset graph...

BuildDefinition: Building new asset graph completed, took 1.7s

BuildDefinition: Checking for unexpected pre-existing outputs....

BuildDefinition: Checking for unexpected pre-existing outputs. completed, took 1ms

BuildDefinition: Initializing inputs
BuildDefinition: Building new asset graph...
BuildDefinition: Building new asset graph completed, took 1.7s

BuildDefinition: Checking for unexpected pre-existing outputs....
BuildDefinition: Checking for unexpected pre-existing outputs. completed, took 1ms

build_runner: Setting up file watchers...
build_runner: Setting up file watchers completed, took 2ms

You have hit a bug in build_runner
Please file an issue with reproduction steps at https://github.com/dart-lang/build/issues

SocketException: Failed to create server socket (OS Error: Failed to start accept), address = localhost, port = 0
dart:_http HttpServer.bind
package:shelf/shelf_io.dart 45:20 serve
package:build_daemon/src/server.dart 82:21 Server.listen
package:build_daemon/src/daemon.dart 71:30 Daemon.start
dart:async _AsyncAwaitCompleter.start
package:build_daemon/src/daemon.dart 58:21 Daemon.start
package:build_runner/src/entrypoint/daemon.dart 74:20 DaemonCommand.run
dart:async _completeOnAsyncReturn
package:build_runner/src/daemon/asset_server.dart AssetServer.run
dart:async _completeOnAsyncReturn
package:http_multi_server/http_multi_server.dart HttpMultiServer._loopback
dart:async _completeOnAsyncReturn
package:http_multi_server/src/utils.dart supportsIPv6.

Unhandled exception:
Bad state: Unable to start build daemon.
#0 _handleDaemonStartup (package:build_daemon/client.dart:52:5)

#1 BuildDaemonClient.connect (package:build_daemon/client.dart:142:11)

#2 connectClient (package:webdev/src/daemon_client.dart:17:23)
#3 _startBuildDaemon (package:webdev/src/serve/dev_workflow.dart:24:18)

#4 DevWorkflow.start (package:webdev/src/serve/dev_workflow.dart:165:24)

#5 DaemonCommand.run (package:webdev/src/command/daemon_command.dart:77:36)

#6 CommandRunner.runCommand (package:args/command_runner.dart:196:27)

#7 _CommandRunner.runCommand (package:webdev/src/webdev_command_runner.dart:38:24)

#8 CommandRunner.run. (package:args/command_runner.dart:111:29)
#9 new Future.sync (dart:async/future.dart:224:31)
#10 CommandRunner.run (package:args/command_runner.dart:111:11)
#11 run (package:webdev/src/webdev_command_runner.dart:19:56)
#12 main (file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/webdev-2.0.4/bin/webdev.dart:17:22)

#13 _startIsolate. (dart:isolate-patch/isolate_patch.dart:298:32)
#14 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:171:12)
pub finished with exit code 255

@jakemac53
Copy link
Contributor

Duplicate of dart-lang/webdev#375, basically this means we failed to get an open port from your machine.

Please file some of the resolution steps listed there and if they don't work comment there to get additional help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants