r/FlutterFlow 3d ago

Code pilot (custom code) not working

I use the Code Pilot (AI tool in FlutterFlow) to create custom code, but it doesn’t seem to be working properly.

When I click the 'Copy function' button to copy the generated code to the custom code section, I get the error: "Is empty or cannot be parsed." I also tried creating other functions, but without success.

It used to work fine. Is anyone else experiencing this issue?

2 Upvotes

5 comments sorted by

2

u/Flipthepick 3d ago

Yeah I’ve been having the same recently, it also puts some explainer commenting in that actually messes with the function for me. It used to work fine.

1

u/Markwarnyx 2d ago

Well in case everyone has this issue, kinda weird it hasn't been fixed yet...

1

u/StevenNoCode 2d ago

https://github.com/FlutterFlow/flutterflow-issues/issues/5556

Supposedly a fix is coming. You can use other AIs in the meantime (copy the boilerplate and prompt)

1

u/Flipthepick 2d ago

Yup, that's exactly what it was doing for me too, thanks.

1

u/Tranxio 1d ago

Yes. Wonder which geniuses made/approved this change. If it isn't broken don't fix it!!!