James Westman
e9d61cb6f9
Update URLs after move to GNOME namespace on GitLab
2025-04-25 18:29:55 -05:00
James Westman
ea4c7245be
errors: Show error length with carets
...
Use multiple carets to show the span of the error (up to the end of the
first line), rather than just a caret on the first character.
2024-07-27 03:38:43 +00:00
James Westman
2dcf0c154b
errors: Fix caret when tabs are present
...
Replace all tabs with two spaces and account for that when positioning
the caret under the error location.
2024-07-27 03:38:43 +00:00
James Westman
9570dceaa8
errors: In suggestions, use "insert" or "remove"
...
Previously it always said "replace", leading to incorrect wording.
2024-07-27 03:38:43 +00:00
James Westman
6a078ee075
Add warning for unused imports
2024-04-06 14:33:20 -05:00
James Westman
a689150a8b
errors: Print code actions in error message
...
Previously they were only exposed by the language server, but now the
command line will print the old and new text.
2024-01-25 20:02:02 -06:00
James Westman
2e9db2eca5
errors: Fix bug when compiling empty file
2023-12-24 21:40:45 -06:00
James Westman
3bcc9f4cbd
Use the new Range class in more places
2023-07-25 20:01:41 -05:00
James Westman
950b141d26
lsp: Mark deprecation warnings
...
Some editors use different styling (e.g. strikethrough) for deprecation
warnings.
2023-07-23 18:17:48 -05:00
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