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

Unable to build examples due to pio-parser error #1515

Closed
M1K8 opened this issue Apr 21, 2023 · 2 comments
Closed

Unable to build examples due to pio-parser error #1515

M1K8 opened this issue Apr 21, 2023 · 2 comments
Labels

Comments

@M1K8
Copy link

M1K8 commented Apr 21, 2023

When trying to cargo build (or cargo check) the pico-w example, the following error occurs:

...
   Compiling pio-parser v0.2.1
error: failed to run custom build command for `pio-parser v0.2.1`

Caused by:
  process didn't exit successfully: `/home/m1karch/rs-wifi-led/deps/cyw43/examples/rpi-pico-w/target/debug/build/pio-parser-962aa517b79a9c21/build-script-build` (exit status: 1)
  --- stdout
  processing file `/home/m1karch/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pio-parser-0.2.1/src/pio.lalrpop`
  /home/m1karch/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pio-parser-0.2.1/src/pio.lalrpop:273:10: 273:44 error: invalid regular expression: regex parse error:
      (\p{ID_Start}|_)\p{ID_Continue}*
       ^^^^^^^^^^^^
  error: Unicode property not found

  --- stderr
    Symbol = r"(\p{ID_Start}|_)\p{ID_Continue}*";
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This occurs on both Windows & Linux.

@Dirbaio
Copy link
Member

Dirbaio commented Apr 21, 2023

seems the regex 1.8.0 release broke something.

lalrpop/lalrpop#750
rust-lang/regex#982

Workaround is to add this to Cargo.toml:

[build-dependencies]
# Workaround https://github.com/embassy-rs/embassy/issues/1515
regex = { version = "~1.7.3", default-features = false }

I've added it in 6a1a3e6, it builds now.

@Dirbaio Dirbaio transferred this issue from embassy-rs/cyw43 May 30, 2023
@Dirbaio
Copy link
Member

Dirbaio commented May 30, 2023

This is now fixed.

@Dirbaio Dirbaio closed this as completed May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants