Fable
Fable copied to clipboard
F# to JavaScript, TypeScript, Python, Rust and Dart Compiler
Fix 4041
### Discussed in https://github.com/fable-compiler/Fable/discussions/3978 Originally posted by **joprice** December 17, 2024 I'm curious whether the current behavior I'm seeing is correct when rebuilding after a single line change. I find...
Hello, ```fs let nullableTestWorking (s: Nullable) = // Works because we have generate a type guard s != null if s.HasValue then s.Value.Length else 0 let nullableTestFailing (s: Nullable) =...
Hello, I encountered a surprising error while using [`Fable.Elmish.Browser` custom `Traces.console`](https://github.com/elmish/browser/blob/v4.x/src/tracers.fs#L12): ``` Unable to process the message: [*removed*] Error: Microsoft.FSharp.Core.FSharpOption`1 is not an F# union type getUnionCases Reflection.js:310 getCaseName Program.fs:25...
I'm trying to get `CallerFilePath` to output relative paths using the ideas from the first answer here: https://stackoverflow.com/questions/65935784/is-it-possible-to-remove-the-full-paths-from-net-assemblies-created-with-dotnet. It suggests that adding config like the following to an `fsproj` or...
Hello, I use the following command with Fable latest version (4.24.0) on Windows: ``` dotnet fable watch ClientApp --sourceMaps --run npx vite ``` It works well most of the time,...
```fsharp let x = 100000 x.ToString "#,#" |> printfn "%s" x.ToString "N0" |> printfn "%s" printfn $"{x:N0}" ``` In fsi, this prints 3 identical lines based on the current culture....
I have list of around 1000 items that compiles fine with fsc, but when using fable, I get an error with a loop like the following: ``` arp.Compiler.Text.Range, FSharp.Compiler.Syntax.SynExpr, FSharp.Compiler.Syntax.SynExpr,...
Hello, ```fs printfn $""" Big TimeSpan value (Fable): %A{System.TimeSpan.FromDays(10675199).Ticks} Big TimeSpan value (.NET): 9223372036854775807L """ ``` ```text Big TimeSpan value (Fable): 9223371936000000000 Big TimeSpan value (.NET): 9223372036854775807L ``` This doesn't...
I am starting this PR early to avoid duplicate work regarding nullable/nullness support #3887