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 hangs indefinitely when run #459

Closed
willd-mwp opened this issue Aug 12, 2019 · 7 comments
Closed

Fantomas hangs indefinitely when run #459

willd-mwp opened this issue Aug 12, 2019 · 7 comments

Comments

@willd-mwp
Copy link

Description

After installing fantomas-tool, when running fantomas against a file or folder, the process hangs indefinitely, with no output being produced, the process needs to be given a force quit ctrl-c to return back to the terminal.

Repro code

I have tried with both the stable channel and the preview release of fantomas-tool. I cloned the repo to try some further debugging. Running build.sh was successful, with all tests passing. After building, if I then run the built fantomas-tool.dll directly against a file, fantomas seems to operate correctly, and produces a formatted F# source file.

Windows 10
.NET Frameworks 4.6.1 (and later) SDKs and targeting packs are installed.
.NET Core 2.1 and 2.2 are installed.

@nojaf
Copy link
Contributor

nojaf commented Aug 12, 2019

Did you built from the master branch or the trivia?

@willd-mwp
Copy link
Author

Did you built from the master branch or the trivia?

master

@nojaf
Copy link
Contributor

nojaf commented Aug 12, 2019

Could you try the trivia branch? If you there encounter a problem that you can share with us, we can act upon it. Otherwise I don't really see the call to action here.

@willd-mwp
Copy link
Author

While experimenting with this, I tried running fantomas from different terminals, I had been running it through git bash before, it seems to work fine via cmd and powershell, so I guess it's not playing happy with git bash for some reason...

@jindraivanek
Copy link
Contributor

Interesting.

Can reproduce (in trivia branch) in git bash and cygwin. However in WLS bash it works fine. Looks like some problem with mingw/cygwin.

Don't know if it is even possible to debug this, and if it is that important issue.

@willd-mwp
Copy link
Author

Yeah I wouldn't know where to start with debugging this, and whether the problem is within the scope of this repo at all, but I thought it would be useful to document what I had discovered, in case anyone else encounters this and starts googling, because I couldn't find any mention of it elsewhere.

@nojaf
Copy link
Contributor

nojaf commented Aug 30, 2019

I'm going to close this as it doesn't sound actionable to me.

@nojaf nojaf closed this as completed Aug 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants