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

error parsing macro #7343

Closed
sehz opened this issue Jan 19, 2021 · 1 comment
Closed

error parsing macro #7343

sehz opened this issue Jan 19, 2021 · 1 comment
Labels
A-macro macro expansion S-actionable Someone could pick this issue up and work on it right now

Comments

@sehz
Copy link

sehz commented Jan 19, 2021

When I am file with following lines, VS Code extension can't parse it:

select! {

                _ = listener.listen() => {
                    // this should be full sync
                    let changes = listener.sync_changes().await;
                    trace!("{} received changes: {:#?}",S::LABEL,changes);

                    Ok(search(self.store().read().await))
                },
                _ = &mut timer => {
                    debug!(
                        SPEC = S::LABEL,
                        Timeout = *MAX_WAIT_TIME,
                        "store look up timeout expired");
                    return Err(IoError::new(
                        ErrorKind::TimedOut,
                        format!("timed out searching metadata {} failed due to timeout: {} ms",S::LABEL,*MAX_WAIT_TIME),
                    ))
                }

            }

Interesting part is that in other places, select! macro works fine.

Steps to reproduce:

You should see above lines marked as error. This used to work some months back

@Veykril Veykril added A-macro macro expansion S-actionable Someone could pick this issue up and work on it right now labels Jan 19, 2021
@lnicola
Copy link
Member

lnicola commented Jan 19, 2021

@lnicola lnicola closed this as completed Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-macro macro expansion S-actionable Someone could pick this issue up and work on it right now
Projects
None yet
Development

No branches or pull requests

3 participants