jaredly / jaredly/milk

Cant find exported type when ppx is used

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Reason
Stars
202
Forks
6
PR merge metrics
No merged PRs in 30d

Description

Hi @jaredly! I was trying to use milk and https://github.com/ELLIOTTCABLE/bs-deriving

when i have ppx in bsconfig.json milk throws error that it can't find desired type.
```
Fatal error: exception Failure("No exported type t in module file:///~/demo/src/Config.re ")
Raised at file "stdlib.ml", line 33, characters 17-33
Called from file "belt/belt_List.ml", line 172, characters 29-34
Called from file "src/Milk.re", line 66, characters 4-675
Called from file "src/Milk.re", line 139, characters 47-66
Called from file "bin/Main.re", line 104, characters 4-47
```

removing ppx from bsconfig helps

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the failure with ppx enabled in bsconfig.json and the Config.re example, then inspect the type lookup paths in src/Milk.re and the reported call site in bin/Main.re. Done means Milk can find the exported type when the bs-deriving ppx is configured, without the reported exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
ocaml
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.