# Get \`ERROR: julia: -t,--threads=\<n\>\[,auto|\<m\>\]; n must be an integer \>= 1\` when running test

**URL:** <https://discourse.julialang.org/t/get-error-julia-t-threads-n-auto-m-n-must-be-an-integer-1-when-running-test/128131>\
**Category:** General Usage\
**Created:** [April 16, 2025, 4:58pm UTC](https://discourse.julialang.org/t/get-error-julia-t-threads-n-auto-m-n-must-be-an-integer-1-when-running-test/128131 "2025-04-16T16:58:02Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [April 17, 2025, 8:13am UTC](https://discourse.julialang.org/t/get-error-julia-t-threads-n-auto-m-n-must-be-an-integer-1-when-running-test/128131/4 "2025-04-17T08:13:16Z")

</div>

> <https://github.com/julia-vscode/julia-vscode/issues/3798>
>
> I am unable to run tests from the VS Code Julia REPL after updating Julia from 1….11.4 to 1.11.5 - testing fails with:
> \`\`\`
> ERROR: julia: -t,--threads=\<n\>\[,auto|\<m\>\]; n must be an integer \>= 1
> \`\`\`
> 
> Testing from a separate Julia REPL works just fine.
> 
> This is \<strike\>likely\</strike\> due to a combination of not setting \`julia.NumThreads\` and https://github.com/JuliaLang/Pkg.jl/pull/4141
> 
> Likely solution is to not set \`JULIA\_NUM\_THREADS\` if \`julia.NumThreads\` is undefined.
> 
> Testing from the VS Code Julia REPL:
> \`\`\`
> julia\> versioninfo()
> Julia Version 1.11.5
> Commit 760b2e5b739 (2025-04-14 06:53 UTC)
> Build Info:
> Official https://julialang.org/ release
> Platform Info:
> OS: macOS (x86\_64-apple-darwin24.0.0)
> CPU: 16 × Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
> WORD\_SIZE: 64
> LLVM: libLLVM-16.0.6 (ORCJIT, skylake)
> Threads: 1 default, 0 interactive, 1 GC (on 16 virtual cores)
> Environment:
> JULIA\_EDITOR = code
> JULIA\_NUM\_THREADS = 
> JULIA\_PKG\_USE\_CLI\_GIT = true
> 
> (Example) pkg\> test
> No Changes to \`~/dev/julia/Example.jl/Project.toml\`
> No Changes to \`~/dev/julia/Example.jl/Manifest.toml\`
> Testing Example
> Status \`/private/var/folders/s1/xwq\_jtwc8xld63006s6ny0n80000gn/T/jl\_ggVXG0/Project.toml\`
> \[7876af07\] Example v0.5.5 \`~/dev/julia/Example.jl\`
> \[8dfed614\] Test v1.11.0
> Status \`/private/var/folders/s1/xwq\_jtwc8xld63006s6ny0n80000gn/T/jl\_ggVXG0/Manifest.toml\`
> \[7876af07\] Example v0.5.5 \`~/dev/julia/Example.jl\`
> \[2a0f44e3\] Base64 v1.11.0
> \[b77e0a4c\] InteractiveUtils v1.11.0
> \[56ddb016\] Logging v1.11.0
> \[d6f4376e\] Markdown v1.11.0
> \[9a3f8284\] Random v1.11.0
> \[ea8e919c\] SHA v0.7.0
> \[9e88b42a\] Serialization v1.11.0
> \[8dfed614\] Test v1.11.0
> Testing Running tests...
> ERROR: julia: -t,--threads=\<n\>\[,auto|\<m\>\]; n must be an integer \>= 1
> ERROR: Package Example errored during testing
> \`\`\`

---

_[View the full topic](https://discourse.julialang.org/t/get-error-julia-t-threads-n-auto-m-n-must-be-an-integer-1-when-running-test/128131)._
