Skip to content

extra blanks in all .bsl files #8208

@smoothdeveloper

Description

@smoothdeveloper

Pickling some comments / discussions related to contributor pain with .bsl file formatting:

#6654 (comment)

@dsyme on 13 May 2019 Contributor

Why so many blank lines?

@smoothdeveloper on 14 May 2019 Author Contributor
I mention the issue in this comment: #6654 (comment)

the standard output / error redirect used in the test lead to this kind of output, although when
using FSI in VS or command line, or in VS editing workflow, the messages do not have those extra
CR.

That was the answer:

@KevinRansom commented on 30 Apr 2019
I think it's best to treat those tests as a big blob of "Here there be dragons" … and cautiously migrate out the tests. However, there is a big problem with doing that … the fsharpqa tests can use the F# compiler server, so we don't constantly spin up a new compiler for the tests that need compilation. the Cambridge tests don't do that. So migrating them earns us a slow down.too much to do.

I don't think .bsl are going away, they are now used in the plain fsharp test suite, and they are much more efficient / contributor friendly than say bringing their contents in unit tests in raw strings:

  • don't require recompilation if they need any adjustments
  • can be looked at / edited with any editor, without looking in large test/code files

Yet, the amount of blank lines makes it hard to get a proper figure of what the compiler actually shows (as indicated by @dsyme comment), and makes it tedious to:

  • adjust formatting of error messages (which is an area of compiler that a larger amount of potential contributors can actually contribute)
  • perusing the test failures anywhere they show in the CI or unit test runners output

Is the status-quo still the status-quo?

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