Giter VIP home page Giter VIP logo

Comments (6)

leoafarias avatar leoafarias commented on May 20, 2024

@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.

bkleineibst avatar bkleineibst commented on May 20, 2024

@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.

leoafarias avatar leoafarias commented on May 20, 2024

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.

bkleineibst avatar bkleineibst commented on May 20, 2024

@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.

leoafarias avatar leoafarias commented on May 20, 2024

@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.

bkleineibst avatar bkleineibst commented on May 20, 2024

@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)

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.