Closed top-shaman closed 3 years ago
Ok-- so I did a few things to make this work. To clarify I'm on MacOS 10.14.6
nix-collect-garbage
to clear my nix profilessudo rm -rf /nix
ghcup list
, remove specific versions with ghcup rm ghc <version #>
, and install with ghcup install ghc <version #>
git branch my-branch 3746610
sh <(curl -L https://nixos.org/nix/install) --daemon
and followed all the steps, deleting/removing any file that the daemon prompted, and reran the installersubstituters = https://hydra.iohk.io https://iohk.cachix.org https://cache.nixos.org/ trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
cabal build
nix-shell
in the /plutus folder and followed steps 4-9 on the Week #1 /plutus-pioneer-program README.md file. Running nix-shell, with the IOHK binary cache correctly written into the /etc/nix/nix.conf file, builds the plutus library in the shell, and before when I was doing cabal build on the plutus folder to build the plutus libraries, I was building a different version of the plutus-core with cabal, even though I was at the correct commit SHA.If anyone else runs into the same issue I had, I hope this helps!
Hi,
I've gotten my Plutus Playground set up in the browser-- i.e. the nix-shell's seem to be working properly. The Plutus Playground itself compiles the sample code ("Hello, world", "Starter", "Game", etc.) without any problems, so I don't think it's an issue with the playground itself. I've linked a GitHub repository with my 'plutus' folder-- it should be exactly the same as the IOHK plutus repository.
Anyway, when I copy the EnglishAuction.hs code I receive 5 compilation errors:
I'm wondering if I cloned the repository wrong, or if I installed ghcup/ghci/stack/cabal wrong, or if I built old/redundant repositories. Obviously I'm a noob, and I'm hoping this is the type of thing that someone can spot super easily, because I'm not too familiar with Nix or Cabal. Like I said, I was able to get the playground working, and it compiles/simulates the built-in demos. I'm just having issues with EnglishAuction.hs. I don't want to waste anybody else's time on this, but I really want to get started on the program because I've delved a LOT of hours into learning Haskell and I love the ethos/ecosystem Cardano/Plutus has to offer. Any help or pointers are welcome!
thanks, top-shaman