Closed
Description
I'm using fprettify
in VS Code with the Modern Fortran VS Code extension. I have this VS Code setting for fprettify
"fortran.formatting.formatter": "fprettify",
"fortran.formatting.fprettifyArgs": [
"-i 4",
"-w 2",
"--enable-replacements",
"--c-relations",
"--enable-decl",
"--whitespace-intrinsics=False",
"--whitespace-print=False"
],
And I have this sample code (for test purpose) with a very long line
program demo
write(*, "('Just a very long line. Just a very long line. Just a very long line. Just a very long line. Just a very long line. Just a very long line. ',i0)") 100
endprogram
Now, when I run the format document from the right click menu. This code is formatted as
WARNING: File -, line 3
auto indentation failed due to chars limit, line should be split (limit: 132)
WARNING: File -, line 3
auto indentation failed due to chars limit, line should be split (limit: 132)
program demo
write(*, "('Just a very long line. Just a very long line. Just a very long line. Just a very long line. Just a very long line. Just a very long line. ',i0)") 100
endprogram
i.e. the warnings are written inside the code itself. This is certainly wrong. What is going on here and how to fix it.
Metadata
Metadata
Assignees
Labels
No labels