rust_hdl icon indicating copy to clipboard operation
rust_hdl copied to clipboard

'is_third_party' does not disable errors in third party libraries

Open JakubFranek opened this issue 8 months ago • 6 comments

Hello

I am using vhdl-ls linter via TerosHDL integration in VS Code. I have a vhld_ls.toml file like this in the root of my repository:

[libraries]

vunit_lib.files = ['.venv/Lib/site-packages/vunit/**/*.vhd']
vunit_lib.is_third_party = true

mylib.files = ['sources/**/*.vhd']
mylib.is_third_party = false

Adding vunit_lib like this was the only way I found to have vhdl-ls recognize vunit_lib usage within my testbenches successfully.

My expectation is that the vunit_lib.is_third_party = true statement will supress all errors within vunit_lib.

The reality is hundreds of errors, all in vunit_lib:

Image

Is this a bug, working as intened, or is there perhaps a different way to ignore/supress/exclude errors in a particular folder?

I find this behavior very annoying. If I don't include vunit_lib files, I get errors in my testbench, if I do, I get errors in vunit_lib itself.

Thank you.

Kind regards Jakub

JakubFranek avatar Feb 23 '25 21:02 JakubFranek