microsoft / microsoft/TextWorld
Steps with multiple commands in them will crash the gym
Open
Nobody has claimed this yet.
- Dominant language
- Jupyter Notebook
- Stars
- 1.4k
- Forks
- 207
- Avg merge
- 8d 22h
- Merged PRs (30d)
- 1
Description
Inform's parser allows multiple commands to be expressed on a single line, e.g. "GO NORTH. GO EAST." or "DROP PEPPER THEN GET KNIFE". Calling env.step with such an argument will cause an exception in Inform7Data._gather_infos.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure by calling env.step with a single argument containing multiple Inform commands, then trace the exception in Inform7Data._gather_infos. The issue is done when both dotted and THEN-separated command sequences no longer crash the gym and are handled correctly.
Written by the indexing model from the issue text.
Assessment
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100