Skip to content

No Devices available in vs code, even if flutter lists two devices. Ubuntu 18.04. #1885

@oppsig

Description

@oppsig
  • VSCode Version: 1.36.1
  • OS Version: Ubuntu 18.04

Steps to Reproduce:

  1. git clone https://github.com/google/flutter-desktop-embedding
  2. open example folder in vs code.
  3. install flutter / dart extentions.
  4. edit settings.json file:
{
    "dart.env": {
        **"FLUTTER_DESKTOP_EMBEDDING": true,**
        "dart.flutterSdkPath": "/home/kodi/development/flutter/bin/flutter", 
        "dart.sdkPath": "/usr/lib/dart/bin/dart",
    },
}
  1. try to build lib/main.dart with F5 menu.

Issue:
I'cant select flutter device linux within vs code on my Ubuntu 18.04 install.
Even if flutter doctor detects two devices, and one of them is linux, vs code shows No Devices.
This is however not a problem in my archlinux install.
The only difference i can tell is that my archlinux install runs clang 8 and GNU make 4.2.1.
That shouldn't matter should it?

Output of flutter doctor -v

➜  project git:(master) flutter doctor -v
[✓] Flutter (Channel master, v1.8.2-pre.125, on Linux, locale en_US.UTF-8)
    • Flutter version 1.8.2-pre.125 at /home/kodi/development/flutter
    • Framework revision 4bc2bf67c1 (18 hours ago), 2019-07-21 10:47:27 -0400
    • Engine revision fc68f6abc2
    • Dart version 2.5.0 (build 2.5.0-dev.1.0 a089199b93)

 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
    • Android SDK at /home/kodi/development/android-sdk/
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.1
    • Java binary at: /usr/lib/jvm/java-8-oracle/bin/java
    • Java version Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • clang++ 6.0.0
    • GNU Make 4.1

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/setup/#android-setup for detailed instructions).

[✓] VS Code (version 1.36.1)
    • VS Code at /usr/share/code
    • Flutter extension version 3.2.0

[✓] Connected device (2 available)
    • Linux  • Linux  • linux-x64      • Linux
    • Chrome • chrome • web-javascript • Google Chrome 75.0.3770.142 

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting infoRequires more information from the customer to progress

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions