Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meaningful spaces can be collapsed in record-with expressions #353

Closed
SteveGilham opened this issue Nov 8, 2018 · 1 comment
Closed

Comments

@SteveGilham
Copy link

With fantomas 2.9.0 command parameters --indent 2 --pageWidth 90

before:

      { to'.WithCommon(fun c ->
          { c with WorkingDirectory =
                     Path.getFullName"./RegressionTesting/issue20/xunit-tests"
                   Verbosity = Some DotNet.Verbosity.Minimal }).WithParameters p0 c0 with Configuration =
                                                                                           DotNet.BuildConfiguration.Debug
                                                                                          NoBuild =
                                                                                           false

after

      { to'.WithCommon(fun c ->
          { c with WorkingDirectory =
                     Path.getFullName"./RegressionTesting/issue20/xunit-tests"
                   Verbosity = SomeDotNet.Verbosity.Minimal }).WithParameters p0 c0 with Configuration =
                                                                                           DotNet.BuildConfiguration.Debug
                                                                                         NoBuild =
                                                                                           false

which gives

Error FS0039: The value, namespace, type or module 'SomeDotNet' is not defined. Maybe you want one of the following:
@SteveGilham SteveGilham changed the title Meaningful spaces can be collapsed in Options Meaningful spaces can be collapsed in record-with expressions Nov 8, 2018
@SteveGilham
Copy link
Author

Another related instance

      to'.WithCommon(fun o' ->
        { dotnetOptions o' with WorkingDirectory =
                                  Path.getFullName "RegressionTesting/issue29"
                                Verbosity = Some DotNet.Verbosity.Minimal }).WithParameters
        p0 c0) ""

became

      to'.WithCommon(fun o' ->
        { dotnetOptionso' with WorkingDirectory =
                                 Path.getFullName "RegressionTesting/issue29"
                                Verbosity = SomeDotNet.Verbosity.Minimal }).WithParameters
        p0 c0) ""

also collapsing the expression before the with

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants