Hot answers tagged

14 votes
Accepted

Plutus Pioneer Program - Lecture #1 Problem with cabal build

It looks like your cabal version is too old. You can make sure you have the right one if you first start a nix-shell at the top-level directory of the plutus-repository, then cd to the code folder of ...
user avatar
6 votes
Accepted

Cardano DB Sync as Service (running on background) on Ubuntu

Why are you running cardano-db-sync with cabal? You should just run cardano-db-sync or cardano-db-sync-extended. And another question, more important: why are you running the service as root? This is ...
user avatar
5 votes

plutus starter course

I asked Lars the same question in the Q&A, his answer was that your best bet is to copy one of the Plutus Pioneer Program lectures (preferably the last one), remove the unnecessary modules and ...
user avatar
  • 773
5 votes

How to get intellisense/auto suggestion working for Plutus in VSCode?

Simply install the Haskell extension from inside Visual Studio Code. You'll get there by pressing Ctrl+Shift+X and searching for Haskell. Note that the extension requires a ghc installation (=<8.10....
user avatar
4 votes

Plutus Pioneer Program - Lecture #1- Cabal Build error

I had a similar issue and solved it by running nix-shell in the plutus library, then navigating to the plutus-pioneer/code/week01 and running cabal update. I hope this helps!
user avatar
4 votes

How can I set up my dev environment faster after pulling the pioneer code repos for each week

My weekly setup steps are similar to yours. But there's a few steps you do that I skip and, so far, haven't had any issues. I've never ran any of these: nix-build -A plutus-playground.client nix-build ...
user avatar
  • 500
4 votes
Accepted

Incorrect Pub Key from Wallet Emulator

mockWalletPaymentPubKey gives you the public key for a wallet. For Vesting.hs, you need to use the public key hash. Try mockWalletPaymentPubKeyHash $ knownWallet 1 instead.
user avatar
  • 500
3 votes
Accepted

What is the difference between "cabal build" and "cabal repl"?

In our context of smart contracts, cabal build builds the executables needed for doing cabal run, which we use to build the Plutus validator. cabal repl, in the other hand loads all the modules that ...
user avatar
  • 56
3 votes
Accepted

What is a library stanza?

I recommend you this article: https://vrom911.github.io/blog/common-stanzas Take into account that stanzas is a cabal thing (not Haskell, not Plutus). However Plutus projects can be created using ...
user avatar
  • 1,226
2 votes
Accepted

missing node.socket

At this stage, it is normal that your node.socket does not yet exist because your launch has not passed the step IPSubscriptionTarget {ispIps = [], ispValency = 0}. It usually happens because your ...
user avatar
2 votes

Parse error on input ']' when running cabal build in my Plutus code

{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DerivingStrategies #-} {-# LANGUAGE ...
user avatar
  • 186
2 votes

cabal build Out of Memory Mac VS Code Docker

You will not be able to build this in less than 8G of RAM. Adding swap to make the total memory at least 8G may help.
user avatar
2 votes

cabal: Could not resolve dependencies:plutus-core:happy:exe.happy

The line Falling back to older state () means you probably need to run cabal update first (which downloads a copy of the current hackage index state).
user avatar
2 votes

How can I set up my dev environment faster after pulling the pioneer code repos for each week

You can create command aliases or write bash scripts to automate certain commands. An example of aliases I've written for myself (in Linux): alias plutus-nix='cd /home/datapool/plutus-apps; GC_DONT_GC=...
user avatar
  • 188
2 votes
Accepted

Week 4 issue with Cabal build: Not in scope: type constructor or class 'JWT.EncodeSigner'

Be sure to do a git pull for both 'plutus-master' and 'plutus-pioneer-program'. Then set the right git-checkout tag (of the week's cabal project file) Restart nix-shell so it builds the 'plutus-master'...
user avatar
  • 36
2 votes
Accepted

Cardano DB Sync - RTS Options

RTS opts are disabled by default in the db-sync build. To enable it add -rtsopts after -with-rtsopts=-N3 for the cardano-db-sync executable in the file cardano-db-sync/cardano-db-sync.cabal.
user avatar
1 vote
Accepted

Running week01 expressions in repl

It was newbie mistake. There are these lines at the top {-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE ...
user avatar
  • 125
1 vote

Running week01 expressions in repl

Somewhere you have a typo. "ByString" should be "ByteString".
user avatar
1 vote

Error on cabal build - Encounterd missing dependesies

Check and make sure that your version of the repo has the correct commit-id.
user avatar
  • 120
1 vote

Error on cabal build - Encounterd missing dependesies

Why are you using sudo? Try without. And update of course.
user avatar
  • 188
1 vote

Error on cabal build - Encounterd missing dependesies

try "cabal update" before "cabal build".
user avatar
1 vote

Cannot build cardano-wallet-2021-12-15

Recommended way to build cardano-wallet is with stack. Check out this manual: https://developers.cardano.org/docs/get-started/installing-cardano-wallet I tried to build wallet recently and it was ...
user avatar
  • 321
1 vote

Plutus starter cabal build issue

I believe there are some compatibility problems with M1s and Docker. It might be worth trying to run Cabal through nix-shell instead.
user avatar
1 vote

Impossible to install ghc 8.10.4

Did you fix this " Warn: Possibly insufficient disk space on /tmp. At least 5000 MB are recommended, but only 698.57 are free. Consider freeing up disk space or setting TMPD> Warn: ...waiting ...
user avatar
1 vote

Cabal repl is very slow

That should happen only the first time, when you make the cabal repl because it's building all dependencies. After that, every cabal repl should look like Lars screen.
user avatar
  • 1,654
1 vote

How to solve "cabal: Could not resolve dependencies" when building cardano-cli cardano-node

Are you running the command in nix-shell? If not, I'd suggest you clone the Plutus project, run nix-shell from within the Plutus repository. Afterwards, try building the libs again
user avatar
  • 686
1 vote

Cabal build Caradano-cli Cardano-node error

You dont need to compile the code on raspberrypi. It takes 7+ hours. Use the prebuilt binaries from armada-alliance. https://github.com/armada-alliance/cardano-node-binaries/tree/main/static-binaries ...
user avatar
1 vote
Accepted

Failed to build eventful-sql-common-0.2.0

So I solved it. Recollect in lesson 3 where you have to update the plutus repo with the tag in cabal.project (from lesson 10). Then in the plutus repo, nix build -f default.nix plutus.haskell....
user avatar
  • 433
1 vote

Plutus Pioneer Program - Lecture #1- Cabal Build error

I am new to nix, but my understanding is as follows: Both the plutus and plutus-pioneer-program repos need to be extracted on disk. Check out the plutus commit of the coding week you want to work on (...
user avatar
  • 460
1 vote
Accepted

How to compile plutus source code locally?

You appear to be having issues resolving the dependencies for that particular build of Plutus. In fact, all Cardano builds depend on libsystemd (on Linux). If you have incompatible versions of ...
user avatar
  • 201

Only top scored, non community-wiki answers of a minimum length are eligible