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.
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
loaddirective for that package. For example:Would return
download-example.star:12:8: undefined: bsoupSince the symbol
bsoupis the root cause of this error, we could detect that thebsouppackage needs to be loaded by addingload("bsoup.star", "bsoup")to the start of the file.