CAST HIGHLIGHT - Code Reader - ERROR console: (3) Command Line techno discovery error

With the HL code reader (in interactive mode, not CLI) user is  getting the error  ERROR console: (3) Command Line techno discovery error in the log.

 

  1. Check in the HL Automation log, if long paths are used such as when the file path used is more than 260 characters.There might also be messages like No such file or directory or ERROR : unable to open in the log.
          1. Check if there are errors like The specified module could not be found..../CAST Highlight Code Reader/strawberry/perl/lib/XSLoader.pm line 93.

INFO console: Command Line version : 5.6.11-RELEASE

INFO console: Preparing analysis...

INFO console: Preparation stage completed.

INFO console: Analysing...

INFO console: Start discovering

INFO highlight: .\CLI_5.6.11\Highlight-Automation-Command\perl\technos\find_technos.pl C:\react --output=C:\Users\yyy\AppData\Local\CAST Highlight Code Reader\.\CLI_5.6.11\Highlight-Automation-Command\cli_out\HLTemporary\discover --ignore= --ignorePath= --export=csv --nocrashprevent

INFO perl: out: Can't load 'C:\Users\yyy\AppData\Local\CAST Highlight Code Reader\.\CLI_5.6.11\Highlight-Automation-Command\perl\PerlLib/auto/Win32/LongPath/LongPath.xs.dll' for module Win32::LongPath: load_file:The specified module could not be found at C:/Users/yyy/AppData/Local/CAST Highlight Code Reader/strawberry/perl/lib/XSLoader.pm line 93.

…………………………..

INFO perl: out: Compilation failed in require at .\CLI_5.6.11\Highlight-Automation-Command\perl\technos/../technos/lib.pm line 7.

INFO perl: out: BEGIN failed--compilation aborted at .\CLI_5.6.11\Highlight-Automation-Command\perl\technos/../technos/lib.pm line 7.

INFO perl: out: Compilation failed in require at .\CLI_5.6.11\Highlight-Automation-Command\perl\technos\find_technos.pl line 21.

INFO perl: out: BEGIN failed--compilation aborted at .\CLI_5.6.11\Highlight-Automation-Command\perl\technos\find_technos.pl line 21.

ERROR AnalysisPipeline: Discover failed

java.lang.Exception: Discovery child process failed with exit status 2

at com.castsoftware.highlight.discover.Discover.process(Discover.java:67)

at com.castsoftware.highlight.AnalysisPipeline.executeAnalysis(AnalysisPipeline.java:249)

at com.castsoftware.highlight.AnalysisPipeline.process(AnalysisPipeline.java:90)

at com.castsoftware.highlight.CommandLine.run(CommandLine.java:568)

at com.castsoftware.highlight.HighlightAutomation.main(HighlightAutomation.java:24)

ERROR console: (3) Command Line techno discovery error

 

It is also found that both HLTemporary\discover\ and  HLTemporary\analysis\ directories are empty.

 

If the above is the issue, please check whether the correct version of Perl is installed.

This can be found by clicking on the exclamation mark icon on the top right corner of the screen.1.jpg

 

Here clicking the exclamation mark returned

"CLI v.5.6.11, Perl v.5.32.1, Java v.21.0.2"

Perl version should be 5.36.

NB: The Code Reader is packaged with Perl and CAST Highlight CLI that are required elements.

For the pre-requistes to install code reader check https://doc.casthighlight.com/codereader/readme.md

Please also refer  CAST HIGHLIGHT - Code reader - Perl: error: Cannot run program "CAST Highlight Code Reader\strawberry\perl\bin\perl.exe"": CreateProcess error=2, The system cannot find the file specified  

NB : Windows long paths are now supported (requires Perl/CLI upgrade as proposed through Code Reader's UI). Support for Windows long path is added from version 5.6.7

 

 


 

 

Ticket

47900, 48322, 47499

 

Related Articles

Code Reader Installation

Highlight Automated Code Scan (Command Line)

CAST HIGHLIGHT - CLI - Error code 3 - Command Line techno discovery error

 CAST HIGHLIGHT - Code reader - Perl: error: Cannot run program "CAST Highlight Code Reader\strawberry\perl\bin\perl.exe"": CreateProcess error=2, The system cannot find the file specified

CAST HIGHLIGHT - Code reader - Setup - Java not detected on your system. Please install openJDK 11

 

Additional Resources

CAST Highlight Troubleshooting Guides

CAST Highlight Product Documentation

Have more questions? Submit a request

Comments

Powered by Zendesk