Skip to content

Chrome is not detected after restarting VSCode #4227

@warcayac

Description

@warcayac

Describe the bug
Chrome is not detected after restarting VSCode but it is in terminal.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new Web project on terminal: flutter create demodemo2 --platforms web
  2. Run: code demodemo2
  3. Chrome (web-javascript) is showed in Flutter device pane of VSCode
  4. Close VSCode
  5. Run VSCode from launcher
  6. No Device is showed in Flutter device pane
  7. Restart VSCode from terminal
  8. Go to step 3

Expected behavior
Chrome should always be detected no matter which media VSCode was started on.

Please complete the following information:

  • Operating System and version: EndeavourOS Linux x86_64, Kernel: 6.0.2-zen1-1-zen
  • VS Code version: 1.72.2
  • Dart extension version: 3.50.0
  • Dart/Flutter SDK version: Flutter 3.3.4, Dart 2.18.2
  • Target device (if the issue relates to Flutter debugging):

Log

!! PLEASE REVIEW THIS LOG FOR SENSITIVE INFORMATION BEFORE SHARING !!

Dart Code extension: 3.50.0
Flutter extension: 3.50.0 (not activated)

App: Visual Studio Code
Version: 1.72.2
Platform: linux

HTTP_PROXY: undefined
NO_PROXY: undefined

Logging Categories:
    General

Wed Oct 19 2022 [13:04:39 GMT-0500 (Peru Standard Time)] Log file started
[1:04:39 PM] [General] [Info] Searching for SDKs...
[1:04:39 PM] [General] [Info] Environment PATH:
[1:04:39 PM] [General] [Info]     /usr/local/sbin
[1:04:39 PM] [General] [Info]     /usr/local/bin
[1:04:39 PM] [General] [Info]     /usr/bin
[1:04:39 PM] [General] [Info]     /home/warcayac/.dotnet/tools
[1:04:39 PM] [General] [Info]     /var/lib/flatpak/exports/bin
[1:04:39 PM] [General] [Info]     /usr/lib/jvm/default/bin
[1:04:39 PM] [General] [Info]     /usr/bin/site_perl
[1:04:39 PM] [General] [Info]     /usr/bin/vendor_perl
[1:04:39 PM] [General] [Info]     /usr/bin/core_perl
[1:04:39 PM] [General] [Info] Took 161ms to search for projects (5 levels)
[1:04:39 PM] [General] [Info] Took 3ms to filter out excluded projects (0 exclusion rules)
[1:04:39 PM] [General] [Info] Found Flutter project at /home/warcayac/Projects/Programming/Flutter/_Various_/demodemo2:
			Mobile? true
			Web? false
			Create Trigger? false
			Flutter Repo? false
[1:04:39 PM] [General] [Info] Searching for flutter
[1:04:39 PM] [General] [Info]     Looking for flutter in:
[1:04:39 PM] [General] [Info]         /home/warcayac/Projects/Programming/Flutter/_Various_/demodemo2
[1:04:39 PM] [General] [Info]         /home/warcayac/Projects/Programming/Flutter/_Various_/demodemo2/bin
[1:04:39 PM] [General] [Info]         /home/warcayac/Applications/flutter/bin/
[1:04:39 PM] [General] [Info]         /home/warcayac/Projects/Programming/Flutter/_Various_/demodemo2/.flutter
[1:04:39 PM] [General] [Info]         /home/warcayac/Projects/Programming/Flutter/_Various_/demodemo2/.flutter/bin
[1:04:39 PM] [General] [Info]         /home/warcayac/Projects/Programming/Flutter/_Various_/demodemo2/vendor/flutter
[1:04:39 PM] [General] [Info]         /home/warcayac/Projects/Programming/Flutter/_Various_/demodemo2/vendor/flutter/bin
[1:04:39 PM] [General] [Info]         /home/warcayac/snap/flutter/common/flutter
[1:04:39 PM] [General] [Info]         /home/warcayac/snap/flutter/common/flutter/bin
[1:04:39 PM] [General] [Info]         /home/warcayac/flutter-sdk
[1:04:39 PM] [General] [Info]         /home/warcayac/flutter-sdk/bin
[1:04:39 PM] [General] [Info]         /google/flutter
[1:04:39 PM] [General] [Info]         /google/flutter/bin
[1:04:39 PM] [General] [Info]         /usr/local/sbin
[1:04:39 PM] [General] [Info]         /usr/local/bin
[1:04:39 PM] [General] [Info]         /usr/bin
[1:04:39 PM] [General] [Info]         /home/warcayac/.dotnet/tools
[1:04:39 PM] [General] [Info]         /home/warcayac/.dotnet/tools/bin
[1:04:39 PM] [General] [Info]         /var/lib/flatpak/exports/bin
[1:04:39 PM] [General] [Info]         /usr/lib/jvm/default/bin
[1:04:39 PM] [General] [Info]         /usr/bin/site_perl
[1:04:39 PM] [General] [Info]         /usr/bin/site_perl/bin
[1:04:39 PM] [General] [Info]         /usr/bin/vendor_perl
[1:04:39 PM] [General] [Info]         /usr/bin/vendor_perl/bin
[1:04:39 PM] [General] [Info]         /usr/bin/core_perl
[1:04:39 PM] [General] [Info]         /usr/bin/core_perl/bin
[1:04:39 PM] [General] [Info]     Found at:
[1:04:39 PM] [General] [Info]         /home/warcayac/Applications/flutter/bin/
[1:04:39 PM] [General] [Info]     Candidate paths to be post-filtered:
[1:04:39 PM] [General] [Info]         /home/warcayac/Applications/flutter
[1:04:39 PM] [General] [Info]     Found at /home/warcayac/Applications/flutter
[1:04:39 PM] [General] [Info]     Returning SDK path /home/warcayac/Applications/flutter for flutter
[1:04:39 PM] [General] [Info] Searching for dart
[1:04:39 PM] [General] [Info]     Looking for dart in:
[1:04:39 PM] [General] [Info]         /home/warcayac/Applications/flutter/bin/cache/dart-sdk
[1:04:39 PM] [General] [Info]         /home/warcayac/Applications/flutter/bin/cache/dart-sdk/bin
[1:04:39 PM] [General] [Info]         /home/warcayac/Applications/dart-sdk
[1:04:39 PM] [General] [Info]         /home/warcayac/Applications/dart-sdk/bin
[1:04:39 PM] [General] [Info]         /usr/local/sbin
[1:04:39 PM] [General] [Info]         /usr/local/bin
[1:04:39 PM] [General] [Info]         /usr/bin
[1:04:39 PM] [General] [Info]         /home/warcayac/.dotnet/tools
[1:04:39 PM] [General] [Info]         /home/warcayac/.dotnet/tools/bin
[1:04:39 PM] [General] [Info]         /var/lib/flatpak/exports/bin
[1:04:39 PM] [General] [Info]         /usr/lib/jvm/default/bin
[1:04:39 PM] [General] [Info]         /usr/bin/site_perl
[1:04:39 PM] [General] [Info]         /usr/bin/site_perl/bin
[1:04:39 PM] [General] [Info]         /usr/bin/vendor_perl
[1:04:39 PM] [General] [Info]         /usr/bin/vendor_perl/bin
[1:04:39 PM] [General] [Info]         /usr/bin/core_perl
[1:04:39 PM] [General] [Info]         /usr/bin/core_perl/bin
[1:04:39 PM] [General] [Info]         /home/warcayac/Applications/flutter/bin/cache/dart-sdk
[1:04:39 PM] [General] [Info]         /home/warcayac/Applications/flutter/bin/cache/dart-sdk/bin
[1:04:39 PM] [General] [Info]     Found at:
[1:04:39 PM] [General] [Info]         /home/warcayac/Applications/flutter/bin/cache/dart-sdk/bin
[1:04:39 PM] [General] [Info]         /home/warcayac/Applications/dart-sdk/bin
[1:04:39 PM] [General] [Info]         /home/warcayac/Applications/flutter/bin/cache/dart-sdk/bin
[1:04:39 PM] [General] [Info]     Candidate paths to be post-filtered:
[1:04:39 PM] [General] [Info]         /home/warcayac/Applications/flutter/bin/cache/dart-sdk
[1:04:39 PM] [General] [Info]         /home/warcayac/Applications/dart-sdk
[1:04:39 PM] [General] [Info]         /home/warcayac/Applications/flutter/bin/cache/dart-sdk
[1:04:39 PM] [General] [Info]     Found at /home/warcayac/Applications/flutter/bin/cache/dart-sdk
[1:04:39 PM] [General] [Info]     Returning SDK path /home/warcayac/Applications/flutter/bin/cache/dart-sdk for dart
[1:04:39 PM] [General] [Info] Experiment random number is 73 for experiment 'sdkDaps'. Experiment is enabled for <= 10
[1:04:39 PM] [General] [Info] Experiment 'sdkDaps' does not apply and will not be activated
[1:04:39 PM] [General] [Info] !! PLEASE REVIEW THIS LOG FOR SENSITIVE INFORMATION BEFORE SHARING !!

Dart Code extension: 3.50.0
Flutter extension: 3.50.0 (not activated)

App: Visual Studio Code
Version: 1.72.2
Platform: linux

Workspace type: Flutter
Analyzer type: LSP
Multi-root?: false

Dart SDK:
    Loc: /home/warcayac/Applications/flutter/bin/cache/dart-sdk
    Ver: 2.18.2
Flutter SDK:
    Loc: /home/warcayac/Applications/flutter
    Ver: 3.3.4

HTTP_PROXY: undefined
NO_PROXY: undefined
[1:04:39 PM] [General] [Info] Returning cached results for project search
[1:04:39 PM] [General] [Info] Activating Flutter extension for Flutter project...
[1:04:39 PM] [General] [Info] Extension:Startup timing: 234ms
[1:04:39 PM] [General] [Info] Found 0 folders requiring "pub get":
[1:04:39 PM] [General] [Info] Caching Pub package names from pub.dev...
[1:04:40 PM] [General] [Info] !! PLEASE REVIEW THIS LOG FOR SENSITIVE INFORMATION BEFORE SHARING !!

Dart Code extension: 3.50.0
Flutter extension: 3.50.0 (activated)

App: Visual Studio Code
Version: 1.72.2
Platform: linux

Workspace type: Flutter
Analyzer type: LSP
Multi-root?: false

Dart SDK:
    Loc: /home/warcayac/Applications/flutter/bin/cache/dart-sdk
    Ver: 2.18.2
Flutter SDK:
    Loc: /home/warcayac/Applications/flutter
    Ver: 3.3.4

HTTP_PROXY: undefined
NO_PROXY: undefined
[1:04:40 PM] [General] [Info] Analyzer:Startup timing: 738ms
[1:04:44 PM] [General] [Info] Analyzer:FirstAnalysis timing: 3111ms

I'm using this setting in setting.json file:

  "dart.flutterRunAdditionalArgs": [
    "--enable-software-rendering"
  ],

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions