mootw · GitHub

To Reproduce
Steps to reproduce the behavior:

  1. Use a non-standard chrome executable and have it defined in ENV.

Expected behavior
VSCode to launch using the web platform.

** actual behavior **
Error shows in debug console

No supported devices found with name or id matching 'chrome'.
The following devices were found:
Linux (desktop) • linux • linux-x64 • Arch Linux 6.0.2-arch1-1
Exited (1).

Screenshots
If applicable, add screenshots to help explain your problem.

user settings

{
  "workbench.iconTheme": "material-icon-theme",
  "editor.fontSize": 15,
  "editor.cursorSmoothCaretAnimation": true,
  "dart.warnWhenEditingFilesOutsideWorkspace": false,
  "editor.largeFileOptimizations": false,
  "files.autoSave": "afterDelay",
  "dart.env": {
    "CHROME_EXECUTABLE": "/usr/bin/google-chrome-stable",
  },
  "dart.flutterSdkPath": "/home/USERNAME/development/flutter",
  "editor.stickyScroll.enabled": true,
  "typescript.updateImportsOnFileMove.enabled": "always",
}

flutter doctor -v

[✓] Flutter (Channel beta, 3.4.0-34.1.pre, on Arch Linux 6.0.2-arch1-1, locale en_US.UTF-8)
    • Flutter version 3.4.0-34.1.pre on channel beta at /home/USERNAME/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 71520442d4 (4 weeks ago), 2022-10-05 16:38:28 -0500
    • Engine revision db0cbb2145
    • Dart version 2.19.0 (build 2.19.0-255.2.beta)
    • DevTools version 2.18.0
[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
    • Android SDK at /home/USERNAME/Android/Sdk
    • Platform android-33, build-tools 32.0.0
    • Java binary at: /opt/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.
[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = google-chrome-stable
[✓] Linux toolchain - develop for Linux desktop
    • clang version 14.0.6
    • cmake version 3.24.2
    • ninja version 1.11.1
    • pkg-config version 1.8.0
[✓] Android Studio (version 2021.2)
    • Android Studio at /opt/android-studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
[✓] Connected device (2 available)
    • Linux (desktop) • linux  • linux-x64      • Arch Linux 6.0.2-arch1-1
    • Chrome (web)    • chrome • web-javascript • Google Chrome 106.0.5249.119
[✓] HTTP Host Availability
    • All required HTTP hosts are available
• No issues found!

Read the original on github.com ↗