Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot take screenshot using Dartcode command #3212

Closed
maks opened this issue Mar 16, 2021 · 1 comment
Closed

Cannot take screenshot using Dartcode command #3212

maks opened this issue Mar 16, 2021 · 1 comment
Labels
in commands Relates to commands (usually invoked from the command Palette) in flutter Relates to running Flutter apps is bug
Milestone

Comments

@maks
Copy link

maks commented Mar 16, 2021

Describe the bug
Cannot take screenshot using command

To Reproduce
Steps to reproduce the behavior:

  1. debug flutter app on android device (using launch.json config)
  2. ctrl-shift-p, choose "Flutter: Save Screenshot"
  3. Prompted to choose folder to save screenshot, so choose one in my home dir.

Expected behavior
A screenshot is taken using flutter.

What actual happens is command fails with following error mesg in OUTPUT pane:

No supported devices connected.
The following devices were found, but are not supported by this project:
ONEPLUS A5000 (mobile) • d0703422 • android-arm64  • Android 10 (API 29)
Linux (desktop)        • linux    • linux-x64      • Linux
Chrome (web)           • chrome   • web-javascript • Google Chrome 89.0.4389.90
If you would like your app to run on android or linux or web, consider running `flutter create .` to generate projects for these platforms.

Must have a connected device for screenshot type device
exit code 1

BUT I do have device connected and running debug app via Dartcode.

I can also go to the VSC terminal pane and do:

flutter screenshot

and it works fine and screenshot is saved in current dir as expected.

Versions (please complete the following information):

  • VS Code version: 1.54.2
  • Dart extension version: 3.20.1
[flutter] flutter doctor -v
[✓] Flutter (Channel beta, 2.0.1, on Linux, locale en_GB.UTF-8)
    • Flutter version 2.0.1 at /home/maks/fvm/versions/beta
    • Framework revision c5a4b4029c (11 days ago), 2021-03-04 09:47:48 -0800
    • Engine revision 40441def69
    • Dart version 2.12.0

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /opt/apps/Android/Sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: /opt/apps/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

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

[✓] Linux toolchain - develop for Linux desktop
    • clang version 11.1.0
    • cmake version 3.19.6
    • ninja version 1.10.2
    • pkg-config version 1.7.3

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

[✓] Connected device (3 available)
    • ONEPLUS A5000 (mobile) • d0703422 • android-arm64  • Android 10 (API 29)
    • Linux (desktop)        • linux    • linux-x64      • Linux
    • Chrome (web)           • chrome   • web-javascript • Google Chrome 89.0.4389.90

! Doctor found issues in 1 category.
exit code 0
@maks maks added the is bug label Mar 16, 2021
@DanTup DanTup closed this as completed in c4a5d48 Mar 16, 2021
@maks
Copy link
Author

maks commented Mar 17, 2021

Wow @DanTup that was fast! legend! 🎉

@DanTup DanTup added this to the v3.21.0 milestone Mar 17, 2021
@DanTup DanTup added in commands Relates to commands (usually invoked from the command Palette) in flutter Relates to running Flutter apps labels Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in commands Relates to commands (usually invoked from the command Palette) in flutter Relates to running Flutter apps is bug
Projects
None yet
Development

No branches or pull requests

2 participants