Skip to content

VScode installed via snap is no longer detected #136996

Closed

Description

@KristijanZic

Is there an existing issue for this?

There was #54358 that was addressed at the time but the directory structure of the vscode snap package has changed a while ago and this was failing since then.

Steps to reproduce

  1. install vscode via snap: sudo snap install code
  2. run flutter doctor
  3. observe vscode version check failing

Expected results

flutter doctor finds the vscode snap installation

Actual results

flutter doctor isn't able to find the vscode snap installation

Flutter Doctor output

Doctor output
Building flutter tool...
Resolving dependencies... (2.3s)
Got dependencies.
    • Framework revision faf0c8e640 (15 minutes ago), 2023-10-21 03:29:07 +0200
    • Engine revision e4fc0c4e2b
    • 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)
    • 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)

[✓] VS Code (version unknown)
    • VS Code at /snap/code/current
    • Flutter extension version 3.74.0
    ✗ Unable to determine VS Code version.

[✓] 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.

! Doctor found issues in 1 category.

Activity

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

    @huycozy
    Member

    Thanks for your report! I can reproduce this issue with VS Code installed via Snap store. The issue doesn't appear with APT installation.

    flutter doctor -v (stable & master - via Snap)
    [✓] 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 (5 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)
    
    [✓] VS Code (version unknown)
        • VS Code at /snap/code/current
        • Flutter extension version 3.74.0
        ✗ Unable to determine VS Code version.
    
    [✓] 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 (2 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)
    
    [✓] VS Code (version unknown)
        • VS Code at /snap/code/current
        • Flutter extension version 3.74.0
        ✗ Unable to determine VS Code version.
    
    [✓] 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.
    flutter doctor -v (stable & master - via APT)
    [✓] 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 (5 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)
    
    [✓] VS Code (version 1.83.0)
        • VS Code at /usr/share/code
        • Flutter extension version 3.74.0
    
    [✓] 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 (2 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)
    
    [✓] VS Code (version 1.83.0)
        • VS Code at /usr/share/code
        • Flutter extension version 3.74.0
    
    [✓] 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 23, 2023
  4. KristijanZic commented on Oct 24, 2023

    @KristijanZic
    ContributorAuthor

    @huycozy you can assign me to this issue.

  5. huycozy commented on Oct 24, 2023

    @huycozy
    Member

    Sure, thanks for the contribution!

  6. KristijanZic commented on Nov 10, 2023

    @KristijanZic
    ContributorAuthor

    Closing as the #136997 fix has been merged.

  7. added
    r: fixedIssue is closed as already fixed in a newer version
    on Nov 13, 2023
  8. github-actions commented on Nov 27, 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.

  9. locked as resolved and limited conversation to collaborators on Nov 27, 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