fig icon indicating copy to clipboard operation
fig copied to clipboard

Local CLIs not showing scripts

Open GBrachetta opened this issue 7 months ago • 4 comments

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

GBrachetta avatar Nov 30 '23 08:11 GBrachetta

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

mschrage avatar Dec 05 '23 22:12 mschrage

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

GBrachetta avatar Dec 08 '23 13:12 GBrachetta

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

CoreyGaunt avatar Dec 13 '23 16:12 CoreyGaunt

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

szaflarskim avatar Jan 30 '24 19:01 szaflarskim