suoto / hdl_checker

Repurposing existing HDL tools to help writing better code
GNU General Public License v3.0
192 stars 22 forks source link

[BUG] vscode-plugin: hdl_checker-script.py is being executed after vscode-close -> overloads CPU #105

Open ungultig1 opened 1 year ago

ungultig1 commented 1 year ago

Hi,

I am using the newest version of VsCode, hdl_checker-extension and hdl_checker-client. (Windows10) As linter I use the ModelSim vcom.

It works good, while working on opened vscode and editing my vhdl-files.

Bug: As soon as I close vscode completely, the "hdl_checker-script.py" invokes on closing. This script leads to aprox. 15% cpu-usage and cannot terminate itself anymore; of course not, as the hdl_checker-client terminates, when closing vscode also.

I have to close this process by myself.

I think, hdl_checker tries to do another fresh build, when closing vscode - thus starting the mentioned script:

image

The horrorible part is, after closing vscode, and opening vscode again, and repeating the steps above, another python-process starts, which invokes a further "hdl_checker-script.py".

Resulting into even more cpu-load.

Please, fix this behaviour.

Thx. Greetings.

ungultig1 commented 1 year ago

image

I could somehow reproduce it.

While vscode is running, and killing the "hdl_checker.exe"-task only, python.exe keeps running, causing huge amount of cpu-load.

If I kill the "hdl_checker.exe" Process-Tree, all process are killed immediately, without any leftovers.

suoto, could you please execute "kill process tree" on your hdl-checker-extension, when vscode is closing?