Prefab section in chapter 34 gets rstripped causing an out of bounds error
还没有人认领这个 Issue。
评估
调研方向
复现第 34 章,并检查 prefab_builder/mod.rs 第 229 行的 panic,然后将 prefab_sections.rs 中的 RIGHT_FORT 部分与 char_to_map 的处理进行比较。检查在报告的设置中是否会移除尾随空格。完成的标准是 prefab 部分保留所需的空白,并且第 34 章不再因 out-of-bounds 错误而 panic。
由索引模型根据 Issue 内容生成。
描述
Really enjoying the tutorial so far. I landed on chapter 34 and got stuck on the prefab sections.
My code would panic on L229 i prefab_builder/mod.rs due to an out of bounds error. After some digging around, I noticed that something was rstripping my white spaces at the ends of the RIGHT_FORT prefab in prefab_sections.rs. I don't know if this is my IDE or something else that's causing this. For reference, I'm using RustRover Build #RR-241.15989.180.
After replacing the spaces in RIGHT_FORT with zeroes and updating char_to_map, everything ran just fine and I managed to play the game as expected. I wonder if anyone else has run into this issue?
- 主要语言
- Rust
- 星标
- 968
- 派生
- 166
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
amethyst/rustrogueliketutorial 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 68/100
-
难度 1/5 1 小时以内 新手友好度 68/100
-
难度 1/5 1 小时以内 新手友好度 68/100
-
难度 1/5 1 小时以内 新手友好度 68/100
-
难度 1/5 1-3 小时 新手友好度 45/100
查看 amethyst/rustrogueliketutorial 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
linebender/parley#849 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 86/100
boxlite-ai/boxlite#1729 ·
维护者通常 1 天内回复
-
external
难度 2/5 1-3 小时 新手友好度 68/100
langchain-ai/docs#6255 ·
维护者通常 1 天内回复
-
P2 testing
难度 1/5 1 小时以内 新手友好度 90/100
维护者通常 1 天内回复