No roc check error when trying to access non-existent record field
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Domain
- compilers
Research direction
Start with the reproducer in ./test/fx/temp.roc and run ./zig-out/bin/roc check ./test/fx/temp.roc, then run the file to compare the checker and runtime behavior. Done means accessing record.blabla is reported by roc check as an error instead of passing the check and crashing at runtime.
Written by the indexing model from the issue text.
Description
app [main!] { pf: platform "./platform/main.roc" }
import pf.Stdout
main! = || {
record = { first: "Hello" }
Stdout.line!(record.blabla)
}
❯ ./zig-out/bin/roc check ./test/fx/temp.roc
No errors found in 4.7 ms for ./test/fx/temp.roc
roc on main [?] is 📦 v0.0.1 via 🦀 via ↯ v0.15.2
❯ ./zig-out/bin/roc ./test/fx/temp.roc
Roc crashed: Error evaluating from shared memory: TypeMismatch
error: Failed to run with POSIX fd inheritance: error.ProcessExitedWithError
- Dominant language
- Shell
- Stars
- 46
- Forks
- 19
- Avg merge
- 13h 38m
- Merged PRs (30d)
- 19
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from roc-lang/examples
-
example suggestion
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
example suggestion
Difficulty 3/5 1-2 days Newbie friendliness 20/100
-
example suggestion
Difficulty 3/5 Half a day Newbie friendliness 35/100
-
medium priority
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
All issues in roc-lang/examples
Similar issues
-
Update Vish to 1.1.5 Openpackage-update
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
oSoWoSo/vOid_Community_repOsitory#144 · 1 comment ·
-
help wanted new command
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
tldr-pages/tldr#24151 ·
-
PacReq: Rune IDE Openpackage request
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
pacstall/pacstall-programs#9402 ·
-
[BUG] ci: the first prefetch-images.sh call runs before shard.txt exists, so it is always a no-op Openbug github-actions
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
update-request
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
msys2/MINGW-packages#31768 ·