suoto / hdl_checker

Repurposing existing HDL tools to help writing better code
GNU General Public License v3.0
192 stars 22 forks source link

New Files not being added to the Project #90

Open SethGower opened 3 years ago

SethGower commented 3 years ago

Issue details

Hello, Before I get into it, just wanna say that I absolutely love hdl_checker, it has made my development at work so much more streamlined.

I have noticed this issue a couple times, and decided to make an example reproducible thing and report it. I have noticed that if you already have a project defined (with .hdl_checker.config and .hdl_checker/ at the root) in which there have already been compiled sources; then you create a new file, it doesn't get added to the project, even though it is defined (by a glob. or explicitly defined) in the project file. So I get an error [HDL Checker] [W] Path "/home/sgower/test/test1.vhd" not found in project file". Deleting the .hdl_checker directory and reopening the file makes it work.

When opening an issue, make sure you provide

Here is a simple test project that shows the error. I realize you won't be able to use it perfectly given the path names, but here's a list of steps to reproduce it, but you can still use the source files and the config file.

I haven't tried it with other compilers, but I feel like this wouldn't be modelsim specific.

EDIT: It seems that in addition to deleting the .hdl_checker/ directory, touch .hdl_checker.config and restarting the editor also worked. Is this an intended behavior, to not reprocess the config file every time, only if its timestamp is newer?