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

Compiling pep-508 fails [Rust v1.70] #4

Closed
aswinnnn opened this issue Oct 18, 2023 · 4 comments
Closed

Compiling pep-508 fails [Rust v1.70] #4

aswinnnn opened this issue Oct 18, 2023 · 4 comments

Comments

@aswinnnn
Copy link

Using pep-508 v0.3.0

Error:

error[E0599]: no method named `slice` found for struct `Then` in the current scope
   --> pep-508-0.3.0\src\url.rs:142:6
    |
125 | /     choice((
126 | |         group((
127 | |             any().filter(char::is_ascii_alphabetic),
128 | |             set!('A' ..= 'Z' | 'a' ..= 'z' | '0' ..= '9' | '+' | '-' | '.').repeated(),
...   |
141 | |     .then(frags)
142 | |     .slice()
    | |     -^^^^^ method not found in `Then<Choice<(Ignored<Group<(..., ..., ..., ...)>, ...>, ..., ...)>, ..., ..., ..., ...>` 
    | |_____|
    | 
    |

This started happening out of nowhere. Do you know why?

@figsoda
Copy link
Owner

figsoda commented Oct 18, 2023

that might be due to an update in chumsky, as a workaround you can do chumsky = "=1.0.0-alpha.5", or anywhere from alpha.3 to alpha.5

I will push an update soon to fix this with the latest version of chumsky and probably use = instead of >= to be future-proof

@aswinnnn
Copy link
Author

right, that makes sense.
I'd appreciate it if you could look into #2 while you're working on that update, thanks.

@aswinnnn
Copy link
Author

Incase you're too busy I could make a PR, since its just a config change.

aswinnnn added a commit to aswinnnn/pep-508 that referenced this issue Oct 21, 2023
@figsoda
Copy link
Owner

figsoda commented Nov 20, 2023

Sorry for the super late response, I just published 0.4.0 which should fix this issue.

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

No branches or pull requests

2 participants