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

[bug] "building..." hangs and does not show error in the console #205

Closed
brimigs opened this issue Feb 27, 2024 · 1 comment
Closed

[bug] "building..." hangs and does not show error in the console #205

brimigs opened this issue Feb 27, 2024 · 1 comment
Labels
bug Something isn't working build

Comments

@brimigs
Copy link

brimigs commented Feb 27, 2024

With the new anchor version, you now need to directly use ctx.bump instead of using .get(). If your program still uses the .get() method, an error is not generated when attempting to build your program on solana playground. Instead, "building..." just hangs in the console and will never generate the method 'get' not found error.

Screenshot of building issue:
Screenshot of Firefox at Feb 27, 2024 at 12_15_28 PM

Successful build after removing this error from the code:
Screenshot of Firefox at Feb 27, 2024 at 12_16_09 PM

@acheroncrypto acheroncrypto added bug Something isn't working build labels Feb 27, 2024
@acheroncrypto
Copy link
Member

It doesn't actually hang, the error message just gets filtered out. This was a false positive with detecting useless errors and was fixed in 6126b42 (but not yet deployed). I've just deployed it so it should work now.

There is a new "Improve build errors" setting to enable/disable this behavior (enabled by default).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build
Projects
None yet
Development

No branches or pull requests

2 participants