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[E0599]: no variant or associated item named deserialize found for enum StakeState in the current scope #35592

Closed
hammad-ali18 opened this issue Jun 20, 2024 · 1 comment
Labels
community Community contribution

Comments

@hammad-ali18
Copy link

Problem

having this issue during anchor build

`Error: Function _ZN14regex_automata4meta8strategy3new17h5a7597463846e6e4E Stack offset of 6344 exceeded max offset of 4096 by 2248 bytes, please minimize large stack variables
Compiling anchor-spl v0.27.0
error[E0599]: no variant or associated item named deserialize found for enum StakeState in the current scope
--> src/stake.rs:139:21
|
139 | StakeState::deserialize(buf).map(Self).map_err(Into::into)
| ^^^^^^^^^^^ variant or associated item not found in StakeState
|
= help: items from traits can only be used if the trait is in scope
help: the following traits are implemented but not in scope; perhaps add a use for one of them:
|
1 + use anchor_lang::AnchorDeserialize;
|
1 + use bincode::config::Options;
|
1 + use borsh::de::BorshDeserialize;
|
1 + use borsh::de::BorshDeserialize;
|
and 3 other candidates

For more information about this error, try rustc --explain E0599.
error: could not compile anchor-spl (lib) due to previous error`

Proposed Solution

@hammad-ali18 hammad-ali18 added the community Community contribution label Jun 20, 2024
Copy link
Contributor

This repository is no longer in use. Please re-open this issue in the agave repo: https://github.com/anza-xyz/agave

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Community contribution
Projects
None yet
Development

No branches or pull requests

1 participant