VHDL-LS / rust_hdl_vscode

VHDL Language Support for VSCode
MIT License
50 stars 17 forks source link

Alternative configuration with VUnit run.py instead of vhdl_ls.toml #15

Open Gzah92 opened 4 years ago

Gzah92 commented 4 years ago

It would be great if it was possible to use a VUnit run.py file as configuration source instead of the vhdl_ls.toml. The common VUnit distributions contain commonly used libraries, and all project source code is associated to libraries in the file as well. In the current way absolute paths have to be used to specify the location of e.g. the location of OSVVM, making the file not portable and not a part of any repository, increasing setup time. While it should be really simple to adapt the run.py to create the vhdl_ls.toml, maybe this could as well be directly integrated into the extension? Would also fit nicely with the vunit-test-explorer. Thanks for your consideration!

Bochlin commented 4 years ago

Sounds like a decent enhancement. I think that this should be an option which is disabled by default and if enabled, regenerate the vhdl_ls.toml file each time the run.py is executed in order to update the test cases.

The alternative would be to do this in vunit-test-explorer as the logic is already in place to manage a run.py file.

jakobjung10 commented 8 months ago

@Gzah92 Creating the vhdl_ls.toml from a run.py is supported in VHDLbyHGB