Skip to content

proc-macro::SorceFile failed during a setup #49

@Matsuri-Nagano

Description

@Matsuri-Nagano

Here is my setup:

rustc 1.81.0
solana-cli 2.1.0
avm 0.31.1

I followed every version mentioned in Anchor.toml, following through steps in README.
When I try to run anchor test

The following occurs:
$USER/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/proc-macro2-1.0.94/src/wrapper.rs:367:26
error[E0412]: cannot find type SourceFile in crate proc_macro

$USER/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/proc-macro2-1.0.94/src/wrapper.rs:463:56
error[E0599]: no method named source_file found for reference &proc_macro::Span in the current scope

Seem like an issue on proc-macro? I'm trying to figure out how to resolve this, but got no solid solution yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions