Skip to content

Ignore any references to vunit_lib (do not report errors) #369

Open
@obruendl

Description

@obruendl

I asked below question on gitter but I did not get a reply by now - so I try it again though a GitHub issue:

Initial Question

I am just starting to use VHDL-LS. Is there any documentation of the options I can set in the TOML?

Specifically I have the following question:

I use VUnit (and it is installed locally - so in a machine dependent location - through PIP). I would want to avoid VHDL-LS reporting errors on use-clauses like the one below. Can I somehow configure VHDL-LS to not report that it does not find the sources for anything in vunit_lib?
library vunit_lib;
context vunit_lib.vunit_context;
context vunit_lib.comcontext;
context vunit
lib.vc_context;

I already tried "vunit_lib.is_third_party = true" but this line alone didn't do the job.

Can I somehow (e.g. by a comment in my VHDL) ignore a line? Sometimes I have unused generics for certain reasons (e.g. to not break reverse compatibility) and I'd like to avoid VHDL-LS reporting them as problems constantly.

First Reply (not resolving the issue)

Please look at the example in the Configurations section of the README.
https://github.com/VHDL-LS/rust_hdl?tab=readme-ov-file#configuration
It has an example of adding the Unisim library in the TOML file.

Follow-up from my side (no answer received)

I looked at this example. That's how arrived to the "vunit_lib.is_third__party = true" idea, which did not work.

The point is that I cannot implement the line below, because the install location of vunit_lib is machine dependent (because the vunit_lib is installed through PIP):

UNISIM.files = [
'C:\Xilinx\Vivado\2023.1\data\vhdl\src\unisims\unisim_VCOMP.vhd',
]

If you want to reproduce: The code (with my current TOML) is here:
https://github.com/open-logic/open-logic/tree/feature/VHDL-LS

Metadata

Metadata

Assignees

No one assigned

    Labels

    FAQFrequently asked question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions