We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Issue created from fantomas-online
let initDb() = if not (File.Exists(dbFileName)) then let dbFile = File.Create(dbFileName) dbFile.Dispose() |> ignore let createSql = readSqlFile "create" using (connection()) (fun conn -> task { do! conn.OpenAsync() let! _ = conn.ExecuteAsync(createSql) #if DEBUG let! hasClients = hasClients() if not (hasClients) then let seedSql = readSqlFile "seed" let! _ = conn.ExecuteAsync(seedSql) () #endif })
Fantomas.FormatConfig+FormatException: Parsing failed with errors: [|tmp.fsx (18,13)-(18,14) parse error Unexpected symbol '}' in expression|] And options: { SourceFiles = [|"tmp.fsx"|] ConditionalCompilationDefines = [] ErrorSeverityOptions = { WarnLevel = 3 GlobalWarnAsError = false WarnOff = [] WarnOn = [] WarnAsError = [] WarnAsWarn = [] } IsInteractive = false LightSyntax = None CompilingFsLib = false IsExe = false } at Fantomas.CodeFormatterImpl.parse@61-2.Invoke(FSharpParseFileResults _arg2) at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvokeNoHijackCheck[a,b](AsyncActivation`1 ctxt, FSharpFunc`2 userCode, b result1) in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\async.fs:line 416 at <StartupCode$FSharp-Compiler-Service>.$Service.ParseFile@436-3.Invoke(AsyncActivation`1 ctxt) in /Users/chethusk/oss/FCS/src/fsharp/service/service.fs:line 436 at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction) in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\async.fs:line 109
The compiler cannot create AST for some reason.
Fantomas Master at 07/14/2020 19:31:03 - 3416b51
IndentSize
4
MaxLineLength
120
SemicolonAtEndOfLine
false
SpaceBeforeParameter
true
SpaceBeforeLowercaseInvocation
SpaceBeforeUppercaseInvocation
SpaceBeforeClassConstructor
SpaceBeforeMember
SpaceBeforeColon
SpaceAfterComma
SpaceBeforeSemicolon
SpaceAfterSemicolon
IndentOnTryWith
SpaceAroundDelimiter
MaxIfThenElseShortWidth
40
MaxInfixOperatorExpression
50
MaxRecordWidth
MaxArrayOrListWidth
MaxValueBindingWidth
MaxFunctionBindingWidth
MultilineBlockBracketsOnSameColumn
NewlineBetweenTypeDefinitionAndMembers
KeepIfThenInSameLine
MaxElmishWidth
SingleArgumentWebMode
AlignFunctionSignatureToIndentation
AlternativeLongMemberDefinitions
StrictMode
The text was updated successfully, but these errors were encountered:
The computation doesn't return anything if DEBUG is false. There is still a bug if it does:
DEBUG
let initDb() = if not (File.Exists(dbFileName)) then let dbFile = File.Create(dbFileName) dbFile.Dispose() |> ignore let createSql = readSqlFile "create" using (connection()) (fun conn -> task { do! conn.OpenAsync() let! _ = conn.ExecuteAsync(createSql) #if DEBUG let! hasClients = hasClients() if not (hasClients) then let seedSql = readSqlFile "seed" let! _ = conn.ExecuteAsync(seedSql) () #else () #endif })
Sorry, something went wrong.
Print trivia before closing brace. Fixes fsprojects#977.
183ddf8
Print trivia before closing brace. Fixes #977. (#1011)
39f3165
Successfully merging a pull request may close this issue.
Issue created from fantomas-online
Code
Error
Problem description
The compiler cannot create AST for some reason.
Extra information
Options
Fantomas Master at 07/14/2020 19:31:03 - 3416b51
IndentSize
4
MaxLineLength
120
SemicolonAtEndOfLine
false
SpaceBeforeParameter
true
SpaceBeforeLowercaseInvocation
true
SpaceBeforeUppercaseInvocation
false
SpaceBeforeClassConstructor
false
SpaceBeforeMember
false
SpaceBeforeColon
false
SpaceAfterComma
true
SpaceBeforeSemicolon
false
SpaceAfterSemicolon
true
IndentOnTryWith
false
SpaceAroundDelimiter
true
MaxIfThenElseShortWidth
40
MaxInfixOperatorExpression
50
MaxRecordWidth
40
MaxArrayOrListWidth
40
MaxValueBindingWidth
40
MaxFunctionBindingWidth
40
MultilineBlockBracketsOnSameColumn
false
NewlineBetweenTypeDefinitionAndMembers
false
KeepIfThenInSameLine
false
MaxElmishWidth
40
SingleArgumentWebMode
false
AlignFunctionSignatureToIndentation
false
AlternativeLongMemberDefinitions
false
StrictMode
false
The text was updated successfully, but these errors were encountered: