Skip to content

VS Code installed via Flatpak is not detected by flutter tool #137122

Closed

Description

@KristijanZic

Is there an existing issue for this?

Steps to reproduce

  1. Install VS Code or VS Code Insiders via Flatpak from Flathub
    1.5. If needed setup Flatpak and Flathub repo for your distro first.
  2. execute flutter doctor -v.
  3. Observe both VS Code or VS Code Insiders installed via Flatpak not showing up.

I'd like to be assigned to this issue and fix it. :)

Expected results

VS Code and VS Code Insiders installed via Flatpak being picked up by flutter_tools and shown in the output of the flutter doctor command.

Actual results

VS Code and VS Code Insiders installed via Flatpak is not being picked up by the flutter_tools and is missing from the output of the flutter doctor command.

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
Building flutter tool...
Resolving dependencies... (2.6s)
Got dependencies.
    • Framework revision 27bc1cf61a (87 minutes ago), 2023-10-23 19:25:23 -0400
    • Engine revision 0bd703132c
    • Dart version 3.3.0 (build 3.3.0-53.0.dev)
    • DevTools version 2.28.1
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /home/aresminos/Android/Sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /snap/android-studio/128/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 at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • Ubuntu clang version 14.0.0-1ubuntu1.1
    • cmake version 3.22.1
    • ninja version 1.10.1
    • pkg-config version 0.29.2

[✓] Android Studio (version 2022.3)
    • Android Studio at /snap/android-studio/128/android-studio
    • Flutter plugin version 75.1.2
    • 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 (2 available)
    • Linux (desktop) • linux  • linux-x64      • Ubuntu 22.04.3 LTS 6.2.0-35-generic
    • Chrome (web)    • chrome • web-javascript • Google Chrome 118.0.5993.88

[✓] Network resources
    • All expected network resources are available.

Activity

  1. added
    in triagePresently being triaged by the triage team
    on Oct 24, 2023
  2. huycozy commented on Oct 24, 2023

    @huycozy
    Member

    Thanks for filing the issue. I can reproduce this as well.

    VS Code path on system:

    huynq@ubuntu:~$ ls /var/lib/flatpak/app
    com.visualstudio.code
    flutter doctor -v (stable & master)
    [✓] Flutter (Channel stable, 3.13.8, on Ubuntu 22.04.3 LTS 6.2.0-34-generic, locale en_US.UTF-8)
        • Flutter version 3.13.8 on channel stable at /home/huynq/Documents/Working/flutter
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision 6c4930c4ac (6 days ago), 2023-10-18 10:57:55 -0500
        • Engine revision 767d8c75e8
        • Dart version 3.1.4
        • DevTools version 2.25.0
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0-rc3)
        • Android SDK at /home/huynq/Android/Sdk/
        • Platform android-33, build-tools 34.0.0-rc3
        • Java binary at: /home/huynq/Documents/android-studio/jre/bin/java
        • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
        • All Android licenses accepted.
    
    [✓] Chrome - develop for the web
        • Chrome at google-chrome
    
    [✓] Linux toolchain - develop for Linux desktop
        • clang version 10.0.0-4ubuntu1
        • cmake version 3.22.1
        • ninja version 1.10.1
        • pkg-config version 0.29.2
    
    [✓] Android Studio (version 2021.1)
        • Android Studio at /home/huynq/Documents/android-studio/
        • Flutter plugin version 67.0.1
        • Dart plugin version 211.7817
        • android-studio-dir = /home/huynq/Documents/android-studio/
        • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
    
    [✓] Connected device (2 available)
        • Linux (desktop) • linux  • linux-x64      • Ubuntu 22.04.3 LTS 6.2.0-34-generic
        • Chrome (web)    • chrome • web-javascript • Google Chrome 118.0.5993.70
    
    [✓] Network resources
        • All expected network resources are available.
    
    • No issues found!
    [!] Flutter (Channel master, 3.16.0-15.0.pre.42, on Ubuntu 22.04.3 LTS 6.2.0-34-generic, locale
        en_US.UTF-8)
        • Flutter version 3.16.0-15.0.pre.42 on channel master at
          /home/huynq/Documents/Working/flutter_master
        ! Warning: `flutter` on your path resolves to /home/huynq/Documents/Working/flutter/bin/flutter,
          which is not inside your current Flutter SDK checkout at
          /home/huynq/Documents/Working/flutter_master. Consider adding
          /home/huynq/Documents/Working/flutter_master/bin to the front of your path.
        ! Warning: `dart` on your path resolves to /home/huynq/Documents/Working/flutter/bin/dart, which is
          not inside your current Flutter SDK checkout at /home/huynq/Documents/Working/flutter_master.
          Consider adding /home/huynq/Documents/Working/flutter_master/bin to the front of your path.
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision 0f5bf521b2 (24 hours ago), 2023-10-23 04:46:09 -0400
        • Engine revision 1dc66e8f2f
        • Dart version 3.3.0 (build 3.3.0-48.0.dev)
        • DevTools version 2.28.1
        • If those were intentional, you can disregard the above warnings; however it is recommended to use
          "git" directly to perform update checks and upgrades.
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0-rc3)
        • Android SDK at /home/huynq/Android/Sdk/
        • Platform android-33, build-tools 34.0.0-rc3
        • Java binary at: /home/huynq/Documents/android-studio/jre/bin/java
        • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
        • All Android licenses accepted.
    
    [✓] Chrome - develop for the web
        • Chrome at google-chrome
    
    [✓] Linux toolchain - develop for Linux desktop
        • clang version 10.0.0-4ubuntu1
        • cmake version 3.22.1
        • ninja version 1.10.1
        • pkg-config version 0.29.2
    
    [✓] Android Studio (version 2021.1)
        • Android Studio at /home/huynq/Documents/android-studio/
        • Flutter plugin version 67.0.1
        • Dart plugin version 211.7817
        • android-studio-dir = /home/huynq/Documents/android-studio/
        • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
    
    [✓] Connected device (2 available)
        • Linux (desktop) • linux  • linux-x64      • Ubuntu 22.04.3 LTS 6.2.0-34-generic
        • Chrome (web)    • chrome • web-javascript • Google Chrome 118.0.5993.70
    
    [✓] Network resources
        • All expected network resources are available.
    
    ! Doctor found issues in 1 category.
  3. added
    toolAffects the "flutter" command-line tool. See also t: labels.
    t: flutter doctorProblem related to the "flutter doctor" tool
    platform-linuxBuilding on or for Linux specifically
    has reproducible stepsThe issue has been confirmed reproducible and is ready to work on
    team-toolOwned by Flutter Tool team
    and removed
    in triagePresently being triaged by the triage team
    on Oct 24, 2023
  4. KristijanZic commented on Oct 24, 2023

    @KristijanZic
    ContributorAuthor

    Thanks for confirming it!

    VS Code path on system:\n\nhuynq@ubuntu:~$ ls /var/lib/flatpak/app\ncom.visualstudio.code

    That's a path to the app container and won't work if implemented in flutter_tools.

    This is the path to the app inside it:

    /var/lib/flatpak/app/com.visualstudio.code/x86_64/stable/active/files/extra/vscode
    

    I'd like to be assigned this issue too. :)

  5. added a commit that references this issue on Dec 4, 2023
    77503bd
  6. added
    r: fixedIssue is closed as already fixed in a newer version
    on Dec 5, 2023
  7. github-actions commented on Dec 19, 2023

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  8. locked as resolved and limited conversation to collaborators on Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

found in release: 3.13Found to occur in 3.13found in release: 3.16Found to occur in 3.16has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-linuxBuilding on or for Linux specificallyr: fixedIssue is closed as already fixed in a newer versiont: flutter doctorProblem related to the "flutter doctor" toolteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions