Skip to content
Discussions/App Development/No script result gets printed in Daml Studio when my script doesn't create any contractsForum ↗

No script result gets printed in Daml Studio when my script doesn't create any contracts

App Development6 posts244 views4 likesLast activity Mar 2022
GY
gyorgybalazsiOP
Mar 2022

I’m trying to find the best way to write out function return values for debugging.

Creating a script which returns the value I need seems to be a good idea. But when the script doesn’t create any contracts, I cannot see the return value on the tab which opens when I click to Script results, because the tab is totally empty. Is that intentional?

When I put any contract creation into the script, the script result gets printed under the transaction view, so I use this workaround. But this is awkward.

CO
cocreature
Mar 2022

That’s a bug. I fixed that last week in Handle absence of table view in Daml Studio (#13245) · digital-asset/daml@a8057a5 · GitHub which will be part of the next snapshot. Note that the fix is in the vscode extension so you need to run daml studio --replace=always for it to work.

GY
gyorgybalazsi
Mar 2022

Thanks!

GY
gyorgybalazsi
Mar 2022

I have to start Daml Studio every time like this?

CO
cocreature
Mar 2022

Just once to install the vscode extension. After that you can just invoke vscode directly and it will have the right extension.

GY
gyorgybalazsi
Mar 2022

Thanks!

← Back to Discussions