samuelpordeus / vscode-elixir-test

Visual Studio Code extension to interact with elixir tests
MIT License
37 stars 36 forks source link

TypeError: Cannot read properties of undefined (reading 'length') #84

Closed moxley closed 1 year ago

moxley commented 1 year ago

I recently received the update to vscode-elixir-test, and this error happens when I try to run tests:

CleanShot 2023-11-20 at 16 51 46@2x

In Extension Host:

2023-11-20 16:51:39.616 [error] TypeError: Cannot read properties of undefined (reading 'length')
    at mix (/Users/mstratto/.vscode/extensions/samuel-pordeus.elixir-test-1.8.0/src/helpers/mix.js:7:47)
    at Object.testPath (/Users/mstratto/.vscode/extensions/samuel-pordeus.elixir-test-1.8.0/src/helpers/mix.js:36:10)
    at /Users/mstratto/.vscode/extensions/samuel-pordeus.elixir-test-1.8.0/src/commands/runTestFile.js:5:46
    at Object.onTestFile (/Users/mstratto/.vscode/extensions/samuel-pordeus.elixir-test-1.8.0/src/helpers/test.js:39:17)
    at Object.handler (/Users/mstratto/.vscode/extensions/samuel-pordeus.elixir-test-1.8.0/src/commands/runTestFile.js:5:8)
    at /Users/mstratto/.vscode/extensions/samuel-pordeus.elixir-test-1.8.0/src/extension.js:13:25

Downgrading to version 1.7.1 resolves the problem.

msramos commented 1 year ago

Thanks @moxley!

I'll try to get it published today!

msramos commented 1 year ago

@moxley version 1.8.1 is available for download with this fix. Thanks!