Skip to content

Conversation

@folk85
Copy link
Contributor

@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

Copy link
Member

@gnikit gnikit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix @folk85

@codecov
Copy link

codecov bot commented Dec 14, 2025

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.26%. Comparing base (d5c808a) to head (7fd9374).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
src/lsp/client.ts 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1261      +/-   ##
==========================================
- Coverage   81.30%   81.26%   -0.04%     
==========================================
  Files          12       12              
  Lines        2321     2322       +1     
  Branches      191      191              
==========================================
  Hits         1887     1887              
- Misses        429      430       +1     
  Partials        5        5              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@gnikit gnikit merged commit 614e0c6 into fortran-lang:main Dec 14, 2025
1 of 3 checks passed
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.

2 participants