-
Notifications
You must be signed in to change notification settings - Fork 953
regexp compile failures on darwin/wasm #1306
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
Comments
|
Removed the arch-label: same error with the wasm target:
|
@deadprogram I really want to try to fix this: could you give me 30 seconds of pointers? Like even a previous issue/PR that is similar to this in spirit will help! |
You can work around this by not doing the package main
import (
"fmt"
"regexp"
)
func main() {
var indenter = regexp.MustCompile(`(?m)^([^\n])`)
var nonOptIndenter = regexp.MustCompile(`(?m)^\s{0,12}([^\s\n\-])`)
var dashStripper = regexp.MustCompile(`(?m)^(\s*)\-\-`)
var maxPlaceholder = regexp.MustCompile(`\bMaxPayload\b`)
for _, re := range []*regexp.Regexp{
indenter,
nonOptIndenter,
dashStripper,
maxPlaceholder,
} {
fmt.Println(re.String())
}
} |
This issue seems to have been fixed by some interp work at some point. |
TLDR
regexp
is listed as fully implemented, yet code using it fails compilation.Version
tinygo version 0.14.0 darwin/amd64 (using go version go1.14.7 and LLVM version 10.0.0)
Failure
Expectation
Testcase
The text was updated successfully, but these errors were encountered: