Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Custom VHDL libs location #339

Open
maxime-lr opened this issue Aug 28, 2024 · 6 comments
Open

[FEATURE] Custom VHDL libs location #339

maxime-lr opened this issue Aug 28, 2024 · 6 comments

Comments

@maxime-lr
Copy link

It would be great to have an environment variable or an executable option to specify where the VHDL libraries are located.

@Schottkyc137
Copy link
Contributor

Is this a feature request for the language server (i.e., vhdl_ls executable) or the language fronted (i.e., vhdl_lang executable)? For the latter, such an option already exists with the --libraries /path/to/vhdl_libraries.

@maxime-lr
Copy link
Author

It is a feature for the language server. And then, it could be a setting in rush_hdl_vscode.

@Hinara
Copy link

Hinara commented Sep 1, 2024

You mean without an external file ?
Because vhdl-ls already accept an environment variable for the path of a file defining libs paths
https://github.com/VHDL-LS/rust_hdl/tree/master?tab=readme-ov-file#configuration

@maxime-lr
Copy link
Author

You mean without an external file ? Because vhdl-ls already accept an environment variable for the path of a file defining libs paths https://github.com/VHDL-LS/rust_hdl/tree/master?tab=readme-ov-file#configuration

I was talking about VHDL libraries (like ieee).
I am not sure it is related to my feature request (correct me if I'm wrong 🙌)

@Hinara
Copy link

Hinara commented Sep 3, 2024

Yeah I understand that you want to define the path of your libraries, but this can be done with a configuration toml file so for example if you use a library called mylib with all its vhd file for that library under C:\mylib
To use your library you would put that into your file

library mylib;

Then make it work you would need to create a toml file with a content like that

[libraries]
mylib.files = [
    'C:\mylib\*.vhd',
]

Where to put this TOML file is described by this part
https://github.com/VHDL-LS/rust_hdl/tree/master?tab=readme-ov-file#configuration

@maxime-lr
Copy link
Author

Yes, that is what I do already.
In this issue I was talking about standard libraries like (std and ieee). They are stored in some predefined directories and to my knowledge, it is not possible to define a generic path.
Maybe I'm wrong ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants