I am working through Episode 5.2 and it was going well until I read the Monthly Developer email by @anthony. Up until that point I had been using Daml 1.13.1 with no SDK-related issues, just PEBKAC
I updated the system to the 1.14.xxxxx snapshot and resumed the tutorial. However now when I go to build the .dar from the existing private_nft/nft codebase I am getting a fatal build error. I thought that Iβd shortcut it all and revert back to Daml 1.13.1, using daml install 1.13.1 --activate
and daml uninstall 1.14.xxxxx
however this has not fixed the issue.
$ make build
cd nft && daml build
Compiling nft to a DAR.
Created .daml/dist/nft-0.0.1.dar
daml2js: ./daml/dist/*.dar: openBinaryFile: does not exist (No such file or directory)
daml-helper: Received ExitFailure 1 when running
Raw command: /home/quid/.daml/sdk/1.13.1/daml2js/daml2js -o daml.js ./daml/dist/*.dar
make: *** [Makefile:3: build] Error 1
All relevant system info below
$ daml version
SDK versions:
1.12.0
1.13.1 (default SDK version for new projects)
$ tree > daml_ep_5-2_errata.txt
.
βββ daml_ep_5-2_errata.txt
βββ Makefile
βββ nft
βββ daml
β βββ Main.daml
β βββ Payment.daml
β βββ Token.daml
β βββ UserAdmin.daml
βββ daml.yaml
βββ navigator.log
βββ sandbox.log
2 directories, 9 files
$ cat Makefile
build:
cd nft && daml build
cd nft && daml codegen js -o daml.js ./daml/dist/*.dar
deploy: build
mkdir -p deploy
cp nft/.daml/dist/*.dar deploy
clean:
cd nft && rm -rf .daml
cd nft && rm -rf daml.js
rm -rf deploy
$ ls -al nft/.daml/dist
total 348
drwxrwxr-x 2 quid quid 4096 Jun 14 13:34 .
drwxrwxr-x 6 quid quid 4096 Jun 14 13:34 ..
-rw-rw-r-- 1 quid quid 344542 Jun 14 13:34 nft-0.0.1.dar
$ pwd
/home/quid/.daml/sdk/1.13.1/daml2js
$ ls ~/.daml/sdk/1.13.1/daml2js
daml2js lib
$ make build
cd nft && daml build
Compiling nft to a DAR.
Created .daml/dist/nft-0.0.1.dar
cd nft && daml codegen js -o daml.js ./daml/dist/*.dar
daml2js: ./daml/dist/*.dar: openBinaryFile: does not exist (No such file or directory)
daml-helper: Received ExitFailure 1 when running
Raw command: /home/quid/.daml/sdk/1.13.1/daml2js/daml2js -o daml.js ./daml/dist/*.dar
make: *** [Makefile:3: build] Error 1
I have now done this three times completely using the make clean
& make build
commands to ensure that it is being done the same, everytime.