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

belgoros
Following the steps described in Chapter 6 of the book, I’m stuck with running the migration as described on page 84: bundle exec sequel...
New
mikecargal
Title: Hands-on Rust: question about get_component (page 295) (feel free to respond. “You dug you’re own hole… good luck”) I have somet...
New
Mmm
Hi, build fails on: bracket-lib = “~0.8.1” when running on Mac Mini M1 Rust version 1.5.0: Compiling winit v0.22.2 error[E0308]: mi...
New
raul
Page 28: It implements io.ReaderAt on the store type. Sorry if it’s a dumb question but was the io.ReaderAt supposed to be io.ReadAt? ...
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
jonmac
The allprojects block listed on page 245 produces the following error when syncing gradle: “org.gradle.api.GradleScriptException: A prob...
New
s2k
Hi all, currently I wonder how the Tailwind colours work (or don’t work). For example, in app/views/layouts/application.html.erb I have...
New
a.zampa
@mfazio23 I’m following the indications of the book and arriver ad chapter 10, but the app cannot be compiled due to an error in the Bas...
New
New
dachristenson
I just bought this book to learn about Android development, and I’m already running into a major issue in Ch. 1, p. 20: “Update activity...
New

Other popular topics Top

PragmaticBookshelf
Ruby, Io, Prolog, Scala, Erlang, Clojure, Haskell. With Seven Languages in Seven Weeks, by Bruce A. Tate, you’ll go beyond the syntax—and...
New
PragmaticBookshelf
Write Elixir tests that you can be proud of. Dive into Elixir’s test philosophy and gain mastery over the terminology and concepts that u...
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
AstonJ
Or looking forward to? :nerd_face:
503 14512 277
New
New
PragmaticBookshelf
Build efficient applications that exploit the unique benefits of a pure functional language, learning from an engineer who uses Haskell t...
New
hilfordjames
There appears to have been an update that has changed the terminology for what has previously been known as the Taskbar Overflow - this h...
New
New
Fl4m3Ph03n1x
Background Lately I am in a quest to find a good quality TTS ai generation tool to run locally in order to create audio for some videos I...
New
PragmaticBookshelf
Use advanced functional programming principles, practical Domain-Driven Design techniques, and production-ready Elixir code to build scal...
New

Sub Categories: