Closed brimigs closed 2 months ago
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 6126b424ae6ccdbf6e870ae8db37d15cc01442c3 (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).
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 themethod 'get' not found
error.Screenshot of building issue:
Successful build after removing this error from the code: