-
-
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 --recurse" creates a "--recurse" directory #2854
Comments
Hello, Upgrading from version 4.7.9 to 6.0.1 entails two major version bumps, which may introduce breaking changes. Please be aware of this when making the update. It's worth noting that if you pass a non-existent folder when multiple folders are being passed, the folder will be created as expected. Mixing versions in your setup seems rather specific on how you choose to do things. You can detect the current version using |
OK, so I was fooled by official documentation at https://fsprojects.github.io/fantomas/docs/end-users/GettingStarted.html
showing the On the other side, I must admit this is very strange to identify the Thanks for looking into my case! |
P.S.
It is expected to treat any |
|
For whomever it may be useful, my
|
creates an empty dir now... ref: fsprojects/fantomas#2854
* git: sync .fs eol with editorconfig * git: apply renormalization to fix old inconsistencies * build: remove `-r` from fantomas, arg was removed creates an empty dir now... ref: fsprojects/fantomas#2854 * dotnet global.json: enable rollForward latestFeature Also update MSBuild.StructuredLogger, since dotnet 7.0.4 (sdk 7.0.202) shipped with an a bump in the binlog version. Fake uses binlog as a response from the dotnet process and crashed after using a newer sdk. * CONTRIBUTING.md: update dotnet version and link * omnisharp: set solution name, doesnt select default anymore
Hello, I often makes mistakes when invoking fantomas and because of that it creates empty directories.
Why is the expected behaviour to create an empty directory? If I provide a single non existing directory then it reports it as missing which helps diagnostic the problem. To me it feels strange to me that a formatting tool create additional files and not just consume only existing files. |
You could format a directory and output it into a different directory. |
Sorry, I don't understand do you have a command example? Looking at the help message:
It seems that if I do I also tried to use the
Even if |
I really don't quite remember how it works. This seems to somewhat works for me: |
See 3024 for a possible fix. |
Ok perhaps, there is something strange in my project |
Just updated from
fantomas-tool 4.7.9
tofantomas 6.0.1
and it creates--recurse
directories in my modules.Steps to reproduce:
As you can see, the
--recurse
directory appeared.I can see, the
fantomas 6.x
does not require--recurse
anymore, but my project upgrading to fantomas 6 is in progress and the--recurse
flag is still required by other modules (using older fantomas version) and there is one build script for them all.The text was updated successfully, but these errors were encountered: