Skip to content

Commit

Permalink
Use filename (which fallback to root type name) in locations of impor…
Browse files Browse the repository at this point in the history
…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)
```
  • Loading branch information
Mingun authored and GreyCat committed Mar 22, 2024
1 parent 972ddc4 commit 7d4093f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class LoadImports(specs: ClassSpecs) {
loadImport(
name,
curClass.meta.path ++ List("imports", idx.toString),
Some(curClass.nameAsStr),
Some(curClass.fileNameAsStr),
workDir
)
}).map((x) => x.flatten)
Expand Down

0 comments on commit 7d4093f

Please sign in to comment.