question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running tests from VS Code not working (Failed to load "test%5Cword_count_test.dart": Does not exist.)

See original GitHub issue

Describe the bug Hi guys, I’ve been coding some Excercism challenges and somehow the “Run” action (above the test method) from VS Code stopped working.

I’m pretty sure that this is something with the project itself but I can’t find where the problem is. I say this because when opening other projects I’m able to run the tests without problems.

To Reproduce Steps to reproduce the behavior:

  1. Using this source code: https://github.com/jvretamero/dart-excercism/tree/main/word-count
  2. Open the project on VS Code
  3. Open the “test\word_count_test.dart” file
  4. Click on “Run” above any test
  5. On the “Debug Console” you’ll receive the messae “Failed to load “test%5Cword_count_test.dart”: Does not exist.”.

Expected behavior I’m expecting to run the tests from VS Code

Aditional Information I’m using Dart that comes with Flutter SDK.

Here is the debugging log that I could capture:

!! PLEASE REVIEW THIS LOG FOR SENSITIVE INFORMATION BEFORE SHARING !!

Dart Code extension: 3.27.2
Flutter extension: 3.27.0 (not activated)

App: Visual Studio Code
Version: 1.61.2
Platform: win

Workspace type: Dart
Analyzer type: LSP
Multi-root?: false

Dart SDK:
    Loc: C:\flutter-2.5.3\bin\cache\dart-sdk
    Ver: 2.14.4
Flutter SDK:
    Loc: C:\flutter-2.5.3
    Ver: 2.5.3

HTTP_PROXY: undefined
NO_PROXY: undefined

Logging Categories:
    General, CommandProcesses, DAP, VmService, DevTools, FlutterDaemon, FlutterRun, FlutterTest, PubTest, WebDaemon

Wed Oct 20 2021 [17:19:51 GMT-0300 (Horário Padrão de Brasília)] Log file started
[17:19:59] [General] [Info] Starting debug session...
[17:19:59] [General] [Info]     workspace: C:\Exercism\dart\word-count
[17:19:59] [General] [Info]     program  : C:\Exercism\dart\word-count\test\word_count_test.dart
[17:19:59] [General] [Info] Using workspace as cwd: C:\Exercism\dart\word-count
[17:19:59] [General] [Info] Project (C:\Exercism\dart\word-count\test\word_count_test.dart) not recognised as Flutter or Web, will use Dart debugger
[17:19:59] [General] [Info] Detected launch project as Dart
[17:19:59] [General] [Info] Detected launch project as a Test project
[17:19:59] [General] [Info] Using PubTest debug adapter for this session
[17:19:59] [General] [Info] Checking for errors before launching
[17:19:59] [General] [Info] Debug session starting...
    {
        "suppressPromptOnErrors": false,
        "name": "Tests word_count_test.dart",
        "noDebug": true,
        "request": "launch",
        "type": "dart",
        "expectSingleTest": false,
        "program": "C:\\Exercism\\dart\\word-count\\test\\word_count_test.dart",
        "toolArgs": [
            "--name",
            "^WordCount: Simple Tests - "
        ],
        "dartCodeDebugSessionID": "session-d08e",
        "cwd": "C:\\Exercism\\dart\\word-count",
        "toolEnv": {
            "FLUTTER_HOST": "VSCode",
            "PUB_ENVIRONMENT": "vscode.dart-code"
        },
        "sendLogsToClient": true,
        "additionalProjectPaths": [
            "C:\\Exercism\\dart\\word-count"
        ],
        "args": [],
        "vmServicePort": 0,
        "dartSdkPath": "C:\\flutter-2.5.3\\bin\\cache\\dart-sdk",
        "maxLogLineLength": 2000,
        "debugSdkLibraries": false,
        "debugExternalPackageLibraries": false,
        "showDartDeveloperLogs": true,
        "evaluateGettersInDebugViews": true,
        "evaluateToStringInDebugViews": true,
        "debuggerType": 1
    }
[17:19:59] [General] [Info] Using dart_test debugger for PubTest
[17:19:59] [General] [Info] Running debugger via node with C:\.vscode\extensions\dart-code.dart-code-3.27.2\out\dist\debug.js    dart_test
[17:19:59] [DAP] [Info] Starting debug session 15e0d3d0-2a79-4705-9993-f808b782a210
[17:19:59] [DAP] [Info] <== {"command":"initialize","arguments":{"clientID":"vscode","clientName":"Visual Studio Code","adapterID":"dart","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en-us","supportsProgressReporting":true,"supportsInvalidatedEvent":true,"supportsMemoryReferences":true},"type":"request","seq":1}
[17:19:59] [DAP] [Info] ==> {"seq":1,"type":"response","request_seq":1,"command":"initialize","success":true,"body":{"supportsConfigurationDoneRequest":true,"supportsEvaluateForHovers":true,"supportsDelayedStackTraceLoading":true,"supportsConditionalBreakpoints":true,"supportsLogPoints":true,"supportsTerminateRequest":true,"supportsRestartFrame":true,"supportsClipboardContext":true,"exceptionBreakpointFilters":[{"filter":"All","label":"All Exceptions","default":false},{"filter":"Unhandled","label":"Uncaught Exceptions","default":true}]}}
[17:19:59] [DAP] [Info] <== {"command":"launch","arguments":{"suppressPromptOnErrors":false,"name":"Tests word_count_test.dart","noDebug":true,"request":"launch","type":"dart","expectSingleTest":false,"program":"C:\\Exercism\\dart\\word-count\\test\\word_count_test.dart","toolArgs":["--name","^WordCount: Simple Tests - "],"dartCodeDebugSessionID":"session-d08e","cwd":"C:\\Exercism\\dart\\word-count","toolEnv":{"FLUTTER_HOST":"VSCode","PUB_ENVIRONMENT":"vscode.dart-code"},"sendLogsToClient":true,"additionalProjectPaths":["C:\\Exercism\\dart\\word-count"],"args":[],"vmServicePort":0,"dartSdkPath":"C:\\flutter-2.5.3\\bin\\cache\\dart-sdk","maxLogLineLength":2000,"debugSdkLibraries":false,"debugExternalPackageLibraries":false,"showDartDeveloperLogs":true,"evaluateGettersInDebugViews":true,"evaluateToStringInDebugViews":true,"debuggerType":1,"__sessionId":"15e0d3d0-2a79-4705-9993-f808b782a210"},"type":"request","seq":2}
[17:19:59] [DAP] [Info] ==> {"seq":2,"type":"event","event":"dart.progressStart","body":{"progressID":"launch","message":"Launching…"}}
[17:19:59] [General] [Warn] Did not find session 15e0d3d0-2a79-4705-9993-f808b782a210 to handle dart.progressStart. There were 0 sessions:
[17:19:59] [General] [Warn] Event will be queued and processed when the session start event fires
[17:19:59] [DAP] [Info] ==> {"seq":3,"type":"response","request_seq":2,"command":"launch","success":true}
[17:19:59] [DAP] [Info] ==> {"seq":4,"type":"event","event":"dart.log","body":{"message":"Spawning C:\\flutter-2.5.3\\bin\\cache\\dart-sdk\\bin\\dart.exe with args [\"run\",\"--no-serve-devtools\",\"test:test\",\"-r\",\"json\",\"-j1\",\"--name\",\"^WordCount: Simple Tests - \",\"test\\\\word_count_test.dart\"]","severity":0,"category":6}}
[17:19:59] [DAP] [Info] ==> {"seq":5,"type":"event","event":"dart.log","body":{"message":"..  in C:\\Exercism\\dart\\word-count","severity":0,"category":6}}
[17:19:59] [DAP] [Info] ==> {"seq":6,"type":"event","event":"dart.log","body":{"message":"..  with {\"toolEnv\":{\"FLUTTER_HOST\":\"VSCode\",\"PUB_ENVIRONMENT\":\"vscode.dart-code\"}}","severity":0,"category":6}}
[17:19:59] [General] [Info] Processing delayed event dart.progressStart for session 15e0d3d0-2a79-4705-9993-f808b782a210
[17:19:59] [DAP] [Info] ==> {"seq":7,"type":"event","event":"dart.log","body":{"message":"    PID: 13396","severity":0,"category":6}}
[17:19:59] [DAP] [Info] ==> {"seq":8,"type":"event","event":"dart.progressEnd","body":{"progressID":"launch"}}
[17:19:59] [DAP] [Info] ==> {"seq":9,"type":"event","event":"initialized"}
[17:19:59] [PubTest] [Info] [Tests word_count_test.dart] Spawning C:\flutter-2.5.3\bin\cache\dart-sdk\bin\dart.exe with args ["run","--no-serve-devtools","test:test","-r","json","-j1","--name","^WordCount: Simple Tests - ","test\\word_count_test.dart"]
[17:19:59] [PubTest] [Info] [Tests word_count_test.dart] ..  in C:\Exercism\dart\word-count
[17:19:59] [PubTest] [Info] [Tests word_count_test.dart] ..  with {"toolEnv":{"FLUTTER_HOST":"VSCode","PUB_ENVIRONMENT":"vscode.dart-code"}}
[17:19:59] [DAP] [Info] <== {"command":"configurationDone","type":"request","seq":3}
[17:19:59] [PubTest] [Info] [Tests word_count_test.dart]     PID: 13396
[17:19:59] [DAP] [Info] ==> {"seq":10,"type":"response","request_seq":3,"command":"configurationDone","success":true}
[17:19:59] [DAP] [Info] <== {"command":"threads","type":"request","seq":4}
[17:19:59] [DAP] [Info] ==> {"seq":11,"type":"response","request_seq":4,"command":"threads","success":true,"body":{"threads":[]}}
[17:20:01] [DAP] [Info] ==> {"seq":12,"type":"event","event":"dart.log","body":{"message":"<== {\"protocolVersion\":\"0.1.1\",\"runnerVersion\":\"1.19.0\",\"pid\":16456,\"type\":\"start\",\"time\":0}\r\n","severity":0,"category":6}}
[17:20:01] [PubTest] [Info] [Tests word_count_test.dart] <== {"protocolVersion":"0.1.1","runnerVersion":"1.19.0","pid":16456,"type":"start","time":0}
[17:20:01] [DAP] [Info] ==> {"seq":13,"type":"event","event":"dart.log","body":{"message":"<== {\"suite\":{\"id\":0,\"platform\":\"vm\",\"path\":\"test%5Cword_count_test.dart\"},\"type\":\"suite\",\"time\":1}\r\n","severity":0,"category":6}}
[17:20:01] [DAP] [Info] ==> {"seq":14,"type":"event","event":"dart.testNotification","body":{"suite":{"id":0,"platform":"vm","path":"C:\\Exercism\\dart\\word-count\\test%5Cword_count_test.dart"},"type":"suite","time":1}}
[17:20:01] [PubTest] [Info] [Tests word_count_test.dart] <== {"suite":{"id":0,"platform":"vm","path":"test%5Cword_count_test.dart"},"type":"suite","time":1}
[17:20:01] [DAP] [Info] ==> {"seq":15,"type":"event","event":"dart.log","body":{"message":"<== {\"test\":{\"id\":1,\"name\":\"loading test%5Cword_count_test.dart\",\"suiteID\":0,\"groupIDs\":[],\"metadata\":{\"skip\":false,\"skipReason\":null},\"line\":null,\"column\":null,\"url\":null},\"type\":\"testStart\",\"time\":10}\r\n","severity":0,"category":6}}
[17:20:01] [DAP] [Info] ==> {"seq":16,"type":"event","event":"dart.testNotification","body":{"test":{"id":1,"name":"loading test%5Cword_count_test.dart","suiteID":0,"groupIDs":[],"metadata":{"skip":false,"skipReason":null},"line":null,"column":null,"url":null},"type":"testStart","time":10}}
[17:20:01] [PubTest] [Info] [Tests word_count_test.dart] <== {"test":{"id":1,"name":"loading test%5Cword_count_test.dart","suiteID":0,"groupIDs":[],"metadata":{"skip":false,"skipReason":null},"line":null,"column":null,"url":null},"type":"testStart","time":10}
[17:20:01] [DAP] [Info] ==> {"seq":17,"type":"event","event":"dart.log","body":{"message":"<== {\"count\":1,\"time\":37,\"type\":\"allSuites\"}\r\n","severity":0,"category":6}}
[17:20:01] [PubTest] [Info] [Tests word_count_test.dart] <== {"count":1,"time":37,"type":"allSuites"}
[17:20:01] [DAP] [Info] ==> {"seq":18,"type":"event","event":"dart.log","body":{"message":"<== {\"testID\":1,\"error\":\"Failed to load \\\"test%5Cword_count_test.dart\\\": Does not exist.\",\"stackTrace\":\"package:test_core/src/runner/load_suite.dart 128:26    new LoadSuite.forLoadException\\npackage:test_core/src/runner.dart 276:21               Runner._loadSuites.<fn>\\ndart:_internal/iterable.dart 413:31                    MappedListIterable.elementAt\\ndart:_internal/iterable.dart 39:14                     ListIterable.forEach\\npackage:async/src/stream_group.dart 95:13              StreamGroup.merge\\npackage:test_core/src/runner.dart 260:24               Runner._loadSuites\\npackage:test_core/src/runner.dart 118:22               Runner.run.<fn>\\npackage:test_core/src/runner.dart 111:43               Runner.run.<fn>\\ndart:async/zone.dart 1428:13                           _rootRun\\ndart:async/zone.dart 1328:19                           _CustomZone.run\\ndart:async/zone.dart 1863:10                           _runZoned\\ndart:async/zone.dart 1785:10                           runZoned\\npackage:test_core/src/runner/configuration.dart 881:7  Configuration.asCurrent\\npackage:test_core/src/runner.dart 111:33               Runner.run\\npackage:test_core/src/executable.dart 149:30           _execute\\npackage:test_core/src/executable.dart 38:9             main\\npackage:test/src/executable.dart 21:9                  main\\ndart:isolate-patch/isolate_patch.dart 281:32           _delayEntrypointInvocation.<fn>\\ndart:isolate-patch/isolate_patch.dart 184:12           _RawReceivePortImpl._handleMessage\\n\",\"isFailure\":false,\"type\":\"error\",\"time\":92}\r\n","severity":0,"category":6}}
[17:20:01] [DAP] [Info] ==> {"seq":19,"type":"event","event":"output","body":{"category":"stderr","output":"Failed to load \"test%5Cword_count_test.dart\": Does not exist.\n"}}
[17:20:01] [DAP] [Info] ==> {"seq":20,"type":"event","event":"output","body":{"category":"stderr","output":"\u001b[2mnew LoadSuite.forLoadException\u001b[0m\n","source":{"name":"package:test_core/…/runner/load_suite.dart","path":"C:\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dartlang.org\\test_core-0.4.6\\lib\\src\\runner\\load_suite.dart","sourceReference":0},"line":128,"column":26}}
[17:20:01] [DAP] [Info] ==> {"seq":21,"type":"event","event":"output","body":{"category":"stderr","output":"\u001b[2mRunner._loadSuites.<fn>\u001b[0m\n","source":{"name":"package:test_core/src/runner.dart","path":"C:\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dartlang.org\\test_core-0.4.6\\lib\\src\\runner.dart","sourceReference":0},"line":276,"column":21}}
[17:20:01] [DAP] [Info] ==> {"seq":22,"type":"event","event":"output","body":{"category":"stderr","output":"\u001b[2mdart:_internal/iterable.dart 413:31                    MappedListIterable.elementAt\u001b[0m\n"}}
[17:20:01] [DAP] [Info] ==> {"seq":23,"type":"event","event":"output","body":{"category":"stderr","output":"\u001b[2mdart:_internal/iterable.dart 39:14                     ListIterable.forEach\u001b[0m\n"}}
[17:20:01] [DAP] [Info] ==> {"seq":24,"type":"event","event":"output","body":{"category":"stderr","output":"\u001b[2mStreamGroup.merge\u001b[0m\n","source":{"name":"package:async/src/stream_group.dart","path":"C:\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dartlang.org\\async-2.8.2\\lib\\src\\stream_group.dart","sourceReference":0},"line":95,"column":13}}
[17:20:01] [DAP] [Info] ==> {"seq":25,"type":"event","event":"output","body":{"category":"stderr","output":"\u001b[2mRunner._loadSuites\u001b[0m\n","source":{"name":"package:test_core/src/runner.dart","path":"C:\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dartlang.org\\test_core-0.4.6\\lib\\src\\runner.dart","sourceReference":0},"line":260,"column":24}}
[17:20:01] [DAP] [Info] ==> {"seq":26,"type":"event","event":"output","body":{"category":"stderr","output":"\u001b[2mRunner.run.<fn>\u001b[0m\n","source":{"name":"package:test_core/src/runner.dart","path":"C:\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dartlang.org\\test_core-0.4.6\\lib\\src\\runner.dart","sourceReference":0},"line":118,"column":22}}
[17:20:01] [DAP] [Info] ==> {"seq":27,"type":"event","event":"output","body":{"category":"stderr","output":"\u001b[2mRunner.run.<fn>\u001b[0m\n","source":{"name":"package:test_core/src/runner.dart","path":"C:\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dartlang.org\\test_core-0.4.6\\lib\\src\\runner.dart","sourceReference":0},"line":111,"column":43}}
[17:20:01] [DAP] [Info] ==> {"seq":28,"type":"event","event":"output","body":{"category":"stderr","output":"\u001b[2mdart:async/zone.dart 1428:13                           _rootRun\u001b[0m\n"}}
[17:20:01] [DAP] [Info] ==> {"seq":29,"type":"event","event":"output","body":{"category":"stderr","output":"\u001b[2mdart:async/zone.dart 1328:19                           _CustomZone.run\u001b[0m\n"}}
[17:20:01] [DAP] [Info] ==> {"seq":30,"type":"event","event":"output","body":{"category":"stderr","output":"\u001b[2mdart:async/zone.dart 1863:10                           _runZoned\u001b[0m\n"}}
[17:20:01] [DAP] [Info] ==> {"seq":31,"type":"event","event":"output","body":{"category":"stderr","output":"\u001b[2mdart:async/zone.dart 1785:10                           runZoned\u001b[0m\n"}}
[17:20:01] [DAP] [Info] ==> {"seq":32,"type":"event","event":"output","body":{"category":"stderr","output":"\u001b[2mConfiguration.asCurrent\u001b[0m\n","source":{"name":"package:test_core/…/runner/configuration.dart","path":"C:\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dartlang.org\\test_core-0.4.6\\lib\\src\\runner\\configuration.dart","sourceReference":0},"line":881,"column":7}}
[17:20:01] [DAP] [Info] ==> {"seq":33,"type":"event","event":"output","body":{"category":"stderr","output":"\u001b[2mRunner.run\u001b[0m\n","source":{"name":"package:test_core/src/runner.dart","path":"C:\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dartlang.org\\test_core-0.4.6\\lib\\src\\runner.dart","sourceReference":0},"line":111,"column":33}}
[17:20:01] [DAP] [Info] ==> {"seq":34,"type":"event","event":"output","body":{"category":"stderr","output":"\u001b[2m_execute\u001b[0m\n","source":{"name":"package:test_core/src/executable.dart","path":"C:\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dartlang.org\\test_core-0.4.6\\lib\\src\\executable.dart","sourceReference":0},"line":149,"column":30}}
[17:20:01] [DAP] [Info] ==> {"seq":35,"type":"event","event":"output","body":{"category":"stderr","output":"\u001b[2mmain\u001b[0m\n","source":{"name":"package:test_core/src/executable.dart","path":"C:\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dartlang.org\\test_core-0.4.6\\lib\\src\\executable.dart","sourceReference":0},"line":38,"column":9}}
[17:20:01] [DAP] [Info] ==> {"seq":36,"type":"event","event":"output","body":{"category":"stderr","output":"\u001b[2mmain\u001b[0m\n","source":{"name":"package:test/src/executable.dart","path":"C:\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dartlang.org\\test-1.19.0\\lib\\src\\executable.dart","sourceReference":0},"line":21,"column":9}}
[17:20:01] [PubTest] [Info] [Tests word_count_test.dart] <== {"testID":1,"error":"Failed to load \"test%5Cword_count_test.dart\": Does not exist.","stackTrace":"package:test_core/src/runner/load_suite.dart 128:26    new LoadSuite.forLoadException\npackage:test_core/src/runner.dart 276:21               Runner._loadSuites.<fn>\ndart:_internal/iterable.dart 413:31                    MappedListIterable.elementAt\ndart:_internal/iterable.dart 39:14                     ListIterable.forEach\npackage:async/src/stream_group.dart 95:13              StreamGroup.merge\npackage:test_core/src/runner.dart 260:24               Runner._loadSuites\npackage:test_core/src/runner.dart 118:22               Runner.run.<fn>\npackage:test_core/src/runner.dart 111:43               Runner.run.<fn>\ndart:async/zone.dart 1428:13                           _rootRun\ndart:async/zone.dart 1328:19                           _CustomZone.run\ndart:async/zone.dart 1863:10                           _runZoned\ndart:async/zone.dart 1785:10                           runZoned\npackage:test_core/src/runner/configuration.dart 881:7  Configuration.asCurrent\npackage:test_core/src/runner.dart 111:33               Runner.run\npackage:test_core/src/executable.dart 149:30           _execute\npackage:test_core/src/executable.dart 38:9             main\npackage:test/src/executable.dart 21:9                  main\ndart:isolate-patch/isolate_patch.dart 281:32           _delayEntrypointInvocation.<fn>\ndart:isolate-patch/isolate_patch.dart 184:12           _RawReceivePortImpl._handleMessage\n","isFailure":false,"type":"error","time":92}
[17:20:01] [DAP] [Info] ==> {"seq":37,"type":"event","event":"output","body":{"category":"stderr","output":"\u001b[2mdart:isolate-patch/isolate_patch.dart 281:32           _delayEntrypointInvocation.<fn>\u001b[0m\n"}}
[17:20:01] [DAP] [Info] ==> {"seq":38,"type":"event","event":"output","body":{"category":"stderr","output":"\u001b[2mdart:isolate-patch/isolate_patch.dart 184:12           _RawReceivePortImpl._handleMessage\u001b[0m\n"}}
[17:20:01] [DAP] [Info] ==> {"seq":39,"type":"event","event":"output","body":{"category":"stderr","output":"\n"}}
[17:20:01] [DAP] [Info] ==> {"seq":40,"type":"event","event":"output","body":{"category":"stderr","output":"\n"}}
[17:20:01] [DAP] [Info] ==> {"seq":41,"type":"event","event":"dart.testNotification","body":{"testID":1,"error":"Failed to load \"test%5Cword_count_test.dart\": Does not exist.","stackTrace":"package:test_core/src/runner/load_suite.dart 128:26    new LoadSuite.forLoadException\npackage:test_core/src/runner.dart 276:21               Runner._loadSuites.<fn>\ndart:_internal/iterable.dart 413:31                    MappedListIterable.elementAt\ndart:_internal/iterable.dart 39:14                     ListIterable.forEach\npackage:async/src/stream_group.dart 95:13              StreamGroup.merge\npackage:test_core/src/runner.dart 260:24               Runner._loadSuites\npackage:test_core/src/runner.dart 118:22               Runner.run.<fn>\npackage:test_core/src/runner.dart 111:43               Runner.run.<fn>\ndart:async/zone.dart 1428:13                           _rootRun\ndart:async/zone.dart 1328:19                           _CustomZone.run\ndart:async/zone.dart 1863:10                           _runZoned\ndart:async/zone.dart 1785:10                           runZoned\npackage:test_core/src/runner/configuration.dart 881:7  Configuration.asCurrent\npackage:test_core/src/runner.dart 111:33               Runner.run\npackage:test_core/src/executable.dart 149:30           _execute\npackage:test_core/src/executable.dart 38:9             main\npackage:test/src/executable.dart 21:9                  main\ndart:isolate-patch/isolate_patch.dart 281:32           _delayEntrypointInvocation.<fn>\ndart:isolate-patch/isolate_patch.dart 184:12           _RawReceivePortImpl._handleMessage\n","isFailure":false,"type":"error","time":92}}
[17:20:01] [DAP] [Info] ==> {"seq":42,"type":"event","event":"dart.log","body":{"message":"<== {\"testID\":1,\"result\":\"error\",\"skipped\":false,\"hidden\":false,\"type\":\"testDone\",\"time\":105}\r\n","severity":0,"category":6}}
[17:20:01] [DAP] [Info] ==> {"seq":43,"type":"event","event":"output","body":{"category":"stdout","output":"✖ loading test%5Cword_count_test.dart\n"}}
[17:20:01] [DAP] [Info] ==> {"seq":44,"type":"event","event":"dart.testNotification","body":{"testID":1,"result":"error","skipped":false,"hidden":false,"type":"testDone","time":105}}
[17:20:01] [DAP] [Info] ==> {"seq":45,"type":"event","event":"dart.log","body":{"message":"<== {\"success\":false,\"type\":\"done\",\"time\":117}\r\n","severity":0,"category":6}}
[17:20:01] [General] [Warn] Could not find suite for test 1 for session session-d08e
[17:20:01] [PubTest] [Info] [Tests word_count_test.dart] <== {"testID":1,"result":"error","skipped":false,"hidden":false,"type":"testDone","time":105}
[17:20:01] [PubTest] [Info] [Tests word_count_test.dart] <== {"success":false,"type":"done","time":117}
[17:20:01] [DAP] [Info] ==> {"seq":46,"type":"event","event":"dart.log","body":{"message":"Process terminated! 1, null","severity":0,"category":6}}
[17:20:01] [DAP] [Info] ==> {"seq":47,"type":"event","event":"dart.log","body":{"message":"Process exited (1)","severity":0,"category":10}}
[17:20:01] [DAP] [Info] ==> {"seq":48,"type":"event","event":"output","body":{"category":"console","output":"Exited (1)\n"}}
[17:20:01] [DAP] [Info] ==> {"seq":49,"type":"event","event":"terminated"}
[17:20:01] [DAP] [Info] <== {"command":"disconnect","arguments":{"restart":false},"type":"request","seq":5}
[17:20:01] [PubTest] [Info] [Tests word_count_test.dart] Process terminated! 1, null
[17:20:01] [VmService] [Info] [Tests word_count_test.dart] Process exited (1)
[17:20:01] [DAP] [Info] ==> {"seq":50,"type":"event","event":"dart.log","body":{"message":"Disconnect requested!","severity":0,"category":10}}
[17:20:01] [DAP] [Info] ==> {"seq":51,"type":"event","event":"dart.log","body":{"message":"TERM: Requested to terminate with SIGINT...","severity":0,"category":10}}
[17:20:01] [DAP] [Info] ==> {"seq":52,"type":"event","event":"dart.log","body":{"message":"TERM: Did not need to terminate processes","severity":0,"category":10}}
[17:20:01] [DAP] [Info] ==> {"seq":53,"type":"event","event":"dart.log","body":{"message":"TERM: Removing all stored data...","severity":0,"category":10}}
[17:20:01] [DAP] [Info] ==> {"seq":54,"type":"event","event":"dart.log","body":{"message":"TERM: Waiting for process to finish...","severity":0,"category":10}}
[17:20:01] [VmService] [Info] [Tests word_count_test.dart] Disconnect requested!
[17:20:01] [DAP] [Info] ==> {"seq":55,"type":"event","event":"dart.log","body":{"message":"TERM: Disconnecting...","severity":0,"category":10}}
[17:20:01] [VmService] [Info] [Tests word_count_test.dart] TERM: Requested to terminate with SIGINT...
[17:20:01] [VmService] [Info] [Tests word_count_test.dart] TERM: Did not need to terminate processes
[17:20:01] [VmService] [Info] [Tests word_count_test.dart] TERM: Removing all stored data...
[17:20:01] [VmService] [Info] [Tests word_count_test.dart] TERM: Waiting for process to finish...
[17:20:01] [VmService] [Info] [Tests word_count_test.dart] TERM: Disconnecting...
[17:20:01] [DAP] [Info] ==> {"seq":56,"type":"response","request_seq":5,"command":"disconnect","success":true}
[17:20:01] [DAP] [Info] Debug session 15e0d3d0-2a79-4705-9993-f808b782a210 errored: {}
[17:20:01] [DAP] [Info] Debug session 15e0d3d0-2a79-4705-9993-f808b782a210 exit: code: 0, signal: undefined
[17:20:02] [DAP] [Info] Stopping debug session 15e0d3d0-2a79-4705-9993-f808b782a210
[17:20:02] [General] [Info] Debugger:SessionDuration timing: 2701ms (PubTest)
Wed Oct 20 2021 [17:20:03 GMT-0300 (Horário Padrão de Brasília)] Log file ended

I’ve also tried to run the dart command from the log, directly on my terminal, but I also got an error:

C:\Exercism\dart\word-count
λ dart run test:test --name "^WordCount: Simple Tests" test\word_count_test.dart
00:00 +0 -1: loading test%5Cword_count_test.dart [E]
  Failed to load "test%5Cword_count_test.dart": Does not exist.
00:00 +0 -1: Some tests failed.

Versions:

  • VS Code version: 1.62.2
  • Dart extension version: 3.27.2
  • Flutter extension version: 3.27.0
  • Dart SDK version: 2.14.4
  • Flutter SDK version: 2.5.3

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jakemac53commented, Oct 21, 2021

This should be resolved now - please check

0reactions
jakemac53commented, Oct 21, 2021

🥳

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS Code does not recognize unit tests in Flutter - Stack Overflow
The tests are running correctly with flutter test command. Dart SDK: >=2.1.0 <3.0.0. Flutter channel: master. Edit: I found workaround - I just ......
Read more >
Troubleshoot Terminal launch failures - Visual Studio Code
The VS Code team works hard to make the terminal experience as seamless as possible but in some cases, there are issues with...
Read more >
Testing in VS Code · Issue #107467 · microsoft/vscode - GitHub
I've considered a workaround where I'd cache the information in a tempfile or something, and have rspec only load information about changed ...
Read more >
test | Dart Package - Pub.dev
A full featured library for writing and running Dart tests across ... If a directory does not exist at the path specified, a...
Read more >
Visual Studio Code - Flutter documentation
Run app in debug, profile, or release mode · Open the launch.json file in VS Code. If you do not have a launch....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found