For quite awhile, going into several years now, the Make script Make.ps1 does not seem to be able to append all of the files during runtime. For example, when compiles the PSCAT project, the Logging.ps1 content would not be added into the PSCAT target script file. The next go around with the Make script, the Main.ps1 would not be included. The scripts listed is not limited to just those two, but only examples for this ticket. But to make this more interesting, this is completely random as well. In some cases, the Make script will work just fine.
Before creating this ticket, I inspected the source code and might had found a possible logic error:
# Append the file and assure it was successful
if (!($(FileDetection $filePath) -and $(AppendContent $OUTPUTFILE $filePath) -and $(AppendSeparation $OUTPUTFILE)))
{
# An error occurred
return 1;
} # If : File does not exist
Too Much Information:
When I used to program PSCAT on my laptop (Surface Laptop 4) using Windows 10, I noticed that when using Battery Power, I would have to invoke the Make script about 10 times to have a solid build. If using power from the wall, possibly need to run the Make script about 3 times.
Programing on my Desktop with QEMU\KVM, it's roughly 3 times I need to use the Make script in order to get a solid build.
In some cases, the Make script will successfully append all of the scripts into one large file.
ACTION:
Resolve an issue where the Make script is not able to append all of the files listed in the scriptFileName array into PSCAT.ps1.
For quite awhile, going into several years now, the Make script
Make.ps1
does not seem to be able to append all of the files during runtime. For example, when compiles the PSCAT project, theLogging.ps1
content would not be added into the PSCAT target script file. The next go around with the Make script, theMain.ps1
would not be included. The scripts listed is not limited to just those two, but only examples for this ticket. But to make this more interesting, this is completely random as well. In some cases, the Make script will work just fine.Before creating this ticket, I inspected the source code and might had found a possible logic error:
Too Much Information:
ACTION:
Resolve an issue where the Make script is not able to append all of the files listed in the
scriptFileName
array intoPSCAT.ps1
.