Skip to content

🐛 A few related issues in upload commands #245

@nickmertin

Description

@nickmertin

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

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions