Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Automatic linking #207

Closed
kuhnroyal opened this issue Jan 18, 2021 · 3 comments · Fixed by #220
Closed

[Feature Request] Automatic linking #207

kuhnroyal opened this issue Jan 18, 2021 · 3 comments · Fixed by #220
Assignees
Labels
enhancement New feature or request

Comments

@kuhnroyal
Copy link
Contributor

Is your feature request related to a problem? Please describe.
I am still running into cases of the wrong SDK being used when switching between branches in my projects that use different Flutter SDK versions. I have the config file committed to VCS and switching a branch also changes the config file.

Describe the solution you'd like
I would expect that after a checkout of a different config file and executing an fvm command, I would see either a warning that the wrong SDK is being used or ideally fvm would link and use the correct SDK automatically.

@kuhnroyal kuhnroyal added the enhancement New feature or request label Jan 18, 2021
@kuhnroyal kuhnroyal changed the title [Feature Request] [Feature Request] Automatic linking Jan 18, 2021
@leoafarias
Copy link
Owner

@kuhnroyal sorry for the delay, catching up on these issues.

  • You switched the config to an sdk version that is not installed
  • when you ran fvm flutter it ran on a different flutter

The step above is the test workflow?

@kuhnroyal
Copy link
Contributor Author

No worries, just tested this again.

  • I have 2 branches, one uses stable channel and one uses beta.
  • Both Flutter versions are already installed.

After switching between the branches the correct SDK is used when run via fvm flutter ... but the linked SDK in .fvm/flutter_sdk remains the previous version unless I manually run fvm install. When I forget to run fvm install it leads to all kinds of IDE failures as the SDK in the IDE points to .fvm/flutter_sdk.

It would be great if FVM can automatically update the linked SDK path.

@leoafarias
Copy link
Owner

Hmmm yes it makes sense... I will trigger a check and ask if you want to to install to avoid a needless download

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants