Commit graph

16 commits

Author SHA1 Message Date
gregorni
3730e2e726 Add isort to CI and run on files 2023-07-09 14:26:37 +00:00
James Westman
d6bd282e58 errors: Report version in compiler bug message 2023-04-09 16:51:14 -05:00
James Westman
0b7dbaf90d
Add some type hints 2023-01-12 15:49:19 -06:00
James Westman
0b402db4d5
language: Change extern type syntax
Use a '$' instead of a '.' to indicate a type provided in application
code.

The reason for the change is to have a consistent "extern" symbol that
isn't widely used elsewhere and isn't ambiguous in expressions.
2023-01-12 15:49:19 -06:00
Sonny Piers
40f493b378 cli: Print compile errors to stderr 2023-01-05 12:30:26 +01:00
James Westman
8fee46ec68
Format using black 2022-12-19 11:52:59 -06:00
James Westman
86b07ef0ae
Fix new mypy errors 2022-11-26 16:22:34 -06:00
James Westman
30f0deea34
Exit with error code when a bug is reported 2022-07-23 15:06:38 -05:00
James Westman
d987b15374
Add references to error messages
That way, errors can reference other parts of the code, like duplicate
properties.
2022-06-08 23:08:15 -05:00
James Westman
42aa91d4d9 Detect when gobject-introspection is missing
Instead of a compiler bug error, show a proper error message that asks
whether gobject-introspection is installed.

Fixes #58.
2022-05-27 16:21:18 +00:00
James Westman
9873a2072b Add warning for sync-create 2022-02-09 15:39:02 -06:00
James Westman
1897478480
tests: Exclude lines from coverage
Exclude things like "raise NotImplementedError" and compiler bug
handlers.
2022-01-16 20:59:11 -06:00
James Westman
8e1a9f72dd
parser: Merge consecutive "Unexpected tokens" errors
Fixes #24
2021-12-16 23:18:31 -06:00
James Westman
5b76a3b8dd
Clean up some unused code 2021-12-16 22:08:04 -06:00
James Westman
8e4433a487
Create an interactive porting tool
`blueprint-compiler port` interactively ports a project to blueprint.
It will create the subproject wrap file, add it to .gitignore, decompile
your GtkBuilder XML files, emit code to copy and paste into your
meson.build file, and update POTFILES.in.

It can't quite handle all of the features the forward compiler can, so
it will skip those files.
2021-12-01 23:38:28 -06:00
James Westman
544d152fb6
Rename to blueprint-compiler
This isn't an official GTK project so better to avoid using "GTK" in the
name.
2021-12-01 15:35:58 -06:00
Renamed from gtkblueprinttool/errors.py (Browse further)