Skip to content

Warning output is written inside the script #123

Closed
@Koushikphy

Description

@Koushikphy

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions