Expected Behavior:
Given a flat binary hello-world.bin, running the command pros upload --target v5 --slot 1 hello-world.bin from a directory which does not contain a project.pros file successfully upload the file to the V5. As described below, several variants on this command do not work.
Actual Behavior:
The following cases fail:
- If a
project.pros file exists in the current directory, then this error occurs: ERROR - pros.cli.upload:upload - No output files were found! Have you built your project?
- If
--slot 1 is omitted, then this error occurs: ERROR - pros.cli.main:main - unsupported operand type(s) for -=: 'NoneType' and 'int'
- If we try to use
ut instead of upload , we get this error (note that hello-world.bin is indeed provided on the command line): Error: Specify a file to upload or set the cwd inside a PROS project
Steps to reproduce:
Generate a flat binary (preferably a monolithic executable rather than a hot or cold package) from an existing PROS project, copy it out to a different directory, and try the above commands.
System information:
Operating System: Fedora 36
PROS Version: 3.3.3
Additional Information
vex-rt calls into the PROS CLI to upload, which is where we are getting this issue from.
Screenshots/Output Dumps/Stack Traces
Expected Behavior:
Given a flat binary
hello-world.bin, running the commandpros upload --target v5 --slot 1 hello-world.binfrom a directory which does not contain aproject.prosfile successfully upload the file to the V5. As described below, several variants on this command do not work.Actual Behavior:
The following cases fail:
project.prosfile exists in the current directory, then this error occurs:ERROR - pros.cli.upload:upload - No output files were found! Have you built your project?--slot 1is omitted, then this error occurs:ERROR - pros.cli.main:main - unsupported operand type(s) for -=: 'NoneType' and 'int'utinstead ofupload, we get this error (note thathello-world.binis indeed provided on the command line):Error: Specify a file to upload or set the cwd inside a PROS projectSteps to reproduce:
Generate a flat binary (preferably a monolithic executable rather than a hot or cold package) from an existing PROS project, copy it out to a different directory, and try the above commands.
System information:
Operating System: Fedora 36
PROS Version: 3.3.3
Additional Information
vex-rtcalls into the PROS CLI to upload, which is where we are getting this issue from.Screenshots/Output Dumps/Stack Traces