Red Squiggles under imported modules for separated trigger
- MaxOP
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
Resolved, I think. Red lines are still there, but I can run the trigger locally now.
github.com/digital-asset/daml
Not entirely sure what fixed it, but following steps inPackage database is not initialized if IDE is started in a parent directory
opened 06:07PM - 06 Apr 20 UTClanguage/now languageTo reproduce: ``` mkdir /tmp/foo && cd /tmp/foo daml new bar code . ``` …
I didn’t have a daml.yaml file in my root. Added that.
daml buildfor each daml project, thendaml studio - cocreature 1
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 triggerfrom the root directory rather than thetriggersdirectory.