Bochlin / vunit-test-explorer

VUnit test explorer for VSCode
MIT License
12 stars 5 forks source link

"Show source" jumps to preprocessed code #17

Open timrid opened 4 years ago

timrid commented 4 years ago

I think I have found a small bug. In my run.py I use the option vu.enable_location_preprocessing() which runs a preprocessor over the VHDL code and copys the files to vunit_out/preprocessed/....

When I now click on the "Show source" icon, the program always jumps to the preprocessed files in the folder vunit_out/preprocessed/.... If you make changes to these files, they will be overwritten on the next test execution...

Bochlin commented 4 years ago

The "Show source" function relies entirely on the json file exported by VUnit and based on your issue, VUnit condiders the location of the source to be the pre-processed file. If the exported JSON contained the location of both it would be possible to solve.