# @test\_logs and the VSCode Testing pane

**URL:** <https://discourse.julialang.org/t/test-logs-and-the-vscode-testing-pane/115569>\
**Category:** General Usage\
**Created:** [June 12, 2024, 5:47pm UTC](https://discourse.julialang.org/t/test-logs-and-the-vscode-testing-pane/115569 "2024-06-12T17:47:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ken\_Williams](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ken_williams/32/5289_2.png) [@Ken\_Williams](https://discourse.julialang.org/u/Ken_Williams)\
**Post date:** [June 12, 2024, 5:47pm UTC](https://discourse.julialang.org/t/test-logs-and-the-vscode-testing-pane/115569/1 "2024-06-12T17:47:38Z")

</div>

I’m using `@test_logs` to verify that a certain warning message is issued under certain conditions. This seems to work fine when running via `]test`, but when I run by hitting the green “play” triangle in the VSCode Testing pane, I get this error:

```julia
ERROR: LoadError: MethodError: no method matching scrub_backtrace(::Vector{Union{Ptr{Nothing}, Base.InterpreterIP}})

```

My test code looks something like this:

```julia
@testitem "Data reading" begin
    include("test_includes.jl")
    arg = something()

    @test_logs (:warn, Regex("my regex")) begin
        my_function(arg)
    end
end

```

I don’t have a real reproducible example right now because this is in the tests for some code that I can’t share, but I wanted to ask in case this has been seen before.
