aiken-lang / aiken

A modern smart contract platform for Cardano
https://aiken-lang.org
Apache License 2.0
486 stars 98 forks source link

no traces #838

Closed waalge closed 8 months ago

waalge commented 9 months ago

What Git revision are you using?

aiken v1.0.24-alpha+b6b57c7

What operating system are you using, and which version?

nixos

Describe what the problem is?

[2 || jes] [aik] (main**) [impure]
$aiken build && wc plutus.json
    Compiling aiken-lang/stdlib ...
  1515   3379 101620 plutus.json
[2 || jes] [aik] (main**) [impure]
$aiken build --filter-traces all && wc plutus.json
    Compiling aiken-lang/stdlib ...
  1515   3379 101620 plutus.json

What should be the expected behavior?

I've lots of traces, this should be much bigger.

waalge commented 9 months ago

Previously on 49bd4ba33d9fd99180cd77321ad799e19f23c6ba.

Running here:

$aiken build && wc plutus.json
 1515  3379 87116 plutus.json
[2 || jes] [aik] (main**) [impure]
$aiken build -k  && wc plutus.json
  1515   3379 127918 plutus.json
MicroProofs commented 9 months ago

Make sure to set both trace level and filter traces

-f, --filter-traces Filter traces to be included in the generated program(s).

MicroProofs commented 9 months ago

trace-level is silent by default.

waalge commented 9 months ago

yeah - that works. Any point in being able to use filter-traces when on trace-level is silent?

KtorZ commented 9 months ago

Reopening to make sure we address that last point. We should raise a warning / meaningful error when this occurs.

waalge commented 9 months ago

edit : moved comment to https://github.com/aiken-lang/aiken/discussions/868