Code Monkey home page Code Monkey logo

flown's People

Contributors

mmcc007 avatar reflection avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

flown's Issues

Running the install command against the command line returns an error

From within VS Code.

PS C:\Projects> pub global activate flown
pub : The term 'pub' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • pub global activate flown

Might be great to have the documentation mention that the Dart SDK is needed to run the install command from the command line.

Cleanup dependent package if in root of repo

If a dependent package is found in the root of a repo during cloning, the '.git' directory should be removed in this package from the resulting cloned standalone app (otherwise it looks like a git submodule in the cloned standalone app).

Also, and not as important, since this parent package is a parent of the app being cloned (by definition), the sub-directory leading to the parent package should be deleted in the parent package in the resulting cloned standalone app.

Workaround is just to delete the .git directory and the related sub-directory manually from the related package in the resulting cloned standalone app.

Target of URI doesn't exists: 'package:todos_repository/todos_repository.dart'

I made the vanilla_project by flown, but the created project has the error Target URI doesn't exists in the local repositories todos_repository and todos_repository_flutter , flutter_architecture_samples . Though I executed flutter packages get, the error occurs.
But I was able to run the vanilla app.

Why this error occurs? How to fix this error?

My environment

  • MacBook Pro 2017
  • macOS High Sierra ver. 10.13.3
  • IDE: IntelliJ
  • simulator: iPhone 6s
  • flutter sdk path: /Applications/flutter
  • flutter 1.0.0
  • dart 2.1.0

To reproduce

Firstly, I made the symbolic links of pub and dart to install flown.

$ ln -s /Applicatoin/flutter/bin/cache/dart-sdk/bin/pub /usr/local/bin/pub
$ ln -s /Applicatoin/flutter/bin/cache/dart-sdk/bin/dart /usr/local/bin/dart

Then, I installed flown and I added the path of packages installed via pub in ~/.bashrc.

$ pub global activate flown
export PATH="$PATH":"$HOME/.pub-cache/bin"

I made the project by flown.

flown --arch vanilla --name vanilla_project

I opened this project by Create New Project in IntelliJ, but I got in trouble at this time.
IntelliJ stop at the screen of "Creating Flutter Project". I solved this trouble by killall dart, along with this issue.

The project was loaded, and I executed Packages get.
Then, it reports the error, but the app can run.

flutter docter -v

[✓] Flutter (Channel beta, v1.0.0, on Mac OS X 10.13.3 17D47, locale ja-JP)
    • Flutter version 1.0.0 at /Applications/flutter
    • Framework revision 5391447fae (3 weeks ago), 2018-11-29 19:41:26 -0800
    • Engine revision 7375a0f414
    • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.io/setup/#android-setup for detailed instructions).
      If Android SDK has been installed to a custom location, set $ANDROID_HOME to that location.
      You may also want to add it to your PATH environment variable.


[!] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 9.4.1, Build version 9F2000
    ✗ Verify that all connected devices have been paired with this computer in Xcode.
      If all devices have been paired, libimobiledevice and ideviceinstaller may require updating.
      To update with Brew, run:
        brew update
        brew uninstall --ignore-dependencies libimobiledevice
        brew uninstall --ignore-dependencies usbmuxd
        brew install --HEAD usbmuxd
        brew unlink usbmuxd
        brew link usbmuxd
        brew install --HEAD libimobiledevice
        brew install ideviceinstaller
    • ios-deploy 1.9.2
    ✗ ios-deploy out of date (1.9.4 is required). To upgrade with Brew:
        brew upgrade ios-deploy
    • CocoaPods version 1.5.3

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

[✓] IntelliJ IDEA Community Edition (version 2018.1.5)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 26.0.2
    • Dart plugin version 181.4892.1

[✓] Connected device (1 available)
    • iPhone 6s • D3C6D104-5270-489B-BABC-B0FC77CA3E06 • ios • iOS 11.4 (simulator)

! Doctor found issues in 3 categories.

Win 10 flown command fails on the command line

Executing the following command results in an error creating the project. Seems the script can't create the tmp folder.

c:\Projects>flown --arch bloc_flutter --name example_bloc
Cloning https://github.com/brianegan/flutter_architecture_samples.git to /tmp...
CreateProcessW failed 267
Unhandled exception:
ProcessException: The directory name is invalid.

Command: git clone https://github.com/brianegan/flutter_architecture_samples.git
#0 _cmd (file:///C:/Users/Jeff/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flown-0.0.1/bin/flown.dart:175:7)

#1 _buildProject (file:///C:/Users/Jeff/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flown-0.0.1/bin/flown.dart:112:11)

#2 main (file:///C:/Users/Jeff/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flown-0.0.1/bin/flown.dart:35:3)
#3 _startIsolate. (dart:isolate/runtime/libisolate_patch.dart:277:32)
#4 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:165:12)
Cloning https://github.com/brianegan/flutter_architecture_samples.git to /tmp...
CreateProcessW failed 267
Unhandled exception:
ProcessException: The directory name is invalid.

Command: git clone https://github.com/brianegan/flutter_architecture_samples.git
#0 _cmd (file:///C:/Users/Jeff/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flown-0.0.1/bin/flown.dart:175:7)

#1 _buildProject (file:///C:/Users/Jeff/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flown-0.0.1/bin/flown.dart:112:11)

#2 main (file:///C:/Users/Jeff/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flown-0.0.1/bin/flown.dart:35:3)
#3 _startIsolate. (dart:isolate/runtime/libisolate_patch.dart:277:32)
#4 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:165:12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.