-
Notifications
You must be signed in to change notification settings - Fork 203
Closed
Labels
Description
I tried to build tests for kaitai-io/kaitai_struct_compiler#288, but building translator failed with error:
[20.08.2024 19:13:31] mingun@win7 /d/Projects/parsers/kaitai_struct/tests
$ ./build-tests java
[info] welcome to sbt 1.9.7 (Oracle Corporation Java 17.0.1)
[info] loading project definition from D:\Projects\parsers\kaitai_struct\tests\translator\project
[info] loading settings for project translator from build.sbt ...
[info] set current project to translator (in build file:/D:/Projects/parsers/kaitai_struct/tests/translator/)
[warn] there's a key that's not used by any other settings/tasks:
[warn]
[warn] * translator / mainClass
[warn] +- D:\Projects\parsers\kaitai_struct\tests\translator\build.sbt:15
[warn]
[warn] note: a setting might still be used by a command; to exclude a key from this `lintUnused` check
[warn] either append it to `Global / excludeLintKeys` or call .withRank(KeyRanks.Invisible) on the key
[info] compiling 19 Scala sources to D:\Projects\parsers\kaitai_struct\tests\translator\target\scala-2.13\classes ...
[error] D:\Projects\parsers\kaitai_struct\tests\translator\src\main\scala\io\kaitai\struct\testtranslator\specgenerators\JuliaSG.scala:6:8: object JuliaCompiler is not a member of package io.kaitai.struct.languages
[error] did you mean JavaCompiler or LuaCompiler?
[error] import _root_.io.kaitai.struct.languages.JuliaCompiler
[error] ^
[error] D:\Projects\parsers\kaitai_struct\tests\translator\src\main\scala\io\kaitai\struct\testtranslator\specgenerators\JuliaSG.scala:8:8: object JuliaTranslator is not a member of package io.kaitai.struct.translators
[error] did you mean JavaTranslator or LuaTranslator?
[error] import _root_.io.kaitai.struct.translators.JuliaTranslator
[error] ^
[error] D:\Projects\parsers\kaitai_struct\tests\translator\src\main\scala\io\kaitai\struct\testtranslator\specgenerators\JuliaSG.scala:13:24: not found: type JuliaTranslator
[error] val translator = new JuliaTranslator(provider, importList)
[error] ^
[error] D:\Projects\parsers\kaitai_struct\tests\translator\src\main\scala\io\kaitai\struct\testtranslator\specgenerators\JuliaSG.scala:14:19: not found: value JuliaCompiler
[error] val className = JuliaCompiler.type2class(spec.id)
[error] ^
[error] D:\Projects\parsers\kaitai_struct\tests\translator\src\main\scala\io\kaitai\struct\testtranslator\specgenerators\JuliaSG.scala:34:31: not found: value JuliaCompiler
[error] out.puts(s"@test_throws ${JuliaCompiler.ksErrorName(exception)} ${className}Module.from_file(${'"'}src/${spec.data}${'"'})")
[error] ^
[error] D:\Projects\parsers\kaitai_struct\tests\translator\src\main\scala\io\kaitai\struct\testtranslator\specgenerators\JuliaSG.scala:64:31: not found: value JuliaCompiler
[error] out.puts(s"@test_throws ${JuliaCompiler.ksErrorName(exception)} ${translateAct(actual)}")
[error] ^
[error] 6 errors found
[error] (Compile / compileIncremental) Compilation failed
[error] Total time: 7 s, completed 20 ╨░╨▓╨│. 2024 ╨│., 19:17:35
bash: ConEmuC: команда не найдена
[20.08.2024 19:17:35] mingun@win7 /d/Projects/parsers/kaitai_struct/tests
$
(./build-test here from kaitai-io/kaitai_struct_tests#112, it is just
#!/bin/sh
cd translator
arg="run $@"
sbt -Dsbt.log.noformat=true "$arg")
Search for JuliaCompiler returns results only in this repo:
https://github.com/search?q=org%3Akaitai-io+JuliaCompiler&type=code