digital-asset / ex-cbdc

Apache License 2.0
23 stars 13 forks source link

ui/daml.js - cannot find the file specified #55

Open mvresh opened 2 years ago

mvresh commented 2 years ago

Hi.

I'm trying to run the app using make build but instead I'm getting the following error.

daml codegen js -o ui/daml.js process_begin: CreateProcess(NULL, daml codegen js -o ui/daml.js, ...) failed. make (e=2): The system cannot find the file specified. make: *** [daml.mk:19: ui/daml.js] Error 2

I installed DAML SDK along with Eclipse Adoptium latest version, as mentioned in the README. Not sure where the problem is.

richardkapolnai-da commented 2 years ago

Hi, sounds like "daml" is not in your path when running it from Eclipse. Please try to setup PATH permanently: https://docs.daml.com/getting-started/path-variables.html

mvresh commented 2 years ago

I installed with windows installer. So the path should be automatically setup if I'm not wrong?

richardkapolnai-da commented 2 years ago

Sounds right about setting the path. I just realized that we may not have all dependencies listed on our https://github.com/digital-asset/ex-cbdc#prerequisites page on Windows. Can you please copy the output of these scripts individually? I suspect you need to install MinGW or Linux subsystem. So please run:

scripts/getDamlProjects.sh
scripts/getDamlDependencies.sh lib
mvresh commented 2 years ago

Hi Richard. Sorry I couldnt run it until today. here are the outputs:

For getDamlProjects.sh: banking/.daml/dist/banking-1.0.0.dar certificates/.daml/dist/certificates-1.0.0.dar demoadmin/.daml/dist/demoadmin-1.0.0.dar finance/.daml/dist/finance-1.0.0.dar landlord/.daml/dist/landlord-1.0.0.dar lib/.daml/dist/lib-1.0.0.dar reset/.daml/dist/reset-1.0.0.dar testing/.daml/dist/testing-1.0.0.dar triggers/.daml/dist/triggers-1.0.0.dar

For getDamlDependencies.sh lib: lib/daml.yaml lib/daml/DA/Lib/Types/Sector.daml