OpenFn / OpenFn/kit

Throw compile time errors for dangling identifiers.

Open
#942 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

DevX
Dominant language
TypeScript
Stars
21
Forks
23
Avg merge
1d 22h
Merged PRs (30d)
17

Description

Description

When a user code contains some identifiers(variable names, functions...) that aren't defined anywhere in the source. We should be able to throw a compile time error(dev time error).

This is possible because we currently do collect all dangling identifiers
then,

  1. only import the ones available in an adaptor
  2. whitelist the ones present in our supported globals.
  3. coming soon.... whitelist the ones provided by our globals file.

Any dangling identifier that survives these passes is 99% likely to cause a runtime error.

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.

Research direction

Start by tracing the compiler's dangling-identifier collection and the adaptor and supported-global whitelist passes described in the issue. Determine how the remaining identifiers can be reported during compilation, then add coverage showing that unresolved names fail before runtime while adaptor and whitelisted globals remain valid.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.