You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to have a top level variable with a non const init in my program, I introduced lazy_static crate, and tests started to fail with the error "program is not deployed". There was also no indication of the problem in .anchor/test-ledger/validator.log.
The behavior is coming from solana-test-validator since anchor test uses that to deploy your program (include the program in genesis rather than "deploy" to be exact).
I also wonder why this is not a compile error, given it's clearly a restricted functionality.
In any case, we might be able to fix it from our side by checking the ELF, but it would be better if this issue gets fixed upstream (either via build tools or solana-test-validator).
I wanted to have a top level variable with a non const init in my program, I introduced
lazy_static
crate, and tests started to fail with the error "program is not deployed". There was also no indication of the problem in .anchor/test-ledger/validator.log.I tracked it down by starting the validator separately with
solana-test-validator
and runninganchor deploy
. Then I saw the same error as in this issue (longer than 16 bytes): https://solana.stackexchange.com/questions/13628/error-elf-error-elf-error-failed-to-parse-elf-file-section-or-symbol-name.The text was updated successfully, but these errors were encountered: