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

Stack overflow in Strict mode #562

Closed
Smaug123 opened this issue Nov 18, 2019 · 5 comments
Closed

Stack overflow in Strict mode #562

Smaug123 opened this issue Nov 18, 2019 · 5 comments

Comments

@Smaug123
Copy link
Contributor

Issue created from fantomas-ui

I suspect I shouldn't be using Strict mode, but anyway: the following code causes a stack overflow in Fantomas when I try it locally.

Code

module C =
  [<DllImport("")>]
  extern IntPtr f()

Error

Http error from server occured while making request to https://fantomas-preview.azurewebsites.net/api/IModelApi/format

Options

Fantomas Next - 3.0.1-11/13/2019

Name Value
IndentOnTryWith false
IndentSpaceNum 4
KeepNewlineAfter false
PageWidth 120
ReorderOpenDeclaration false
SemicolonAtEndOfLine false
SpaceAfterComma false
SpaceAfterSemicolon false
SpaceAroundDelimiter false
SpaceBeforeArgument false
SpaceBeforeColon false
StrictMode true
@nojaf
Copy link
Contributor

nojaf commented Nov 18, 2019

This one seems less related to strict mode, I should test it locally to see what is going on.

@nojaf
Copy link
Contributor

nojaf commented Dec 7, 2019

@theimowski maybe, just maybe this fix will also be relevant for #591

@theimowski
Copy link
Member

Tried 3.1.0-alpha-038 but still same issue for me

@nojaf nojaf closed this as completed in 60feefb Dec 11, 2019
@nojaf
Copy link
Contributor

nojaf commented Dec 11, 2019

#595 was not merged yet, new alpha will contain the fix.
Sorry for the confusion.

@theimowski
Copy link
Member

Ah ok, fetched and tested 60feefb now but still same

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