leoafarias/fvm
Voir sur GitHub[BUG] `fvm use` makes unrelated changes to settings.json.
Open
#635 ouverte le 20 févr. 2024
buggood first issuehelp wanted
Métriques du dépôt
- Stars
- (5 419 stars)
- Métriques de merge PR
- (Merge moyen 1j 11h) (12 PRs mergées en 30 j)
Description
Before creating a bug report please make check the following
- You have read our FAQ
- [n/a] If you have used flutter. Please install correctly, run
pub cache repair. Close the terminal and try again. - [n/a] If you are on Windows. Make sure you are running the terminal as
administratoror withdeveloperpermissions. - [n/a] Run
fvm doctorif possible and add the output to the issue.
Describe the bug
When running fvm use, the settings.json file is update to set the new version to use. However, comments are removed from the file and tabs are changed to spaces.
To Reproduce Steps to reproduce the behavior:
- Add comments to settings.json.
- Set it to save tabs, not spaces.
- Run
fvm use stable - Comments will be removed and tabs will be changed to spaces.
Expected behavior Only the version number should be changed. Tab/space indentation should match rest of file.