Untested compiler error and warning variants
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- javascript
- Domain
- testing
Research direction
Start with tests/ERROR_VARIANTS.md and the super_errors harnesses it describes. The issue lists compiler error and warning variants that lack test coverage, along with the obstacles found for reproducing them. Determine which entries can be covered by fixtures or need a different harness, then add tests where reachable and document any dead-code candidates; done means the useful catalog findings are preserved and the test gaps are addressed.
Written by the indexing model from the issue text.
Description
tests/ERROR_VARIANTS.md is being removed. This issue keeps the useful part: the compiler error and warning variants that no test exercises. For each one it records what the catalog found about reaching it.
Possibly a bug
-
Syntaxerr.Variable_in_scope: reachable vialet f: type t. (t, 't) => t = …, butSyntaxerr.errorhas no registered printer, so it escapes asFatal error: exception Syntaxerr.Error(_). It needs a printer, or should become a regular typed diagnostic.
Reachability unknown
Sites are live, but no source reproduction has been found. Each of these either needs a fixture or is a dead-code candidate.
-
typedecl.Cycle_in_def:recursive_type_abbrev_cycle.resreportsRecursive_abbrevinstead. -
typedecl.Rebind_mismatch: the shape check afterRebind_wrong_type. -
typedecl.Type_clash: marked "appears dead" in the source. -
typemod.With_makes_applicative_functor_ill_typed(check_usage_of_path_of_substituted_item): attempts hitnot a signaturefirst. -
typemod.Cannot_eliminate_dependency(Pmod_applyintype_module_aux): attempts hitIncomplete_packed_moduleorescapes its scope. -
typemod.Scoping_pack(type_package): attempts hitIncomplete_packed_module. - Warning 5
Partial_application(check_application_result): no reproduction found.
Reachable, but not from the super_errors harnesses
Needs a per-fixture flag
-
typecore.Jsx_not_enabled: the runner hard-codes-bs-jsx 4. -
typecore.Invalid_string_escape_sequence: the parser rejects such source first, so only a PPX can produce the AST.
Needs missing or stale build state
-
typedecl.Unavailable_type_constructor -
typemod.With_changes_module_alias -
typemod.Cannot_scrape_alias -
typetexp.Cannot_scrape_alias -
includemod.Unbound_modtype_path -
includemod.Unbound_module_path -
includemod.Invalid_module_alias -
bs_exception.Cmj_not_found -
bs_exception.Missing_ml_dependency -
bs_exception.Dependency_script_module_dependent_not: a script-mode dependency used from package mode. -
env.Illegal_renaming -
env.Inconsistent_import -
env.Missing_module - Warning 49
No_cmi_file
Needs corrupt or foreign binary files
-
cmi_format.Not_an_interface -
cmi_format.Wrong_version_interface -
cmi_format.Corrupted_interface -
cmt_format_common.Not_a_typedtree -
cmd_ast_exception.WrongMagic: a PPX returns the wrong AST magic number.
Needs custom argv
-
bsc_args.Unknown(bsc --bogus) -
bsc_args.Missing(bsc -o)
Reachable from plain source
- Warning 27
Unused_var_strict: no expected output shows it.
- Dominant language
- ReScript
- Stars
- 7.5k
- Forks
- 483
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 150
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing 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 rescript-lang/rescript
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
rescript-lang/rescript#8910 ·
Maintainers usually reply within 1 day
-
Nested JSX components under React Server Components: derive flat exports from the signaturePossibly taken @cknitt claimed this 2 days ago. Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
rescript-lang/rescript#8901 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
rescript-lang/rescript#8878 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
rescript-lang/rescript#8806 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
rescript-lang/rescript#8798 ·
Maintainers usually reply within 1 day
All issues in rescript-lang/rescript
Similar issues
-
engine-rs P3 review-deferral wasm
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
maniator/verticopolis#1154 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
Qiskit/qiskit-aer#2487 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100