-
Notifications
You must be signed in to change notification settings - Fork 8
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
[Enhancement] Allow glob patterns when defining source files list in hdl-prj.json #80
Comments
@pidgeon777, see #12:
See also VHDL-LS/rust_hdl#112. |
So, if I understood currently, at the moment there is no plan to support glob patterns? I asked about that because I saw many other tools implementing it. |
At the moment there is no one explicitly working on "a JSON project file supported by GHDL". I believe there is a plan to support glob patterns, because that is a very basic feature that any format should support. However, since the format of For the LSP only, I guess you might implement it using glob in https://github.com/ghdl/ghdl/blob/05755b53e1d723ff4d2c9de79c61badd42491b13/pyGHDL/lsp/workspace.py#L224-L225. However, note that globs might be recursive or not: |
The hdl-prj.json file is supposed to be a low-level project file. That means not something you write but something you generate.
I think there are enough project file formats!
|
Most of the common VHDL LSP providers (VHDL-Tool, hdl_checker, rust_hdl) allow to use glob patterns in the source files list, in their project configuration files:
It is possible to define a source file:
Actually, with GHDL-LSP it is not possible to do this. It would be great to add at least the recursive function so that it won't be needed to manually define all of the source files included in a project.
The text was updated successfully, but these errors were encountered: