-
Notifications
You must be signed in to change notification settings - Fork 54
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
Seahorse build error #94
Comments
Thanks! Can you share exactly the code you're trying to compile please? |
Python code `# calculator Built with Seahorse v0.2.7from seahorse.prelude import * declare_id('Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS') class Calculator(Account): class Operation(Enum): @Instruction @Instruction assert owner.key() == calculator.owner, 'This is not your calculator!' calculator.display = 0 @Instruction if op == Operation.ADD: It builds |
`import * as anchor from "@project-serum/anchor"; describe("calculator", () => { const program = anchor.workspace.Calculator as Program; const owner = provider.wallet.publicKey it("Initializes a calculator", async () => { it('Does arithmetic operations', async () => {
}); it('Prevents fraudulent transactions', async () => {
let tx = new web3.Transaction( |
@Killpit as with my comment here, please use triple backtick code blocks |
''' describe("calculator", () => { const program = anchor.workspace.Calculator as Program; const owner = provider.wallet.publicKey it("Initializes a calculator", async () => { it('Does arithmetic operations', async () => {
}); it('Prevents fraudulent transactions', async () => {
let tx = new web3.Transaction( |
seahorse build
✗ Compiling calculator... (note: if this is your first time building, it might take a few minutes)
Error: anchor build -p calculator failed:
This is most likely a bug in the Seahorse compiler!
If you want to help the project, you can report this:
Thanks!
Compiling syn v1.0.109
Compiling toml_edit v0.19.4
Compiling regex v1.7.1
Compiling proc-macro-crate v1.3.1
Compiling proc-macro2-diagnostics v0.9.1
Compiling borsh-derive-internal v0.9.3
Compiling borsh-schema-derive-internal v0.9.3
error: could not compile
borsh-schema-derive-internal
Caused by:
could not execute process
rustc --crate-name borsh_schema_derive_internal --edition=2018 /Users/atatekeli/.cargo/registry/src/github.com-1ecc6299db9ec823/borsh-schema-derive-internal-0.9.3/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C overflow-checks=on -C metadata=5c156f6b369bdd2c -C extra-filename=-5c156f6b369bdd2c --out-dir /Users/atatekeli/calculator/target/release/deps -L dependency=/Users/atatekeli/calculator/target/release/deps --extern proc_macro2=/Users/atatekeli/calculator/target/release/deps/libproc_macro2-e71e4eb7661bf272.rmeta --extern quote=/Users/atatekeli/calculator/target/release/deps/libquote-4f5955c0bc56a4bf.rmeta --extern syn=/Users/atatekeli/calculator/target/release/deps/libsyn-8d87a2ff23a45535.rmeta --cap-lints allow
(never executed)Caused by:
Resource temporarily unavailable (os error 35)
warning: build failed, waiting for other jobs to finish...
error: could not compile
borsh-derive-internal
Caused by:
could not execute process
rustc --crate-name borsh_derive_internal --edition=2018 /Users/atatekeli/.cargo/registry/src/github.com-1ecc6299db9ec823/borsh-derive-internal-0.9.3/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C overflow-checks=on -C metadata=ff4d752cb39cb352 -C extra-filename=-ff4d752cb39cb352 --out-dir /Users/atatekeli/calculator/target/release/deps -L dependency=/Users/atatekeli/calculator/target/release/deps --extern proc_macro2=/Users/atatekeli/calculator/target/release/deps/libproc_macro2-e71e4eb7661bf272.rmeta --extern quote=/Users/atatekeli/calculator/target/release/deps/libquote-4f5955c0bc56a4bf.rmeta --extern syn=/Users/atatekeli/calculator/target/release/deps/libsyn-8d87a2ff23a45535.rmeta --cap-lints allow
(never executed)Caused by:
Resource temporarily unavailable (os error 35)
AtaTekeli:calculator atatekeli$
I just created a simple calculator program according to tutorial and never added anything other than generic seahorse code that being created after seahorse init command
The text was updated successfully, but these errors were encountered: