vscode-terosHDL icon indicating copy to clipboard operation
vscode-terosHDL copied to clipboard

Linting with VSG sometimes lints unexpected files

Open JakubFranek opened this issue 8 months ago • 5 comments

Describe the bug Linting with VSG sometimes unexpectedly lints VHDL files which are not interacted with in any way for unknown reason, which typically reside in TerosHDL folder. This leads to thousands of errors being reported in the Problems tab.

This seems to happen for no reason and randomly, but at least once per few hours. It happens even though I am editing only a single VHDL file and not even opening any other VHDL file at all.

See second line of log below. For some reason numeric_std.vhdl is being linted. I did not open this file ever in my VS Code, but numeric_std package is used in the file I am working on. But this happens randomly, not consistently.

2025-03-20 21:40:17.483 [info] Linting with command: vsg -f d:\Electronics\FPGA\Nexys-A7-Lab\source\clock_enable_generator\clock_enable_generator.vhd --all_phases -c D:\Electronics\FPGA\Nexys-A7-Lab\vsg.yaml --js C:\Users\jfran\AppData\Local\Temp\f-2025220-8000-2aqef8.e6tga 
2025-03-20 21:50:50.010 [info] Linting with command: vsg -f c:\Users\jfran\.vscode\extensions\teros-technology.teroshdl-7.0.1\server\vhdl_ls\0.83.1\vhdl_ls-x86_64-pc-windows-msvc\vhdl_libraries\ieee2008\numeric_std.vhdl --all_phases -c D:\Electronics\FPGA\Nexys-A7-Lab\vsg.yaml --js C:\Users\jfran\AppData\Local\Temp\f-2025220-8000-rn4srf.i6qzh 
2025-03-20 22:33:21.207 [info] Formatting with command: vsg  -p 2 --fix -c D:\Electronics\FPGA\Nexys-A7-Lab\vsg.yaml -f C:\Users\jfran\AppData\Local\Temp\f-2025220-8000-1ccutss.jvcf 
2025-03-20 22:33:21.238 [info] Linting with command: vsg -f d:\Electronics\FPGA\Nexys-A7-Lab\source\clock_enable_generator\clock_enable_generator.vhd --all_phases -c D:\Electronics\FPGA\Nexys-A7-Lab\vsg.yaml --js C:\Users\jfran\AppData\Local\Temp\f-2025220-8000-fxej2e.we6n 

Resulting Problems:

Image

To Reproduce No idea how to reproduce this consistently, but it eventually happens every evening I work within TerosHDL.

Code Not relevant.

Please complete the following information:

  • OS: Windows
  • VSCode version 1.97.2

TerosHDL settings

Image

Image

Image

Image

vsg.yaml contents

rule:
    global:
        indent_size: 4
    signal_007:             # This rule requires the user to remove the default assignments.
        disable: true
    generic_007:            # This rule checks the generic names have proper case.
        case: "upper"
    port_012:               # This rule checks for default assignments on port declarations.
        disable: true
    instantiation_034:      # This rule checks for component versus direct instantiations.
        method: "entity"
    process_036:            # This rule checks for valid prefixes on process labels. The default prefix is proc_.
        disable: false
    generate_017:           # This rule checks for valid prefixes on generate statement labels. The default prefix is gen_.
        disable: false
    port_011:               # This rule checks for valid prefixes on port identifiers. The default port prefixes are: i_, o_, io_.
        disable: false

JakubFranek avatar Mar 20 '25 22:03 JakubFranek

Did you open that file? For example when you click in +, -, unsigned...

qarlosalberto avatar Mar 21 '25 17:03 qarlosalberto

Hello @qarlosalberto, as I mentioned in the original post, I did not open the file, not even by accident. I have no explanation for why the file is being linted.

JakubFranek avatar Mar 21 '25 18:03 JakubFranek

it's weird. If this happen again for to TerosHDL Debug Output. Now I print the linter command. Copy and paste here.

qarlosalberto avatar Mar 21 '25 18:03 qarlosalberto

Hi @qarlosalberto,

as expected it has happened again. I am attaching the full log from this evenings session. The unwanted file has been linted at 2025-03-21 22:57:17.141.

teroshdl_debug.txt

JakubFranek avatar Mar 21 '25 22:03 JakubFranek

Ok, I will take a look when I have time.

El vie, 21 mar 2025, 23:29, Jakub Franek @.***> escribió:

Hi @qarlosalberto https://github.com/qarlosalberto,

as expected it has happened again. I am attaching the full log from this evenings session. The unwanted file has been linted at 2025-03-21 22:57:17.141.

teroshdl_debug.txt https://github.com/user-attachments/files/19398127/teroshdl_debug.txt

— Reply to this email directly, view it on GitHub https://github.com/TerosTechnology/vscode-terosHDL/issues/748#issuecomment-2744587257, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNN4R3HKX7XLZ32NYRW3SL2VSHELAVCNFSM6AAAAABZOTFQMKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONBUGU4DOMRVG4 . You are receiving this because you were mentioned.Message ID: @.***> [image: JakubFranek]JakubFranek left a comment (TerosTechnology/vscode-terosHDL#748) https://github.com/TerosTechnology/vscode-terosHDL/issues/748#issuecomment-2744587257

Hi @qarlosalberto https://github.com/qarlosalberto,

as expected it has happened again. I am attaching the full log from this evenings session. The unwanted file has been linted at 2025-03-21 22:57:17.141.

teroshdl_debug.txt https://github.com/user-attachments/files/19398127/teroshdl_debug.txt

— Reply to this email directly, view it on GitHub https://github.com/TerosTechnology/vscode-terosHDL/issues/748#issuecomment-2744587257, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNN4R3HKX7XLZ32NYRW3SL2VSHELAVCNFSM6AAAAABZOTFQMKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONBUGU4DOMRVG4 . You are receiving this because you were mentioned.Message ID: @.***>

qarlosalberto avatar Mar 21 '25 22:03 qarlosalberto