solana-playground / solana-playground

Quickly develop, deploy and test Solana programs from browsers
https://beta.solpg.io
Apache License 2.0
396 stars 132 forks source link

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

Closed brimigs closed 2 months ago

brimigs commented 2 months ago

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 commented 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).