Skip to content

Conversation

@folk85
Copy link

@folk85 folk85 commented Nov 22, 2025

Empty variable in the ExtraArgs list are included into the global argument list and then fortls try to parse it. Here is the simple example which reproduce the problem:

#file:./.vscode/settings.json
    "fortran.fortls.extraArgs": [
        "--max_comment_line_length=500",
        "",
        "",
        "",
        "",
        "--max_line_length=500",
    ],

The Output panel of "Modern Fortran" shows the following error:
image

If we filter the argument list eliminating empty arguments the problem is dissappearing:
image

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

Successfully merging this pull request may close these issues.

1 participant