Skip to content

dfx fails to deploy .did files for custom canisters #4253

@vporton

Description

@vporton

I tried the following:

  1. Create a dfx.json file with
    "nns-ledger": {
      "build": "",
      "candid": "candid/nns-ledger.did",
      "remote": {
        "id": {
          "ic": "ryjl3-tyaaa-aaaaa-aaaba-cai",
          "local": "ryjl3-tyaaa-aaaaa-aaaba-cai"
        }
      },
      "type": "custom",
      "wasm": ""
    },
  1. Deploy it with dfx deploy nns-ledger.

I expected to see this happen: ls .dfx/local/lsp/ryjl3-tyaaa-aaaaa-aaaba-cai.did to show the file that MS Code should pass syntax check of import ICPLedger "canister:nns-ledger";.

Instead, this happened: The file is missing and MS Code complaints.

Meta

dfx --version:

dfx 0.24.3+rev701.cc3c1c92
Further log output

Found keyring identity suffix - PEM file is stored in keyring.
Deploying: 
All canisters have already been created.
Deployed canisters.
URLs:
  Frontend canister via browser:
    bootstrapper_frontend:
      - http://ufxgi-4p777-77774-qaadq-cai.localhost:8080/ (Recommended)
      - http://127.0.0.1:8080/?canisterId=ufxgi-4p777-77774-qaadq-cai (Legacy)
    example_frontend:
      - http://vu5yx-eh777-77774-qaaga-cai.localhost:8080/ (Recommended)
      - http://127.0.0.1:8080/?canisterId=vu5yx-eh777-77774-qaaga-cai (Legacy)
    internet_identity:
      - http://ucwa4-rx777-77774-qaada-cai.localhost:8080/ (Recommended)
      - http://127.0.0.1:8080/?canisterId=ucwa4-rx777-77774-qaada-cai (Legacy)
    package_manager_frontend:
      - http://vg3po-ix777-77774-qaafa-cai.localhost:8080/ (Recommended)
      - http://127.0.0.1:8080/?canisterId=vg3po-ix777-77774-qaafa-cai (Legacy)
  Backend canister via Candid interface:
    battery: http://127.0.0.1:8080/?canisterId=uqqxf-5h777-77774-qaaaa-cai&id=vpyes-67777-77774-qaaeq-cai
    bookmark: http://127.0.0.1:8080/?canisterId=uqqxf-5h777-77774-qaaaa-cai&id=umunu-kh777-77774-qaaca-cai
    bootstrapper: http://127.0.0.1:8080/?canisterId=uqqxf-5h777-77774-qaaaa-cai&id=ulvla-h7777-77774-qaacq-cai
    bootstrapper_data: http://127.0.0.1:8080/?canisterId=uqqxf-5h777-77774-qaaaa-cai&id=u6s2n-gx777-77774-qaaba-cai
    cycles_ledger: http://127.0.0.1:8080/?canisterId=uqqxf-5h777-77774-qaaaa-cai&id=um5iw-rqaaa-aaaaq-qaaba-cai
    example_backend: http://127.0.0.1:8080/?canisterId=uqqxf-5h777-77774-qaaaa-cai&id=vb2j2-fp777-77774-qaafq-cai
    internet_identity: http://127.0.0.1:8080/?canisterId=uqqxf-5h777-77774-qaaaa-cai&id=ucwa4-rx777-77774-qaada-cai
    main_indirect: http://127.0.0.1:8080/?canisterId=uqqxf-5h777-77774-qaaaa-cai&id=vt46d-j7777-77774-qaagq-cai
    package_manager: http://127.0.0.1:8080/?canisterId=uqqxf-5h777-77774-qaaaa-cai&id=vizcg-th777-77774-qaaea-cai
    repository: http://127.0.0.1:8080/?canisterId=uqqxf-5h777-77774-qaaaa-cai&id=uzt4z-lp777-77774-qaabq-cai
    simple_indirect: http://127.0.0.1:8080/?canisterId=uqqxf-5h777-77774-qaaaa-cai&id=v27v7-7x777-77774-qaaha-cai

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageThis ticket needs investigation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions