leoafarias / fvm

Flutter Version Management: A simple CLI to manage Flutter SDK versions.
https://fvm.app
MIT License
4.58k stars 225 forks source link

[BUG] `Bad substitution` in when calling global packages #782

Open dickermoshe opened 1 week ago

dickermoshe commented 1 week ago

Before creating a bug report please make check the following

Describe the bug In the docs it describes how to setup flutter and dart to call fvm dart and fvm flutter under the hood. https://fvm.app/documentation/guides/running-flutter#call-sdk-directly

If you wish to reroute flutter and dart calls to FVM, i.e., ensure that running flutter on the terminal internally runs fvm flutter, then you could run the below commands....

To Reproduce Steps to reproduce the behavior:

  1. Follow the guide to setup flutter > fvm flutter
  2. Instal a global package. e.g melos
  3. Run the package. e.g. melos

Expected behavior Work Normally

Logs

mick@MD-LAPTOP-1:~/newdrift$ melos
/home/mick/.local/bin/dart: 1: Bad substitution

Desktop (please complete the following information):

Additional context N/A