-
Notifications
You must be signed in to change notification settings - Fork 53
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
Inner build does not correctly require Drill #394
Comments
Oh, I like your use of |
Btw. it is the same with
|
Surprisingly this program in Classic mode does not run into a Fatal error:
These are all the robots logs:
EDIT: But to be clear it is still wrong, the drill should have been installed. |
Once #400 is merged, you can test this with an included scenario: $ cabal run test:swarm-integration -- -p '/build with drill (#394)/'
Up to date
Tests
Test scenario solutions
Regression tests
build with drill (#394): FAIL (expected: Awaiting fix (#394)) (0.04s)
test/integration/Main.hs:155:
Fatal error: Drill is required but not installed?!
Please report this as a bug at
<https://github.com/swarm-game/swarm/issues/new>.
(expected failure)
All 1 tests passed (0.04s) |
No, it's not #540. That one happens when you have a |
OK, so the issue seems to be that newly built robots were not inheriting the EDIT: Ah, I understand why now:
Should have a fix soon. |
Hmm, this actually gives me an idea how to fix #540... |
From #373 by @byorgey:
The problem was present before, but not visible until the robots stopped without a drill.
In this new iron age, it is immediately a fatal bug once the robot attempts to drill.
Screenshots
A bronze age screenshot from the main branch:
It's almost the same now too, so I won't include another screenshot here.
Log of the robot missing a drill:
Additional context
I traced the issue to the
requiredCaps
function which did not requireCDrill
.The text was updated successfully, but these errors were encountered: