Comments (17)
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.
@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.
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)
- [BUG] Flutter SDK: (3.19.0) is not valid Flutter version HOT 4
- [Feature Request] Fallback to global version automatically when running fvm flutter
- [BUG] `fvm use` makes unrelated changes to settings.json. HOT 4
- [BUG]fvm use No pubspec.yaml detected in this directory but pubspec.yaml have HOT 21
- Flavor command documentation not up to date
- Retain comments in .vscode/settings.json HOT 2
- Version mismatch detected: cache version is 0.0.0-unknown HOT 6
- [Feature Request] Version brew formulas HOT 1
- Dart Version management improvements
- [BUG] [WARN] Could not parse legact settings file HOT 2
- [BUG]
- [BUG] Custom Flutter Versions are not allowed anymore. HOT 3
- Flutter 3.19.1 uses dart 3.2.5 instead of 3.3.0 HOT 3
- [BUG] `fvm doctor` fails with comments in VS Code settings
- Use POSIX path in `.vscode/settings.json`
- fvm install command is not working in iOS HOT 3
- [BUG] False positive: "Version mismatch detected" for non-numeric flutter versions
- FVM is failing to install any version HOT 2
- Pass global level flags and options
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fvm.