Repository navigation
VScode installed via snap is no longer detected #136996
Copy link
Copy link
Closed
Labels
found in release: 3.13Found to occur in 3.13Found to occur in 3.13found in release: 3.16Found to occur in 3.16Found to occur in 3.16has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-linuxBuilding on or for Linux specificallyBuilding on or for Linux specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versiont: flutter doctorProblem related to the "flutter doctor" toolProblem related to the "flutter doctor" toolteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
Is there an existing issue for this?
- I have searched the existing issues
- I have read the guide to filing a bug
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
- install vscode via snap:
sudo snap install code - run flutter doctor
- 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.Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
found in release: 3.13Found to occur in 3.13Found to occur in 3.13found in release: 3.16Found to occur in 3.16Found to occur in 3.16has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-linuxBuilding on or for Linux specificallyBuilding on or for Linux specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versiont: flutter doctorProblem related to the "flutter doctor" toolProblem related to the "flutter doctor" toolteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Activity
huycozy commentedon Oct 23, 2023
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 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!KristijanZic commentedon Oct 24, 2023
@huycozy you can assign me to this issue.
huycozy commentedon Oct 24, 2023
Sure, thanks for the contribution!
Fixes vscode path installed via snap (#136997)
KristijanZic commentedon Nov 10, 2023
Closing as the #136997 fix has been merged.
github-actions commentedon Nov 27, 2023
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 -vand a minimal reproduction of the issue.