-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
Fantomas replacing "" with random stuff #83
Comments
The previous code had a problem and was not valid F# code, but I've updated it with code that is valid F# and compiles, but fantomas still gets it wrong |
I think I know the cause of this. Will push a fix tomorrow. |
Tks |
I've uploaded a more complete sample where this problem happens: https://gist.github.com/ovatsus/6042511 |
I thought it's a regression but it isn't. Basically the hack we use to lookup original strings is broken (see https://github.com/dungpa/fantomas/blob/master/src/Fantomas/SourceParser.fs#L11). I added a StrictMode option (see f2eeacf). Your use case is safe when using We have to investigate further why string lookup is broken. |
Can you push this to NuGet? |
I pushed Fantomas 1.0.1 to NuGet. Is there any way I can share the key so that you can publish NuGet package as well? |
Tks. |
I'm going to expose Do you think we should expose it to VS extension? To me it's more like a workaround than an option. |
I don't think so, it's only usefull while the root bug isn't fixed |
Actually, maybe instead of |
The option preserves XmlDoc comments (I forgot to enable this), ignore other kinds of comment, ignore compiler directives and print literals in the canonical form. So |
ok |
when calling
formatSourceString
on this string:Some of the
""
are being turned into random stuf lileow
andon
. I'm getting this:Test with the master branch
The text was updated successfully, but these errors were encountered: