Ugly report messages if synthesis tool not found
I copied the Manifest from an older project, syn_tool was missing and
it made hdlmake crash. See below.
Shouldn't it check that the expected variables are set before using
them? And give nice error message.
$ hdlmake
Traceback (most recent call last):
File "/home/mcattin/project/hdl-make/hdlmake/main.py", line 300, in
main()
File "/home/mcattin/project/hdl-make/hdlmake/main.py", line 110, in
main
logging.info('import tool module: ' + tool_name)
TypeError: cannot concatenate 'str' and 'NoneType' objects
In addition, if any of the tools is not in the PATH, the report grammar is incorrect: "an" instead of "a".
[javi@localhost vhdl]$ hdlmake
INFO main.py:110: main() import tool module: vivado
which: no vivado in
(/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/javi/.local/bin:/home/javi/bin)
INFO main.py:143: main() Running automatic flow.
ERROR synthesis_project.py:151: _generate_synthesis_project() Can't
generate an vivado project. vivado not found.
[javi@localhost vhdl]$