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

Compiler Bug Outstanding references to the derived module #7127

Open
lukewilliamboswell opened this issue Sep 28, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@lukewilliamboswell
Copy link
Collaborator

I was trying to make a small repro for another issue when I stumbled across this.

$ roc test example.roc
An internal compiler expectation was broken.
This is definitely a compiler bug.
Please file an issue here: <https://github.com/roc-lang/roc/issues/new/choose>
Outstanding references to the derived module
Location: crates/compiler/load_internal/src/file.rs:3298:29
module []

fn : Result {} {}
fn = (Ok {})?

expect fn == Ok {}
@lukewilliamboswell lukewilliamboswell added the bug Something isn't working label Sep 28, 2024
@lukewilliamboswell
Copy link
Collaborator Author

lukewilliamboswell commented Sep 29, 2024

This also throws the same error...

$ roc check src/Models/Product.roc
module [Product, sampleData]

Product : {
    id : I64,
    name : Str,
    category : Str,
    technology : Str,
    description : Str,
    price : Str,
    discount : Str,
}

sampleData : List Product
sampleData = []

But if I cd into the same folder and then roc check it is fine.

11:28:39 ~/Documents/GitHub/roc-htmx-tailwindcss-demo main $ cd src/Models/
11:30:16 ~/Documents/GitHub/roc-htmx-tailwindcss-demo/src/Models main $ roc check Product.roc
0 errors and 0 warnings found in 27 ms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant