Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a filename (with a fallback to root type name) in locations of import errors #285

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

Mingun
Copy link
Contributor

@Mingun Mingun commented Mar 22, 2024

Fixes the test:

[info] - meta_imports_abs_unknown *** FAILED ***
[info]   meta_imports_abs_unknown: /meta/imports/0:
[info]   	error: unable to find 'unknown_absolute_name.ksy' in import search paths, using: List()
[info]    did not equal meta_imports_abs_unknown.ksy: /meta/imports/0:
[info]   	error: unable to find 'unknown_absolute_name.ksy' in import search paths, using: List() (SimpleMatchers.scala:34)

Changes filename in the following tests:

[info] - meta_imports_rel2 *** FAILED ***
[info]   meta_imports_rel_unknown: /meta/imports/0:
[info]   	error: unknown_relative_name.ksy (No such file or directory)
[info]    did not equal meta_imports_rel_unknown: /meta/imports/0:
[info]   	error: ../tests/formats_err/unknown_relative_name.ksy (No such file or directory) (SimpleMatchers.scala:34)
[info] - meta_imports_rel_unknown *** FAILED ***
[info]   meta_imports_rel_unknown: /meta/imports/0:
[info]   	error: unknown_relative_name.ksy (No such file or directory)
[info]    did not equal meta_imports_rel_unknown: /meta/imports/0:
[info]   	error: ../tests/formats_err/unknown_relative_name.ksy (No such file or directory) (SimpleMatchers.scala:34)

Corresponding PR in kaitai_struct_tests repository that fixes tests accordingly:

…t messages

Fixes the test:
```
[info] - meta_imports_abs_unknown *** FAILED ***
[info]   meta_imports_abs_unknown: /meta/imports/0:
[info]   	error: unable to find 'unknown_absolute_name.ksy' in import search paths, using: List()
[info]    did not equal meta_imports_abs_unknown.ksy: /meta/imports/0:
[info]   	error: unable to find 'unknown_absolute_name.ksy' in import search paths, using: List() (SimpleMatchers.scala:34)
```

Changes filename in the following tests:
```
[info] - meta_imports_rel2 *** FAILED ***
[info]   meta_imports_rel_unknown: /meta/imports/0:
[info]   	error: unknown_relative_name.ksy (No such file or directory)
[info]    did not equal meta_imports_rel_unknown: /meta/imports/0:
[info]   	error: ../tests/formats_err/unknown_relative_name.ksy (No such file or directory) (SimpleMatchers.scala:34)
[info] - meta_imports_rel_unknown *** FAILED ***
[info]   meta_imports_rel_unknown: /meta/imports/0:
[info]   	error: unknown_relative_name.ksy (No such file or directory)
[info]    did not equal meta_imports_rel_unknown: /meta/imports/0:
[info]   	error: ../tests/formats_err/unknown_relative_name.ksy (No such file or directory) (SimpleMatchers.scala:34)
```
@GreyCat
Copy link
Member

GreyCat commented Mar 22, 2024

Ok, let's give it a try!

@GreyCat GreyCat merged commit 7d4093f into kaitai-io:master Mar 22, 2024
1 of 4 checks passed
@Mingun Mingun deleted the use-filename-instead-of-name branch March 22, 2024 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants