munificent / craftinginterpreters

Repository for the book "Crafting Interpreters"
http://www.craftinginterpreters.com/
Other
8.42k stars 1.01k forks source link

Issues with testing #1127

Closed JanEricNitschke closed 1 year ago

JanEricNitschke commented 1 year ago

I am working on windows 10 Pro 21H2 with "Dart SDK version: 2.19.6 (stable) (Tue Mar 28 13:41:04 2023 +0000) on "windows_x64"

I cloned the repo, did make get and make. Now calling make test_all errors with:

Invalid argument(s): Could not find tag 'adjust-alloc' in 'Optimization'.
#0      Book.findTag (package:tool/src/book.dart:186:5)
#1      main.<anonymous closure> (file:///D:/Programming/Projects/CraftingInterpreters/reference/craftinginterpreters/tool/bin/compile_snippets.dart:309:42)
#2      MappedListIterable.elementAt (dart:_internal/iterable.dart:415:31)
#3      ListIterator.moveNext (dart:_internal/iterable.dart:344:26)
#4      main (file:///D:/Programming/Projects/CraftingInterpreters/reference/craftinginterpreters/tool/bin/compile_snippets.dart:314:21)
#5      _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:295:33)
#6      _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:192:26)
make: *** [Makefile:199: compile_snippets] Error 255

and make_test errors with

Unhandled exception:
ProcessException: Das System kann die angegebene Datei nicht finden.

  Command: build/cloxd .\test\assignment\associativity.lox
#0      _ProcessImpl._runAndWait (dart:io-patch/process_patch.dart:487:7)
#1      _runNonInteractiveProcessSync (dart:io-patch/process_patch.dart:632:18)
#2      Process.runSync (dart:io-patch/process_patch.dart:68:12)
#3      Test.run (file:///D:/Programming/Projects/CraftingInterpreters/reference/craftinginterpreters/tool/bin/test.dart:301:26)
#4      _runTest (file:///D:/Programming/Projects/CraftingInterpreters/reference/craftinginterpreters/tool/bin/test.dart:162:23)
#5      _runSuite (file:///D:/Programming/Projects/CraftingInterpreters/reference/craftinginterpreters/tool/bin/test.dart:121:5)
#6      main (file:///D:/Programming/Projects/CraftingInterpreters/reference/craftinginterpreters/tool/bin/test.dart:87:15)
#7      _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:295:33)
#8      _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:192:26)
make: *** [Makefile:58: build/test.dart.snapshot] Error 255