-
Notifications
You must be signed in to change notification settings - Fork 586
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
StringBuilder.appendQuotedIfNotNull
is used incorrectly.
#2728
Comments
teo-tsirpanis
added a commit
to teo-tsirpanis/Farkle
that referenced
this issue
Jan 10, 2023
We can't upgrade until fsprojects/FAKE#2728 gets fixed.
@teo-tsirpanis thanks for reporting, can you send a PR? |
I can't understand what the correct code would be. I would have already sent it if I could. 😅 |
@yazeedobaid I want to fix the bug, can you help me understand it? What should |
@teo-tsirpanis the function should escape quotations in the passed string if it has any. It is being discussed in this PR #2739 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In
FAKE/src/app/Fake.Core.String/StringBuilder.fs
Lines 69 to 75 in 8dbf221
value
is null, but if it isn't we append boths
andvalue
.This doesn't work well with code like
FAKE/src/app/Fake.DotNet.MSBuild/MSBuild.fs
Lines 684 to 687 in 8dbf221
value
isSome
, which is a function, and displaying does not make any sense, leading to errors like https://ci.appveyor.com/project/teo-tsirpanis/farkle/builds/45896483/job/9et0xrw72ibtg3ar#L6292.The text was updated successfully, but these errors were encountered: