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.

Popular Pragmatic Bookshelf topics Top

New
Razor54672
The answer to 3rd Problem of Chapter 5 (Making Choices) of “Practical Programming, Third Edition” seems incorrect in the given answer ke...
New
jdufour
Hello! On page xix of the preface, it says there is a community forum "… for help if your’re stuck on one of the exercises in this book… ...
New
conradwt
First, the code resources: Page 237: rumbl_umbrella/apps/rumbl/mix.exs Note: That this file is missing. Page 238: rumbl_umbrella/app...
New
joepstender
The generated iex result below should list products instead of product for the metadata. (page 67) iex> product = %Product{} %Pento....
New
jskubick
I think I might have found a problem involving SwitchCompat, thumbTint, and trackTint. As entered, the SwitchCompat changes color to hol...
New
AufHe
I’m a newbie to Rails 7 and have hit an issue with the bin/Dev script mentioned on pages 112-113. Iteration A1 - Seeing the list of prod...
New
jwandekoken
Book: Programming Phoenix LiveView, page 142 (157/378), file lib/pento_web/live/product_live/form_component.ex, in the function below: d...
New
ggerico
I got this error when executing the plot files on macOS Ventura 13.0.1 with Python 3.10.8 and matplotlib 3.6.1: programming_ML/code/03_...
New
SlowburnAZ
Getting an error when installing the dependencies at the start of this chapter: could not compile dependency :exla, "mix compile" failed...
New

Other popular topics Top

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
Exadra37
I am thinking in building or buy a desktop computer for programing, both professionally and on my free time, and my choice of OS is Linux...
New
AstonJ
poll poll Be sure to check out @Dusty’s article posted here: An Introduction to Alternative Keyboard Layouts It’s one of the best write-...
New
AstonJ
Thanks to @foxtrottwist’s and @Tomas’s posts in this thread: Poll: Which code editor do you use? I bought Onivim! :nerd_face: https://on...
New
Margaret
Hello content creators! Happy new year. What tech topics do you think will be the focus of 2021? My vote for one topic is ethics in tech...
New
dimitarvp
Small essay with thoughts on macOS vs. Linux: I know @Exadra37 is just waiting around the corner to scream at me “I TOLD YOU SO!!!” but I...
New
foxtrottwist
A few weeks ago I started using Warp a terminal written in rust. Though in it’s current state of development there are a few caveats (tab...
New
PragmaticBookshelf
Author Spotlight: Karl Stolley @karlstolley Logic! Rhetoric! Prag! Wow, what a combination. In this spotlight, we sit down with Karl ...
New
PragmaticBookshelf
Author Spotlight: Bruce Tate @redrapids Programming languages always emerge out of need, and if that’s not always true, they’re defin...
New
AstonJ
This is a very quick guide, you just need to: Download LM Studio: https://lmstudio.ai/ Click on search Type DeepSeek, then select the o...
New