CESNET / sphinx-vhdl

https://cesnet.github.io/sphinx-vhdl/
BSD 3-Clause "New" or "Revised" License
21 stars 6 forks source link

Encoding of file #16

Open chrisopenhab opened 2 days ago

chrisopenhab commented 2 days ago

Hello, as written in https://github.com/CESNET/sphinx-vhdl/issues/14 I had this warning: WARNING: SPHINX-VHDL: Entity ** was not found in parsed VHDL files!

=> I did a debug version that shows that the with open(filename, 'r') as source_file: in autodoc.py had a problem that leads to the warning above. The file could not be opened because it was not UTF8 format.

Error handling for open().. would be nice to identify the problem earlier and get a direct indication what the problem is.

Best Regards Christian

jakubcabal commented 17 hours ago

Hi, thanks for discovering this problem. As soon as I have a little more time, I will prepare a suitable solution.

Best Regards, Jakub