While running Highlight Automation tool CLI, got below error:
--perlInstallDir E:\Software\CAST Highlight Code Reader\strawberry\perl failed with code 3
java.lang.Exception: Discovery child process failed with exit status -1
at com.castsoftware.highlight.discover.Discover.process(Discover.java:67)
at com.castsoftware.highlight.AnalysisPipeline.executeAnalysis(AnalysisPipeline.java:257)
at com.castsoftware.highlight.AnalysisPipeline.process(AnalysisPipeline.java:98)
at com.castsoftware.highlight.CommandLine.run(CommandLine.java:568)
at com.castsoftware.highlight.HighlightAutomation.main(HighlightAutomation.java:24)
(3) Command Line techno discovery error
##[error]Arrêt de PowerShell. Code de sortie : '1'.
##[section]Fin : PowerShell HighlightAutomation.jar
Solution
The issue occurs here as path to perl needs to have "" as there are some spaces in the path. E.g: --perlInstallDir "E:\Software\CAST Highlight Code Reader\strawberry\perl"
Without ""
With ""
Additional Resources
CAST Highlight Troubleshooting Guides
CAST Highlight Product Documentation
Ticket
Comments