withfig / fig

Public issue tracker for Fig.
https://fig.io
MIT License
2.05k stars 63 forks source link

Local CLIs not showing scripts #2840

Open GBrachetta opened 11 months ago

GBrachetta commented 11 months ago

These are the steps I follow to create a local CLI:

1- Create a new CLI

Screenshot 2023-11-30 at 07 51 33

2- Add a script to the CLI

Screenshot 2023-11-30 at 07 51 56 Screenshot 2023-11-30 at 07 52 19

3- The CLI (with its script) is present in Fig Screenshot 2023-11-30 at 07 52 33

4- Restart fig, and run the CLI.

The new CLI doesn't show the script in the autocomplete, just the default help flag.

Screenshot 2023-11-30 at 07 53 29

What is failing? I've uninstalled-reinstalled Fig. Fig doctor doesn't show any errors:

Screenshot 2023-11-30 at 09 08 50

mschrage commented 11 months ago

Can you run a-test --help and share the output?

GBrachetta commented 11 months ago

Here it is. Yes, the script shows as a possible command. It's just Fig's autocomplete not showing it, as in the screenshot above.

Screenshot 2023-12-08 at 13 59 40
CoreyGaunt commented 11 months ago

I am experiencing a similar issue on my side, and same thing - no fig doctor problems and help is displaying the script details AND the script is executable, it is just not showing in the autocomplete

szaflarskim commented 9 months ago

Fig not showing scripts for local CLI nor standalone scripts that would be used with fig run ... This started at the same time as https://github.com/withfig/fig/issues/2803 for me