mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
lsp: Fix crash when import version missing
The issue is specific to the language server, since it's trying to use an AST that contains errors. The test would not fail but was added anyway.
This commit is contained in:
parent
b9fdc5a5f1
commit
2da6be7618
5 changed files with 16 additions and 3 deletions
1
tests/sample_errors/no_import_version.blp
Normal file
1
tests/sample_errors/no_import_version.blp
Normal file
|
@ -0,0 +1 @@
|
|||
using Gtk
|
1
tests/sample_errors/no_import_version.err
Normal file
1
tests/sample_errors/no_import_version.err
Normal file
|
@ -0,0 +1 @@
|
|||
1,10,0,Expected a version number for GTK
|
|
@ -188,6 +188,7 @@ class TestSamples(unittest.TestCase):
|
|||
self.assert_sample_error("gtk_exact_version")
|
||||
self.assert_sample_error("invalid_bool")
|
||||
self.assert_sample_error("layout_in_non_widget")
|
||||
self.assert_sample_error("no_import_version")
|
||||
self.assert_sample_error("ns_not_imported")
|
||||
self.assert_sample_error("not_a_class")
|
||||
self.assert_sample_error("object_dne")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue