Not sure why the test script is including command with arguments?
The above echo command passed but random echo command fails?
I’ll take a look shortly.
Hi @R1zwan, I tried running your code against the previous stages, but it’s actually no longer passing the second stage #CZ2 (Handle invalid commands).
Suggestions:
- Use our CLI to test against previous stages by running:
codecrafters test --previous
- Focus on fixing the early stages first, as later stages depend on them.
Hi Andy,
Thanks for pointing out the issues in previous stages. I have fixed them. But the original issue remain as it is. the cli is printing the input command twice.
@R1zwan, this might be an issue on our own end. We’ll investigate it and keep you updated on any progress.
Thank you.
This bug is turning to be very interesting – the behavior is real, i.e. it isn’t a tester bug, the extra print is ACTUALLY happening. The bug only happens intermittently, and it is unique to C# programs. Other users are running into this too, but all of them are using C#.
We came up with a workaround that @ryan-gang will deploy shortly and test, and try to open a C# bug report once we’re able to work on reproducing this outside of our test framework. We’ll share the report here if we’re able to come up with a good minimal repo.
In the 3 years we’ve been running CodeCrafters, this seems like the one case where “It’s never a compiler bug” is not going to be true
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.