You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
import: a segment starting with a digit is refused, but the error says digits are allowed #1961
SOME PROOFS FAIL
Error:
- expected : an import path of plain names (letters, digits, _ and -; the hub*s files import the hub*s)
- observed : (sub/2d/main.bend)
bend probe_d2.bend prints 1.
What the rule appears to be
A path segment must start with a letter or _. d2 passes, 2d does not. The message lists digits as valid in a name, which sends the reader looking for a path or permission problem instead of renaming the directory.
Proposed
Either accept 2d (it is letters and digits), or change the message to say that each segment must start with a letter or _, and add a Note pointing at the segment and the first character. The restriction itself is fine; the diagnostic is the issue.
This is a diagnostics defect, not a capability gap: renaming 2d to two_moons fixed it.
Activity