Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Build error of version 3.4.1 using blueprint-compiler 0.8.1 #130

Closed
BenediktBroich opened this issue Jun 19, 2023 · 2 comments · May be fixed by #138
Closed

Build error of version 3.4.1 using blueprint-compiler 0.8.1 #130

BenediktBroich opened this issue Jun 19, 2023 · 2 comments · May be fixed by #138

Comments

@BenediktBroich
Copy link

Building textpieces v3.4.1 with blueprint-compiler v0.8.1 results in the following Error:
(I am updating blueprint-compiler for nixos. Arch linux seams to have the same issue.

upgrade: Use type syntax here (introduced in blueprint 0.8.0)
at ../resources/ui/CustomToolPage.blp line 8 column 10:
   8 |template TextPiecesCustomToolPage : Box {
     |         ^

upgrade: Use the '$' extern syntax introduced in blueprint 0.8.0
at ../resources/ui/CustomToolPage.blp line 17 column 18:
  17 |      clicked => go_back();
     |                 ^

upgrade: Use the '$' extern syntax introduced in blueprint 0.8.0
at ../resources/ui/CustomToolPage.blp line 36 column 18:
  36 |      clicked => delete_tool();
     |                 ^

upgrade: Use the '$' extern syntax introduced in blueprint 0.8.0
at ../resources/ui/CustomToolPage.blp line 37 column 18:
  37 |      clicked => go_back();
     |                 ^

upgrade: Use the '$' extern syntax introduced in blueprint 0.8.0
at ../resources/ui/CustomToolPage.blp line 43 column 3:
  43 |  .TextPiecesToolSettings tool_settings {
     |  ^

error: Cannot convert 2.5 to integer
at ../resources/ui/Editor.blp line 45 column 26:
  45 |          margin-bottom: 2.5;
     |                         ^

ninja: build stopped: subcommand failed.
@akhial
Copy link

akhial commented Sep 13, 2023

Fixed this locally by changing margin from 2.5 to 3.
I think the new version changed margins to only allow integers?

Two files are affected Editor.blp and SearchBar.blp.

@liferooter
Copy link
Owner

Fixed in Text Pieces 4.0, which will be released soon

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants