# Error using TestItems in VSCode

**URL:** <https://discourse.julialang.org/t/error-using-testitems-in-vscode/120699>\
**Category:** General Usage\
**Tags:** testing, vscode\
**Created:** [September 29, 2024, 11:06pm UTC](https://discourse.julialang.org/t/error-using-testitems-in-vscode/120699 "2024-09-29T23:06:18Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![brianguenter](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brianguenter/32/29519_2.png) [@brianguenter](https://discourse.julialang.org/u/brianguenter)\
**Post date:** [October 29, 2024, 4:48am UTC](https://discourse.julialang.org/t/error-using-testitems-in-vscode/120699/21 "2024-10-29T04:48:26Z")

</div>

I found the problem. I had a separate Project.toml file in the test directory so the test dependencies would be separate from those of the main project. This apparently confused the VSCode test extensions. Once I removed the Project.toml file it worked fine.

---

<div class="post-metadata">

**Author:** ![rwyoung7](https://avatars.discourse-cdn.com/v4/letter/r/a3d4f5/32.png) [@rwyoung7](https://discourse.julialang.org/u/rwyoung7)\
**Post date:** [August 18, 2025, 9:41pm UTC](https://discourse.julialang.org/t/error-using-testitems-in-vscode/120699/22 "2025-08-18T21:41:47Z")

</div>

I must be doing something simple incorrectly. I have the same error.

Ubuntu 24.04.2 LTS

julia version 1.11.6

VS Code  
Version: 1.103.1  
Commit: 360a4e4fd251bfce169a4ddf857c7d25d1ad40da  
Date: 2025-08-12T16:25:40.542Z  
Electron: 37.2.3  
ElectronBuildId: 12035395  
Chromium: 138.0.7204.100  
Node.js: 22.17.0  
V8: 13.8.500258-electron.0  
OS: Linux x64 6.8.0-71-generic

Julia VS Code Extension  
Version: 1.149.2

module MyPackage

using TestItems

export foo

foo(x) = x

@testitem “First tests” begin  
x = foo(“bar”)

```
@test length(x)==3
@test x == "bar"

```

end

end

An error occurred attempting to run tests: Error: Pending response rejected since connection got disposed

[Previous page](https://discourse.julialang.org/t/error-using-testitems-in-vscode/120699.md?page=1)
