-
Notifications
You must be signed in to change notification settings - Fork 340
Description
Describe the bug
Web device is not being detected when running VSCode from icon launcher but if it's run from terminal.
To Reproduce
Steps to reproduce the behavior:
- Run VSCode from its icon launcher which opens the latest Flutter project visited
- No Web device is detected

- If I run VSCode from terminal then my Web device is detected

Flutter detects Web device in both cases:
$ flutter devices
1 connected device:
Chrome (web) • chrome • web-javascript • Google Chrome 117.0.5938.149
This problem has emerged since the most recent VSCode and Flutter update .
More info
$ flutter doctor -v
[✓] Flutter (Channel stable, 3.13.6, on EndeavourOS 6.5.5-zen1-1-zen, locale en_US.UTF-8)
• Flutter version 3.13.6 on channel stable at /home/warcayac/Applications/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision ead455963c (10 days ago), 2023-09-26 18:28:17 -0700
• Engine revision a794cf2681
• Dart version 3.1.3
• DevTools version 2.25.0
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /home/warcayac/Android/Sdk
• Platform android-34, build-tools 34.0.0
• ANDROID_SDK_ROOT = /home/warcayac/Android/Sdk
• Java binary at: /opt/android-studio/jbr/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• CHROME_EXECUTABLE = /bin/google-chrome-stable
[✓] Android Studio (version 2022.3)
• 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 17.0.6+0-17.0.6b829.9-10027231)
[✓] Connected device (1 available)
• Chrome (web) • chrome • web-javascript • Google Chrome 117.0.5938.149
[✓] Network resources
• All expected network resources are available.
• No issues found!
I'm using the following setting (see this post)
{
"dart.env": {
"CHROME_EXECUTABLE": "/usr/bin/my-google-chrome"
}
}
I have similar environment variable in my .zshrc file.
Expected behavior
Either by icon launcher or from terminal the Web device should be available to select:
Screenshots
If applicable, add screenshots to help explain your problem.
Please complete the following information:
You can run the Dart: Collect Diagnostic Information command from the VS Code command palette (F1) to easily capture this information or provide it manually.
- Operating System and version:
OS: EndeavourOS Linux x86_64
Kernel: 6.5.5-zen1-1-zen
Shell: zsh 5.9
DE: Plasma 5.27.8
WM: KWin
- VS Code version:
Version: 1.83.0
Commit: e7e037083ff4455cf320e344325dacb480062c3c
Date: 2023-10-03T16:11:49.843Z
Electron: 25.8.4
ElectronBuildId: 24154031
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Linux x64 6.5.5-zen1-1-zen
- Dart extension version: v3.74.0
- Dart/Flutter SDK version:
Flutter 3.13.6 • channel stable • https://github.com/flutter/flutter.git
Framework • revision ead455963c (10 days ago) • 2023-09-26 18:28:17 -0700
Engine • revision a794cf2681
Tools • Dart 3.1.3 • DevTools 2.25.0
- Target device (if the issue relates to Flutter debugging):