Giter Club home page Giter Club logo

Comments (17)

leoafarias avatar leoafarias commented on June 2, 2024 2

I followed the initial instructions which caused the behavior I described. Will mark as a bug based on the information you provided so I can take a look.

from fvm.

leoafarias avatar leoafarias commented on June 2, 2024

@saibotma This is because fvm is looking for a config and a pubspec to determine the configuration; this helps with constraints and dependency checking.

I was able to replicate this on Mac also by doing the following:

$ mkdir fvm_test
$ cd fvm_test
$ fvm use stable --force
$ mkdir sub_test
$ cd sub_test
$ fvm --verbose flutter --version

The last command indicates it's running on the flutter sdk found the path. After adding a pubspec.yaml, it behaved correctly.

Let me know what the use case is so I can understand.

from fvm.

saibotma avatar saibotma commented on June 2, 2024

The example I used is a simplified one.
This happened in a repository containing two flutter projects, each having pubspec.yaml and all other files required by flutter. Having a missing pubspec.yaml is not the reason, for sure.

I also tried executing your example on my Mac. This is the output of fvm --verbose flutter --version:

Argument information:
  Top level options:
  - verbose: true

Command: flutter

fvm: Running Flutter SDK from version stable

Starting to update environment variables...

Running: /Users/tobias/fvm/versions/stable/bin/flutter

Flutter 3.19.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision abb292a07e (7 days ago) • 2024-02-20 14:35:05 -0800
Engine • revision 04817c99c9
Tools • Dart 3.3.0 • DevTools 2.31.1

Contrary to your observations, this is running using Flutter provided by fvm and not from path.
Can you share your output, please?

from fvm.

Related Issues (20)

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.