Max
April 8, 2022, 2:51am
1
My directory structure now looks like
- wallet-refapp (parent)
- triggers (daml project)
- daml
- Trigger.daml
- wallet (daml project)
- daml
- Asset.daml
to run the trigger locally, do I need to be in the trigger directory, and run
daml trigger --dar .daml/dist/triggers-0.0.1.dar \
--trigger-name Trigger:autoSendExampleAssetAccountProposal \
--ledger-host localhost \
--ledger-port 6865 \
--ledger-party "a"
I get the error message
Exception in thread "main" com.daml.lf.archive.Error$IO: IO error: java.io.FileNotFoundException: .daml/dist/triggers-0.0.1.dar (No such file or directory)
However, I do have the file, I’m able to build everything, and upload everything onto Daml hub though.
Max
April 8, 2022, 6:05am
2
Resolved, I think. Red lines are still there, but I can run the trigger locally now.
Not entirely sure what fixed it, but following steps in
opened 06:07PM - 06 Apr 20 UTC
language/now
language
To reproduce:
```
mkdir /tmp/foo && cd /tmp/foo
daml new bar
code .
```
…
Then open either of the `.daml` files inside `bar`. The whole file is underlined red, and the error shown is
```
<command line>: cannot satisfy --package daml-script-0.0.1
(use -v for more information)
```
<!--
This issue tracker is only for technical issues related to the DAML SDK.
If you suspect that your issue has a security impact, do not use this issue tracker. In that case, please contact security@digitalasset.com and follow our responsible disclosure policy: https://digitalasset.com/security/ .
For general questions about DAML and/or support request you should use Stack Overflow: https://stackoverflow.com/questions/tagged/daml .
-->
I didn’t have a daml.yaml file in my root. Added that.
daml build
for each daml project, then daml studio
For the red lines, that’s the right fix but it should be completely unrelated to the trigger issue. My only guess there is that maybe you started daml trigger
from the root directory rather than the triggers
directory.
1 Like