Closed jseager7 closed 1 year ago
@jseager7 would you be willing to
We are a bit strapped for resources, but I would be happy to review a PR and find a few people to test it.
@matentzn Just to clarify, the bat file checked into the repository has no problems, so downloading that file (as the documentation suggests as the first option) works fine. It's the command in the documentation to generate a bat file that's the problem, because it generates a non-functional bat file.
I'm happy to open a PR to fix the typo in the command. Task 2 might be trickier since different commands to generate the bat file will likely be required for Command Prompt and PowerShell. The simplest fix would be to clarify that the command requires PowerShell version 6 or later, which hopefully won't be a big problem since running the command to generate a bat file is a fallback option anyway.
Sounds good! If you want to do 1) and just add a sentence to the docs about powershell..
There seems to be a typo in the command to create the
robot.bat
batch file on the ROBOT Getting Started page:%~dr0
doesn't seem to be a valid argument expansion syntax. I think this should be%~dp0%
, based on the batch script file and the help for theCALL
command:Furthermore, the command only seems to work in Windows PowerShell (not Command Prompt), which the guide doesn't specify.
Also, in older versions of PowerShell (version 6 and below), the
utf8
encoding still inserts a byte-order mark (BOM), which breaks the command even after the typo is corrected (see here).The documentation should probably specify that a specific version of PowerShell is required to create the batch file using the command.