Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scarb: cairo run #171

Merged
merged 1 commit into from
Nov 29, 2023
Merged

scarb: cairo run #171

merged 1 commit into from
Nov 29, 2023

Conversation

shramee
Copy link
Owner

@shramee shramee commented Nov 20, 2023

No description provided.

@enitrat enitrat mentioned this pull request Nov 20, 2023
@beeinger
Copy link

Not in the perfect place haha

Progress: [###>--------------------------------------------------------] 3/54 
Running exercises/variables/variables2.cairo exercise...
   Compiling exercise_crate v0.1.0 (/Users/beeinger/Work/Personal/starklings-cairo1/runner-crate/Scarb.toml)
    Finished release target(s) in 1 second
[DEBUG]	x is ten!                      	(raw: 0x782069732074656e21

✅ Successfully ran exercises/variables/variables2.cairo!

🎉 🎉  The code is compiling! 🎉 🎉

Output:
====================

====================

You can keep working on this exercise,
or jump into the next one by removing the `I AM NOT DONE` comment:

 2 |  // Execute `starklings hint variables2` or use the `hint` watch subcommand for a hint.
 3 |  
 4 |  // I AM NOT DONE
 5 |  use debug::PrintTrait;

but the output is there 🚀

@beeinger
Copy link

I'm also getting suspiciously looking stuff sometimes:

Progress: [##########################################>-----------------] 38/54 
Running exercises/move_semantics/move_semantics3.cairo exercise...
   Compiling exercise_crate v0.1.0 (/Users/beeinger/Work/Personal/starklings-cairo1/runner-crate/Scarb.toml)
    Finished release target(s) in 1 second
#96: Expected variable data for statement not found.

I've seen it in a few exercises, when I make them compile, they return this strange output.

@shramee
Copy link
Owner Author

shramee commented Nov 21, 2023

Yep, I have replied on the old ticket. Output is return value(s) for your function.

@shramee
Copy link
Owner Author

shramee commented Nov 21, 2023

That message is from the compiler it seems.

https://github.com/starkware-libs/cairo/blob/13f4c6aa249143e5cca51450b0744f2a646a5bf0/crates/cairo-lang-sierra-to-casm/src/invocations/mod.rs#L74

@shramee shramee merged commit 16b4790 into main Nov 29, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants