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

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

Closed
cm1776 opened this issue Sep 12, 2021 · 2 comments · May be fixed by #1076
Closed

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

cm1776 opened this issue Sep 12, 2021 · 2 comments · May be fixed by #1076

Comments

@cm1776
Copy link

cm1776 commented Sep 12, 2021

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>
`

@imaculate
Copy link

I'm running into the same issue when I run make test_jlox or make test_clox

@cm1776
Copy link
Author

cm1776 commented Oct 9, 2022

Got around the problem by Installing Ubuntu 20.04 under Windows Subsystem for Linux (WSL2) and doing all the following in the Ubuntu environment:

  1. Installed GCC (gnu c compiler). For details, do a search on "Installing GCC on Ubuntu 20.04"
  2. Installed OpenJDK 17.
  3. Followed, line by line, all the instructions at Building Stuff.
  4. Followed, line by line, all the instructions at Testing

All the tests on the canonical implementations of jlox and clox ran OK (all tests passed).

In consequence of all the above, I am closing this issue.

@cm1776 cm1776 closed this as completed Oct 9, 2022
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 a pull request may close this issue.

2 participants