Skip to content

Using test.dart results in "Unhandled exception" error. #1003

Closed
@cm1776

Description

@cm1776

When I run any of the following commands, I get an "Unhandled exception" error:

`
D:\ci>dart tool\bin\test.dart clox --interpreter custom\clox.exe

Passed: 0 Failed: 0 Skipped: 0 (.\test\assignment\associativity.lox)Unhandled exception:
Unknown test state for '.\test\assignment\associativity.lox'.
#0 Test.parse (file:///D:/ci/tool/bin/test.dart:224:7)
#1 _runTest (file:///D:/ci/tool/bin/test.dart:160:13)
#2 _runSuite (file:///D:/ci/tool/bin/test.dart:121:5)
#3 main (file:///D:/ci/tool/bin/test.dart:87:15)
#4 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:281:32)
#5 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)

D:\ci>dart tool\bin\test.dart clox --interpreter custom\

Passed: 0 Failed: 0 Skipped: 0 (.\test\assignment\associativity.lox)Unhandled exception:
Unknown test state for '.\test\assignment\associativity.lox'.
#0 Test.parse (file:///D:/ci/tool/bin/test.dart:224:7)
#1 _runTest (file:///D:/ci/tool/bin/test.dart:160:13)
#2 _runSuite (file:///D:/ci/tool/bin/test.dart:121:5)
#3 main (file:///D:/ci/tool/bin/test.dart:87:15)
#4 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:281:32)
#5 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)

D:\ci>dart tool\bin\test.dart clox --interpreter custom

Passed: 0 Failed: 0 Skipped: 0 (.\test\assignment\associativity.lox)Unhandled exception:
Unknown test state for '.\test\assignment\associativity.lox'.
#0 Test.parse (file:///D:/ci/tool/bin/test.dart:224:7)
#1 _runTest (file:///D:/ci/tool/bin/test.dart:160:13)
#2 _runSuite (file:///D:/ci/tool/bin/test.dart:121:5)
#3 main (file:///D:/ci/tool/bin/test.dart:87:15)
#4 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:281:32)
#5 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)

D:\ci>
`

Dart Version Information
D:\ci>dart --version Dart SDK version: 2.14.1 (stable) (Wed Sep 8 13:33:08 2021 +0200) on "windows_x64"

Operating System
Windows 10 Version 21H1

Important Note:
I am running the canonical clox (not my own implementation) and when I run it against one of the test programs, I have no problems. For example:

`
D:\ci>custom\clox test\assignment\associativity.lox
c
c
c

D:\ci>
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions