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

feature request: detect unloaded packages from error messages #1984

Open
dustmop opened this issue Nov 30, 2021 · 0 comments
Open

feature request: detect unloaded packages from error messages #1984

dustmop opened this issue Nov 30, 2021 · 0 comments
Assignees

Comments

@dustmop
Copy link
Contributor

dustmop commented Nov 30, 2021

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.

@dustmop dustmop self-assigned this Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant