conceptadev/fvm

[BUG] `fvm use` makes unrelated changes to settings.json.

開放

#635 建立於 2024年2月20日

 (4 則留言) (5 個反應) (1 位負責人)Dart (283 個分叉)batch import
buggood first issuehelp wanted

倉庫指標

星標
 (5,505 顆星)
PR 合併指標
 (平均合併 1天 11小時) (30 天內合併 12 個 PR)

描述

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 administrator or with developer permissions.
  • [n/a] Run fvm doctor if 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:

  1. Add comments to settings.json.
  2. Set it to save tabs, not spaces.
  3. Run fvm use stable
  4. 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.

貢獻者指南