JeroenRombouts

JeroenRombouts

Hands-on rust: warning when running with brackets_lib (chapter 3)

Hi,

First of all, sorry for not providing a pagenumber, but I don’t know it, since I’m reading the book on Medium.

To my problem: I have been mainly using the debian dev environment on my Chrombook for the rust code in the book, And everything worked up till now, However, when I tried running this code: http://media.pragprog.com/titles/hwrust/code/FirstGameFlappyAscii/hello_bterm/src/main.rs I ran into a problem.

First I get this error: xkbcommon: ERROR: Key “” added to modifier map for multiple modifiers; Using Mod3, ignoring Lock
After that, the terminal window does open with the correct text rendered, but the title is not visible.

I cloned the exact same code in Windows 10 and there it works perfectly. It didn’t work in WSL2 at all, but I think that’s because I don’t have a X1 server installed.

Had anyone here made bracket_lib work on a Chromebook Crostini, and if so, how?

TIA

Most Liked

herbert

herbert

Author of Hands-on Rust

That sounds a lot like a Linux update is disagreeing with the winit crate (Bracket-lib uses it to handle windowing). I typically test on a mint, Windows and Mac setup - so that sounds like a pretty recent breakage. There was a very similar issue when the last OS X came out.

One thing to try:
Run cargo clean ; cargo update ; cargo build - that will force everything to the latest library versions. It’s possible there’s a winit point release upstream.

I’m on a short vacation right now; when I return, I’ll see what I can do. In the meantime, would you mind filing an issue over at GitHub - amethyst/bracket-lib: The Roguelike Toolkit (RLTK), implemented for Rust. please? That’s the Bracket-lib Github. With any luck, we can get this fixed and roll that into the next release.

Where Next?

Popular Pragmatic Bookshelf topics Top

herminiotorres
Hi @Margaret , On page VII the book tells us the example and snippets will be all using Elixir version 1.11 But on page 3 almost the en...
New
patoncrispy
I’m new to Rust and am using this book to learn more as well as to feed my interest in game dev. I’ve just finished the flappy dragon exa...
New
fynn
This is as much a suggestion as a question, as a note for others. Locally the SGP30 wasn’t available, so I ordered a SGP40. On page 53, ...
New
dsmith42
Hey there, I’m enjoying this book and have learned a few things alredayd. However, in Chapter 4 I believe we are meant to see the “>...
New
kolossal
Hi, I need some help, I’m new to rust and was learning through your book. but I got stuck at the last stage of distribution. Whenever I t...
New
mert
AWDWR 7, page 152, page 153: Hello everyone, I’m a little bit lost on the hotwire part. I didn’t fully understand it. On page 152 @rub...
New
dtonhofer
@parrt In the context of Chapter 4.3, the grammar Java.g4, meant to parse Java 6 compilation units, no longer passes ANTLR (currently 4....
New
New
SlowburnAZ
Getting an error when installing the dependencies at the start of this chapter: could not compile dependency :exla, "mix compile" failed...
New
roadbike
From page 13: On Python 3.7, you can install the libraries with pip by running these commands inside a Python venv using Visual Studio ...
New

Other popular topics Top

AstonJ
If it’s a mechanical keyboard, which switches do you have? Would you recommend it? Why? What will your next keyboard be? Pics always w...
New
ohm
Which, if any, games do you play? On what platform? I just bought (and completed) Minecraft Dungeons for my Nintendo Switch. Other than ...
New
DevotionGeo
I know that these benchmarks might not be the exact picture of real-world scenario, but still I expect a Rust web framework performing a ...
New
axelson
I’ve been really enjoying obsidian.md: It is very snappy (even though it is based on Electron). I love that it is all local by defaul...
New
AstonJ
Curious to know which languages and frameworks you’re all thinking about learning next :upside_down_face: Perhaps if there’s enough peop...
New
AstonJ
You might be thinking we should just ask who’s not using VSCode :joy: however there are some new additions in the space that might give V...
New
New
AstonJ
Continuing the discussion from Thinking about learning Crystal, let’s discuss - I was wondering which languages don’t GC - maybe we can c...
New
PragmaticBookshelf
Build efficient applications that exploit the unique benefits of a pure functional language, learning from an engineer who uses Haskell t...
New
PragmaticBookshelf
Author Spotlight Jamis Buck @jamis This month, we have the pleasure of spotlighting author Jamis Buck, who has written Mazes for Prog...
New

Sub Categories: