hdlmake-3.4.dev1. Error while parsing file witn UVN macros include
Hello all,
Win10, questasim2019.4, UVM 1.2
Faced with next problem: When I trying compile file with next strings:
`import uvm_pkg::*;
`include <uvm_macros.svh> // <- error at this line
hdlmake gave me error:
hdlmake --log debug --full-error
...
Normal debug output
...
DEBUG new_dep_solver.py:86: parse_source_files() PARSING SOURCE FILE: <some_path>\src\top.sv
DEBUG vlog_parser.py:223: _preprocess_file() preprocess file C<some_path>\src\top.sv (of length 2600) in library work
CRITICAL main.py:73: hdlmake() join() argument must be str, bytes, or os.PathLike object, not 'NoneType'
ERROR main.py:75: hdlmake() Trace:
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\site-packages\hdlmake-3.4.dev1-py3.8.egg\hdlmake\main.py", line 70, in hdlmake
_action_runner(action)
File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\site-packages\hdlmake-3.4.dev1-py3.8.egg\hdlmake\main.py", line 86, in _action_runner
action.makefile()
File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\site-packages\hdlmake-3.4.dev1-py3.8.egg\hdlmake\action\commands.py", line 72, in makefile
self.solve_file_set()
File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\site-packages\hdlmake-3.4.dev1-py3.8.egg\hdlmake\action\action.py", line 161, in solve_file_set
dep_solver.parse_source_files(graph, self.parseable_fileset)
File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\site-packages\hdlmake-3.4.dev1-py3.8.egg\hdlmake\sourcefiles\new_dep_solver.py", line 87, in parse_source_files
investigated_file.parser.parse(investigated_file, graph)
File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\site-packages\hdlmake-3.4.dev1-py3.8.egg\hdlmake\sourcefiles\vlog_parser.py", line 494, in parse
buf = self.preprocessor.preprocess(dep_file)
File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\site-packages\hdlmake-3.4.dev1-py3.8.egg\hdlmake\sourcefiles\vlog_parser.py", line 236, in preprocess
return self._preprocess_file(file_content=buf,
File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\site-packages\hdlmake-3.4.dev1-py3.8.egg\hdlmake\sourcefiles\vlog_parser.py", line 227, in _preprocess_file
return _handle_macros(buf)
File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\site-packages\hdlmake-3.4.dev1-py3.8.egg\hdlmake\sourcefiles\vlog_parser.py", line 220, in _handle_macros
return re.sub(r'^\s*\n','', _proc_macros_layer(parts, vpp_macros)[0], flags=re.MULTILINE)
File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\site-packages\hdlmake-3.4.dev1-py3.8.egg\hdlmake\sourcefiles\vlog_parser.py", line 189, in _proc_macros_layer
included_file_path = self._search_include(front.incfile, os.path.dirname(file_name))
File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\site-packages\hdlmake-3.4.dev1-py3.8.egg\hdlmake\sourcefiles\vlog_parser.py", line 72, in _search_include
possible_file = os.path.join(parent_dir, filename)
File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\ntpath.py", line 117, in join
genericpath._check_arg_types('join', path, *paths)
File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\genericpath.py", line 152, in _check_arg_types
raise TypeError(f'{funcname}() argument must be str, bytes, or '
TypeError: join() argument must be str, bytes, or os.PathLike object, not 'NoneType'
From my point, it's looks like some problems with finding file, included by <> symbols.