Bjorn-Strom / FSS

MIT License
100 stars 4 forks source link

Using with Fable on macOS #36

Open deerob4 opened 1 year ago

deerob4 commented 1 year ago

Hi, thanks for the great work with this library!

I'm trying to build my Fable project on macOS, but I run into an compilation error when the compiler reaches Fss:

Stack overflow.
Repeat 392 times:
--------------------------------
at Fable.Transforms.AST.visitFromOutsideIn(Microsoft.FSharp.Core.FSharpFunc`2<Fable.AST.Fable.Expr,Microsoft.FSharp.Core.FSharpOption`1<Fable.AST.Fable.Expr>>, Fable.AST.Fable.Expr)
at Fable.Transforms.AST+visitFromOutsideIn@1029.Invoke(Fable.AST.Fable.Expr)
at Fable.Transforms.AST.visit(Microsoft.FSharp.Core.FSharpFunc`2<Fable.AST.Fable.Expr,Fable.AST.Fable.Expr>, Fable.AST.Fable.Expr)
...repeated a bunch of times

A bit of searching led me to this issue that you opened in the Fable compiler repo, which I guess is referring to this project. Did you find a way around this, or will it have to wait for an upstream fix before Fss can be used on macOS with the latest version of Fable?

Bjorn-Strom commented 1 year ago

Hello and thank you for the kind words 🙇‍♂️

You are absolutely correct in this being an issue with Fable on macOS. Regrettably, I couldn't find any viable workaround, so I had to downgrade Fable to resolve the problem.

I wanted to investigate the Fable bug, but I've been swamped with work and various other life commitments - so I have not been able.

deerob4 commented 1 year ago

Thanks for confirming so quickly, and no problem! I've spent a couple of hours today digging around the Fable compiler, but given its complexity I think solving this is a little beyond my current ability in F#. But I guess I can leave this issue open for now so it's easy to find for others 🙂