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

Fantomas v4.6.4 and onwards removes backticks #2164

Closed
3 tasks done
jamil7 opened this issue Mar 22, 2022 · 3 comments · Fixed by #2240
Closed
3 tasks done

Fantomas v4.6.4 and onwards removes backticks #2164

jamil7 opened this issue Mar 22, 2022 · 3 comments · Fixed by #2240

Comments

@jamil7
Copy link

jamil7 commented Mar 22, 2022

Issue created from fantomas-online

Code

let foo = {| ``type`` = "hi" |}

Result

let foo = {| type = "hi" |}

Problem description

Please describe here the Fantomas problem you encountered.
Check out our Contribution Guidelines.

Extra information

  • The formatted result breaks by code.
  • The formatted result gives compiler warnings.
  • I or my company would be willing to help fix this.

Options

Fantomas master branch at 2022-03-15T07:45:16Z - f10e239

Default Fantomas configuration

Did you know that you can ignore files when formatting from fantomas-tool or the FAKE targets by using a .fantomasignore file?

@jamil7
Copy link
Author

jamil7 commented Mar 22, 2022

Looks similar to #2116

@jamil7
Copy link
Author

jamil7 commented Mar 22, 2022

This works fine up until fantomas v4.6.3. All the versions after that one have this behavior.

@jamil7 jamil7 changed the title <Insert meaningful title> Fantomas Removing backticks Mar 22, 2022
@jamil7 jamil7 changed the title Fantomas Removing backticks Fantomas v4.6.4 and onwards removes backticks Mar 22, 2022
@nojaf
Copy link
Contributor

nojaf commented Mar 22, 2022

Hello, thank you for raising this issue.
Please consider fixing this upstream at dotnet/fsharp#12303.

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

Successfully merging a pull request may close this issue.

2 participants