Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

.pub-cache/bin/stagehand: 8: dart: not found #692

Open
umermasood opened this issue Feb 24, 2021 · 8 comments
Open

.pub-cache/bin/stagehand: 8: dart: not found #692

umermasood opened this issue Feb 24, 2021 · 8 comments

Comments

@umermasood
Copy link

I have specified the flutter and dart path in my .bashrc file and it works perfectly fine, but stagehand isn't detecting dart
This is my .bashrc:
export PATH="$PATH:~/Development/flutter/bin"

I don't know why stagehand isn't working from command line.

This is what I get if I run stagehand

keystroke@Latitude-E5570:~$ stagehand
/home/keystroke/.pub-cache/bin/stagehand: 8: dart: not found
@domesticmouse
Copy link
Contributor

Can you run flutter doctor -v please?

@umermasood
Copy link
Author

umermasood commented Feb 25, 2021

flutter doctor -v output:

keystroke@Latitude-E5570:~$ flutter doctor -v
[✓] Flutter (Channel stable, 1.22.6, on Linux, locale en_US.UTF-8)
    • Flutter version 1.22.6 at /home/keystroke/Development/flutter
    • Framework revision 9b2d32b605 (5 weeks ago), 2021-01-22 14:36:39 -0800
    • Engine revision 2f0af37152
    • Dart version 2.10.5

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

[!] 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).

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

[!] Connected device
    ! No devices available

! Doctor found issues in 2 categories.

@domesticmouse
Copy link
Contributor

Can you update to flutter beta channel and see if the issue goes away?

@umermasood
Copy link
Author

The issue persists in beta channel

keystroke@Latitude-E5570:~$ flutter channel
Flutter channels:
  master
  dev
* beta
  stable
keystroke@Latitude-E5570:~$ stagehand 
/home/keystroke/.pub-cache/bin/stagehand: 8: dart: not found

@domesticmouse
Copy link
Contributor

Ok, now I am confused. One more debugging step, which dart from your current shell.

@umermasood
Copy link
Author

which dart doesn't show any output but If I run dart --version this is what I get

keystroke@Latitude-E5570:~$ which dart
keystroke@Latitude-E5570:~$ 
keystroke@Latitude-E5570:~$ 
keystroke@Latitude-E5570:~$ 
keystroke@Latitude-E5570:~$ dart --version
Dart SDK version: 2.12.0-259.16.beta (beta) (Tue Feb 23 00:10:18 2021 +0100) on "linux_x64"

@domesticmouse
Copy link
Contributor

@kevmoo any ideas? I’m out of clues.

@kevmoo
Copy link
Contributor

kevmoo commented Feb 26, 2021

that's super weird! I'm stumped!

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Development

No branches or pull requests

3 participants