blueprint-compiler port crash
While attempting to port my Gtk4 project to use the Blueprint compiler, I got a crash in the interactive process. The project source is here, if you want to try to reproduce the problem: https://github.com/benpocalypse/Huely/tree/gtk4-port
The stack trace is here:
STEP 1: Create subprojects/blueprint-compiler.wrap
Create subprojects/blueprint-compiler.wrap? [y/n] y
STEP 2: Set up .gitignore
Add '/subprojects/blueprint-compiler' to .gitignore? [y/n] y
STEP 3: Convert UI files
Traceback (most recent call last):
File "/usr/local/share/blueprint-compiler/blueprintcompiler/main.py", line 58, in main
opts.func(opts)
File "/usr/local/share/blueprint-compiler/blueprintcompiler/main.py", line 132, in cmd_port
interactive_port.run(opts)
File "/usr/local/share/blueprint-compiler/blueprintcompiler/interactive_port.py", line 287, in run
in_files, out_files = step3()
File "/usr/local/share/blueprint-compiler/blueprintcompiler/interactive_port.py", line 159, in step3
files = [
File "/usr/local/share/blueprint-compiler/blueprintcompiler/interactive_port.py", line 160, in <listcomp>
(file, change_suffix(file), decompile_file(file, change_suffix(file)))
File "/usr/local/share/blueprint-compiler/blueprintcompiler/interactive_port.py", line 38, in change_suffix
return f.removesuffix(".ui") + ".blp"
AttributeError: 'str' object has no attribute 'removesuffix'
Arguments: ['/usr/local/bin/blueprint-compiler', 'port']