Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialization failed error #209

Open
Turgon-Aran-Gondolin opened this issue Oct 15, 2021 · 0 comments
Open

Initialization failed error #209

Turgon-Aran-Gondolin opened this issue Oct 15, 2021 · 0 comments

Comments

@Turgon-Aran-Gondolin
Copy link

Turgon-Aran-Gondolin commented Oct 15, 2021

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:

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 process_file
_, 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:

  Shat7(1,z6(1,1,1,1,1,1),ep) =
 &  - Bsum11111(ep)
 &  - 5.D0*Bsum1111(ep)
 &  - 10.D0*Bsum111(ep)
 &  - 10.D0*Bsum11(ep)
 &  - 5.D0*Bsum1(ep)
 &  - Bsum0(ep)
 &

  Shat7(2,z6(1,1,1,1,1,1),ep) =
 &  - Bsum11111(ep)
 &  - 5.D0*Bsum1111(ep)
 &  - 10.D0*Bsum111(ep)
 &  - 10.D0*Bsum11(ep)
 &  - 5.D0*Bsum1(ep)
 &  - Bsum0(ep)
 &  + Bv(bb111111 + B12,ep)
 &

  Shat7(1,z6(1,1,1,1,1,2),ep) =
 &  + Bsum11111(ep)
 &  + 4.D0*Bsum1111(ep)
 &  + 6.D0*Bsum111(ep)
 &  + 4.D0*Bsum11(ep)
 &  + Bsum1(ep)
 &

And it goes on. I can't figure out what went wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant