Comments (6)
@bkleineibst you should run "fvm install" to install the version that is configured.
The version is not "deleted" is just that the symlink gets removed.
Does the issue persist?
from fvm.
@leoafarias fvm install
works, as does fvm use
. However, both of these delete my comments from settings.json
. I know I can use json formatted comments, but they just don't stand out.
The main question is why remove the symlinks for other flutter versions when switching flutter versions with fvm? If they were left there, I would not have to fvm install
to get the folder back.
from fvm.
Ok, I understand now. I will look into it. However, I need a way to clean up at some point.
Maybe use flavors as the flag to check if it should be maintained?
from fvm.
@leoafarias My thinking is rather have symlinks to all installed flutter versions. There is very little cost of keeping all of them in each project. Maybe just delete symlinks in the project if their targets have been removed? I.e., keep symlinks in sync with all installed flutter versions.
from fvm.
@bkleineibst I have to think about it. FYI, some tools like melos and others depend on only one symlinks, which is flutter_sdk
, that means that it is best practice to always rerun fvm install
.
I think this should be handled by a trigger, on .vscode, maybe an FVM extension?
from fvm.
@leoafarias How about when fvm is run, it always checks to make sure that the flutter_sdk/version
file matches the version specified in .fvmrc
. If not, it triggers an install, but without updating settings.json
. (assuming there is no reason to update it)
If a solution like this would work, would you then need the specific version symlink in the .fvm/versions
folder? Couldn't settings.json
always point to flutter_sdk
? Would this not also obfuscate the need to update settings.json
at all, except maybe on a first-time fvm use
?
from fvm.
Related Issues (20)
- 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] Does not use .fvmrc of parent directory on Windows 11 HOT 17
- [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
- Feedback for “Basic Commands” HOT 1
- [BUG] dependency overrides cause malfunction in fvm commands
- Support a custom FLUTTER_STORAGE_BASE_URL as the source for Flutter package downloads
- [BUG] Version 3.0 broke shell completion and is less readable HOT 8
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.