Closed
Description
I've have a small project I'm using to develop/test a widget.
https://github.com/bsutton/minicard
I'm using the flutter beta channel and running the project as a flutter web app.
If I run the project from the cli it runs fine, chrome starts and I can run the app and do hot reloads.
If I try to run it from vscode I get the following error:
Launching lib/main.dart on Chrome in debug mode...
Unable to connect to Chrome debug port: 37523
SocketException: OS Error: Connection refused, errno = 111, address = localhost, port = 46082
Exited (sigterm)
Running from the cli
flutter run -d chrome
Launching lib/main.dart on Chrome in debug mode...
Building application for the web... 8.6s
Attempting to connect to browser instance.. 2.2s
Warning: Flutter's support for web development is not stable yet and hasn't
been thoroughly tested in production environments.
For more information see https://flutter.dev/web
🔥 To hot restart changes while running, press "r". To hot restart (and refresh the browser), press "R".
For a more detailed help message, press "h". To quit, press "q".
Debug service listening on ws://127.0.0.1:36553/-CtK986JrCQ=
flutter doctor -v
[✓] Flutter (Channel beta, v1.12.13+hotfix.6, on Linux, locale en_AU.UTF-8)
• Flutter version 1.12.13+hotfix.6 at /home/bsutton/apps/flutter
• Framework revision 18cd7a3601 (4 weeks ago), 2019-12-11 06:35:39 -0800
• Engine revision 2994f7e1e6
• Dart version 2.7.0
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /home/bsutton/Android/Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• Java binary at: /home/bsutton/apps/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at google-chrome
[✓] Android Studio (version 3.5)
• Android Studio at /home/bsutton/apps/android-studio
• Flutter plugin version 40.2.2
• Dart plugin version 191.8423
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] IntelliJ IDEA Community Edition (version 2018.3)
• IntelliJ at /home/bsutton/apps/intellij/idea-IC-183.5912.21
• Flutter plugin version 37.0.1
• Dart plugin version 183.6270
[✓] Connected device (2 available)
• Chrome • chrome • web-javascript • Google Chrome 79.0.3945.88
• Web Server • web-server • web-javascript • Flutter Tools
• No issues found!
vs code details
Version: 1.41.1
Commit: 26076a4de974ead31f97692a0d32f90d735645c0
Date: 2019-12-18T15:04:31.999Z
Electron: 6.1.5
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Linux x64 5.3.0-26-generic snap