솔라나 proc_macro2 `source_file` method not found in `Span` 에러 해결블록체인2025. 5. 3. 14:01
Table of Contents
최근 솔라나 퍼저를 돌려보려고 하는데 버전 업뎃하고 anchor빌드가 안되길래 뭐지 했다.
proc_macro2 `source_file` method not found in `Span`
이딴 버그 뜨길래 버전 낮추고 재설치하고 별에 별걸 다했는데 결국 해결했다.
https://solana.stackexchange.com/questions/21553/proc-macro2-source-file-method-not-found-in-span
여기서 해결했다.
let source_path = proc_macro2::Span::call_site().file();
로 에러 터진 코드 줄 수정하니까 해결됐다.
나만 터진게 아니라서 찾아보니 해결됐다.
이런건 ai가 해결못해서 아숩다.
'블록체인' 카테고리의 다른 글
| rust and solana (0) | 2025.05.22 |
|---|---|
| [ethernaut] (16 Preservation) (0) | 2025.05.12 |
| 솔라나 입문기 - 0 (0) | 2025.04.14 |
| [Ethernaut] (17 Recovery) (0) | 2025.03.14 |
| [Ethernaut] (11 Elevator) (0) | 2025.02.02 |
@Burnnnnny :: Burnnnnny Blog
내가 보고 내가 참고하려고 만든 블로그
틀린 내용이 있다면 댓글로 알려주시면 감사하겠습니다.