Skip to content
Discussions/App Development/Expected content of sample foldersForum ↗

Expected content of sample folders

App Development4 posts398 views7 likesLast activity Feb 2021
JO
JoelOP
Feb 2021

Hi,

I am working through the examples in docs.daml.

When I run the daml new daml-intro-2 --template daml-intro-2 command (here 2 Testing templates using Daml Script — Daml SDK 1.12.0 documentation) what files should I expect within the new folder?

I hit a “Could not find module ‘Daml.Script’” issue and other question threads here point to an issue with the daml.yaml file but that file was not created in the daml-intro-2 folder?

Thanks
Joel

BE
bernhard
Feb 2021

Thanks for flagging this up @Joel. It’s expected that you only get a single .daml file. You can see the sources for the examples here.

But I’d consider it a bug that the sample project doesn’t work as is. I’ve opened #8813 to discuss how we fix this.

GA
Gary_Verhaegen
Feb 2021

Hi @Joel, and welcome to our community.

As Bernhard said, this is essentially a bug and we’ll be working on fixing it. In the meantime, the easiest way for you to make progress is to create a new “blank” Daml project and move the example file in there:

daml new daml-intro-2 --template daml-intro-2
daml new t
mv daml-intro-2/Token_Test.daml t/daml/
cd t
daml studio
JO
Joel
Feb 2021

Thanks @Gary_Verhaegen, that has kept me moving :+1:

← Back to Discussions