Giter Club home page Giter Club logo

Comments (5)

ZenVoich avatar ZenVoich commented on June 4, 2024 1

Probably same issue, but I get different error:
image

dfx.json:

{
  "version": 1,
  "canisters": {
    "staging": {
      "type": "motoko",
      "main": "src/main.mo",
      "declarations": {
        "output": "declarations/main"
      },
      "dependencies": [
        "ledger"
      ]
    },
    "ledger": {
      "type": "custom",
      "wasm": "./declarations/ledger/ledger.wasm",
      "candid": "./declarations/ledger/ledger.private.did",
      "remote": {
        "candid": "./declarations/ledger/ledger.public.did",
        "id": {
          "ic": "ryjl3-tyaaa-aaaaa-aaaba-cai"
        }
      }
    },
    "production": {
      "type": "motoko",
      "main": "src/main.mo",
      "dependencies": [
        "ledger"
      ]
    }
  },
  "defaults": {
    "build": {
      "packtool": "vessel sources",
      "args": "--trap-on-call-error"
    }
  }
}

dfx deploy works well

from vscode-motoko.

letmejustputthishere avatar letmejustputthishere commented on June 4, 2024 1

@rvanasa seems like the .dfx/local/lsp files don't get updated when you deploy a canister using --mode reinstall.
steps to reproduce:

  1. deploy ledger with private did
  2. update dfx.json to public did
  3. deploy ledger dependent canister with --mode reinstall
  4. above error message is shown

from vscode-motoko.

letmejustputthishere avatar letmejustputthishere commented on June 4, 2024 1

sure :)

from vscode-motoko.

rvanasa avatar rvanasa commented on June 4, 2024

Thank you for all these bug reports! I will include this in the backlog for the next time I get a chance to improve the extension (currently juggling a lot of projects).

If anyone else encounters this issue, please feel free to +1 this issue so I can get a sense for how this should be prioritized. Thanks!

from vscode-motoko.

rvanasa avatar rvanasa commented on June 4, 2024

Thanks for the repro; this appears to be directly caused by the issue tracked in dfinity/sdk#2996, dfinity/sdk#2969, and SDK-1019. Would it be okay if I closed this to help consolidate the conversation?

from vscode-motoko.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.