Adding Fable.Reaction cause Toth.Json error

Open
#109 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
fsharp

Research direction

The failure is reported in paket-files/thoth-org/Thoth.Json/src/Decode.fs at lines 913-948; first reproduce the build after adding Fable.Reaction and inspect those calls in context. Done means the REPL builds without the six FABLE EnumOfValue errors.

Written by the indexing model from the issue text.

Description

When I added Fable.Reaction, building fails with below error

C:/Users/onur/source/repos/repl/paket-files/thoth-org/Thoth.Json/src/Decode.fs(913,16): (913,66) error FABLE: EnumOfValue only works if the enum type is known at compile time, try inlining the function
C:/Users/onur/source/repos/repl/paket-files/thoth-org/Thoth.Json/src/Decode.fs(920,16): (920,67) error FABLE: EnumOfValue only works if the enum type is known at compile time, try inlining the function
C:/Users/onur/source/repos/repl/paket-files/thoth-org/Thoth.Json/src/Decode.fs(927,16): (927,67) error FABLE: EnumOfValue only works if the enum type is known at compile time, try inlining the function
C:/Users/onur/source/repos/repl/paket-files/thoth-org/Thoth.Json/src/Decode.fs(934,16): (934,68) error FABLE: EnumOfValue only works if the enum type is known at compile time, try inlining the function
C:/Users/onur/source/repos/repl/paket-files/thoth-org/Thoth.Json/src/Decode.fs(941,16): (941,65) error FABLE: EnumOfValue only works if the enum type is known at compile time, try inlining the function
C:/Users/onur/source/repos/repl/paket-files/thoth-org/Thoth.Json/src/Decode.fs(948,16): (948,68) error FABLE: EnumOfValue only works if the enum type is known at compile time, try inlining the function

@MangelMaxime :)

Dominant language
F#
Stars
68
Forks
36
Avg merge
13h 1m
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from fable-compiler/repl

All issues in fable-compiler/repl

Similar issues

More Build System issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.