nccgroup / VCG

VisualCodeGrepper - Code security scanning tool.
GNU General Public License v3.0
526 stars 115 forks source link

Console app does not exit - just hangs around #17

Open Smurf-IV opened 2 years ago

Smurf-IV commented 2 years ago

image

Command Line: "C:\Program Files (x86)\VisualCodeGrepper\VisualCodeGrepper.exe" -t Z:\Repos\blah\blah -l CS -e cs -c -v -r Z:\Repos\blah\cS_Results.txt

dommyzee commented 1 year ago

image

Command Line: "C:\Program Files (x86)\VisualCodeGrepper\VisualCodeGrepper.exe" -t Z:\Repos\blah\blah -l CS -e cs -c -v -r Z:\Repos\blah\cS_Results.txt

Hi @Smurf-IV,

The terminal can still be used. The problem is unfortunately by design. The app is built as a Windows App which runs on a separate thread to the Console. Once run, it detaches and returns control back to the Console. However, it still does write messages to it.

As a workaround, simply let it run its course then interact with the prompt. It’s not a fix by any stretch, but just explains why it’s happening.

I’m working on addressing this, but it is a big change, and requires splitting the codebase up significantly.