I was using the fortran intellisense extension of vscode, and the logs are as following:
Error while parsing file /path-to-MCFM/MCFM-8.3/TensorReduction/recur/Include/ShatC.f
Traceback (most recent call last):
File "~/.local/pipx/venvs/fortran-language-server/lib64/python3.9/site-packages/fortls/langserver.py", line 33, in init_file
file_ast = process_file(file_obj, True, pp_defs=pp_defs, include_dirs=include_dirs)
File "~/.local/pipx/venvs/fortran-language-server/lib64/python3.9/site-packages/fortls/parse_fortran.py", line 1354, in processfile
, line, post_lines = file_obj.get_code_line(line_ind, backward=False, pp_content=True)
File "~/.local/pipx/venvs/fortran-language-server/lib64/python3.9/site-packages/fortls/parse_fortran.py", line 948, in get_code_line
match = FREE_COMMENT_LINE_MATCH.match(next_line)
TypeError: expected string or bytes-like object
As you can see, the error occurs when fortls was parsing a file called ShatC.f, but the file itself is only a bunch of definitions of ShatC (literally nothing else, no comments, no even declaration). The file look like this:
I ran into an
Initialization failed
error when I opened my project. The project file is on https://mcfm.fnal.gov/downloads/MCFM-8.3.tar.gz.I was using the
fortran intellisense
extension of vscode, and the logs are as following:As you can see, the error occurs when
fortls
was parsing a file calledShatC.f
, but the file itself is only a bunch of definitions ofShatC
(literally nothing else, no comments, no even declaration). The file look like this:And it goes on. I can't figure out what went wrong.