Thanks a lot @sam , very helpful!
Your answer made me realize that those errors are actually from
Generating script ABIs step. What I need “compiling the modules” step was already done. In short, the prints are actually working even with this error.
cargo r --release -p diem-framework -- --no-doc
Finished release [optimized] target(s) in 2.27s
Running `target/release/diem-framework --no-doc`
Extracting linking/layout APIs from old module bytecodes ... (took 0.050s)
Compiling modules ... (took 1.347s)
Checking linking/layout compatibility ... (took 0.001s)
Generating script ABIs ... error: calling impure function `DiemAccount::balance` is not allowed
┌── /home/gsimsek/libra-fork/language/diem-framework/modules/DiemAccount.move:670:19 ───
670 │ aborts_if balance<Token>(payee) + amount > max_u64() with Errors::LIMIT_EXCEEDED;
= impure function `DiemAccount::balance(address): u64`
Btw, the command you suggested gives error. But, it is not needed anymore. Problem already fixed.
cargo r --release -p diem-framework -- --no-doc --no-script-abi --no-script-builder
Finished release [optimized] target(s) in 0.84s
Running `target/release/diem-framework --no-doc --no-script-abi --no-script-builder`
error: The following required arguments were not provided:
diem-framework --no-compiler --no-doc --no-script-abi --no-script-builder
For more information try --help