solana-labs / example-helloworld

Hello world on Solana
MIT License
901 stars 866 forks source link

Error building `npm run build:program-rust` on linux - cannot find function `is` in this scope #511

Open giogam opened 2 years ago

giogam commented 2 years ago

I can't get npm run build:program-rust working and I can't figure what I'm doing wrong

image

I am running Pop OS latest AMD CPU Node v14.19.1 Rust Toolchain 1.59.0 ( I also tried newest versions)

itayLev1 commented 1 year ago

not sure but maybe you should edit StderrLock (trait or enum) to include the is() function in its model (class like).

the other error handling suggestion by npm is to remove the need for StderrLock by removing it from the function declaration as a parameter check. (I guess this is not too recomended cause you will loose one of Rusts main features (memory safty) and Im almost sure this will produce some more other errors).