-
Notifications
You must be signed in to change notification settings - Fork 17
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
management canister did file not found #263
Comments
Here is a workaround which we use in the base library (source code): actor class Main() {
let Management = (actor "aaaaa-aa" : actor {
raw_rand : () -> async Blob;
});
public func greet(name : Text) : async Text {
ignore await Management.raw_rand();
return "Hello, " # name # "!";
};
}; I'll see if there's any way we can solve this within the VS Code extension; otherwise it might be necessary to fix this in dfx or the Motoko compiler. Update: it sounds as though there are already plans to address this on the replica end. I'll keep an eye on this in case anything else is needed from the extension. |
thanks for the workaround. another way of solving this without having to rewrite the management canister interface is to simply copy the |
Some projects just check in the |
yes, but then i have to generate the motoko bindings from the did file which adds friction |
The extension now uses a default management canister Candid file as of v0.15.0. This should resolve the issue; otherwise, let me know and I'll take another look. |
Thanks for the link! I set up a script to regenerate the Candid file from this URL before packaging the extension (#265). |
this canister builds, and
.dfx/local/canisters/idl/aaaaa-aa.did
is being generated.the vscode extension wants the did in a different path though
file "/Users/moritz/projects/icrc7_launchpad/.dfx/local/lsp/aaaaa-aa.did" does not existMotoko(M0009)
dfx 0.16.0
motoko extension v0.14.8
The text was updated successfully, but these errors were encountered: