Skip to content
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

Missing type attribute for a canister causes panic #3729

Open
vporton opened this issue Apr 27, 2024 · 0 comments
Open

Missing type attribute for a canister causes panic #3729

vporton opened this issue Apr 27, 2024 · 0 comments
Labels
needs-triage This ticket needs investigation.

Comments

@vporton
Copy link
Contributor

vporton commented Apr 27, 2024

Missing type attribute for a canister causes panic (should cause a regular error).

$  dfx start --background --clean && time dfx deploy -vv
Running dfx start for version 0.20.0-icsystemtest.0+rev256.f4913345
Using project-specific network 'local' defined in /home/porton/Projects/zondirectory2/dfx.json
  Version v0.20.0-icsystemtest.0+rev256.f4913345 installed successfully.
Initialized replica.
Dashboard: http://localhost:36121/_/dashboard
Trace mode enabled. Lots of logs coming up.
Checking if identity 'default' exists.
Building dependencies graph.
thread 'main' panicked at src/dfx/src/lib/builders/motoko.rs:44:96:
called `Result::unwrap()` on an `Err` value: Failed to create <Type>CanisterInfo for canister 'frontend'.

Caused by:
    `main` attribute is required on Motoko canisters in dfx.json
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aborted (core dumped)

real	0m15.212s
user	0m16.274s
sys	0m1.671s
@vporton vporton added the needs-triage This ticket needs investigation. label Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage This ticket needs investigation.
Projects
None yet
Development

No branches or pull requests

1 participant