Skip to content

feature request: detect unloaded packages from error messages #1984

@dustmop

Description

@dustmop

If a transform run returns an error about an undefined name, and that name matches one of the known packages in starlib, suggest adding the load directive for that package. For example:

soup = bsoup.parseHtml(text)

Would return download-example.star:12:8: undefined: bsoup

Since the symbol bsoup is the root cause of this error, we could detect that the bsoup package needs to be loaded by adding load("bsoup.star", "bsoup") to the start of the file.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions