flipperdevices / flipperzero-ufbt

Compact tool for building and debugging applications for Flipper Zero.
https://pypi.org/project/ufbt/
GNU General Public License v3.0
600 stars 40 forks source link

scons: *** [phony_launch] Error 4 #7

Closed baconlive closed 1 year ago

baconlive commented 1 year ago

On windows, I'm getting this error on app launch.

PS C:\flipperzero-ufbt\app> ufbt launch scons: Entering directory `C:\flipperzero-ufbt' python ".ufbt\current\scripts/runfap.py" ".ufbt\build\showers.fap" --fap_dst_dir "/ext/apps/Misc" APPCHK .ufbt\build\showers.fap Target: 7, API: 20.0 2023-03-29 11:42:27,985 [INFO] Using FLIP_LICPRIX on COM4 2023-03-29 11:42:28,065 [ERROR] Error: list index out of range scons: *** [phony_launch] Error 4

** FBT ERRORS ** phony_launch: Error 4

How can i fix this?

hedger commented 1 year ago

"launch" is currently broken, while ufbt is being updated for new SDK format. You can either backport changes from https://github.com/flipperdevices/flipperzero-firmware/blob/47acf63e400a2637dc08c9a3f899adfe48b607ca/scripts/ufbt/SConstruct#L272 to https://github.com/flipperdevices/flipperzero-ufbt/blob/7c319ef552846596036a49c91f1ee99b5d400f91/SConstruct#L271 or wait for ufbt 0.2.0.

baconlive commented 1 year ago

Should i replace the entire file or only the "launch" part?

hedger commented 1 year ago

You should replace the "launch" part. It might need some further tweaking, though.

baconlive commented 1 year ago

Tried, but cannot find a way to make it work... hope 0.2.0 will be out soon :-)

Brodan commented 1 year ago

I'm on macOS and getting the same issue:

$ ufbt launch
scons: Entering directory `/Users/brodan/flipperzero-ufbt'
python3 ".ufbt/current/scripts/runfap.py" ".ufbt/build/mystery_flip.fap" --fap_dst_dir "/ext/apps/Misc"
    APPCHK  .ufbt/build/mystery_flip.fap
        Target: 7, API: 20.0
2023-04-03 16:03:34,637 [INFO] Using flip_Eotaderu on /dev/cu.usbmodemflip_Eotaderu1
2023-04-03 16:03:34,687 [ERROR] Error: list index out of range
scons: *** [phony_launch] Error 4

********** FBT ERRORS **********
phony_launch: Error 4

I don't think i'd be able to get it working on my own so I guess I need to wait for 0.2.0 as well :/

hedger commented 1 year ago

Should be fixed in latest release.