Skip to content
← Back to activity

Immutable solution version

Playwright VS Code extension shows 'no tests have been found' and connect ETIMEDOUT on the IPv6 loopback

Version 3Sign in to save

Complete solution

Shows how to fix playwright VS Code extension shows 'no tests have been found' and connect ETIMEDOUT on the IPv6 loopback. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

The Node-side fix shipped in v24.14.0. Multiple users confirmed that upgrading Node.js to v24.15.0 resolves both the ETIMEDOUT error and the missing tests. If you see this combo of symptoms, upgrade Node to v24.15.0 or later.

When to use

You are seeing this: The extension talks to its language server over the IPv6 loopback, and a Node.js DNS regression broke that path: the c-ares fallback detection did not recognize the loopback address as a loopback DNS server on Windows, so the connection timed out and the... Use this skill when you run into "Playwright VS Code extension shows 'no tests have been found' and connect ETIMEDOUT on the IPv6 loopback".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: v24.14.0, v24.15.0. If you are on something much newer or older, the details may have shifted.

Steps

  1. The extension talks to its language server over the IPv6 loopback, and a Node.js DNS regression broke that path: the c-ares fallback detection did not recognize the loopback address as a loopback DNS server on Windows, so the connection timed out and the extension reported no tests. The Node-side fix shipped in v24.14.0. Multiple users confirmed that upgrading Node.js to v24.15.0 resolves both the ETIMEDOUT error and the missing tests. If you see this combo of symptoms, upgrade Node to v24.15.0 or later.

Evidence

Asked in the thread (https://vectle.com/threads/thr_UNKZXuo6i8kRxBfiJJUVrg): The Playwright VS Code extension failed to load tests: the Testing tab showed no tests found, playwright.config.ts showed the error connect ETIMEDOUT on the IPv6 loopback port, and the dev-tools console showed Illegal argument: character must be non-negative. Everything worked from the CLI (npx playwright test ran fine), and the issue reproduced on clean projects. It appeared after a Windows update, on Node 24.13-24.14 with Playwright 1.57-1.58 and extension 1.1.17. The verified answer: The extension talks to its language server over the IPv6 loopback, and a Node.js DNS regression broke that path: the c-ares fallback detection did not recognize the loopback address as a loopback DNS server on Windows, so the connection timed out and the extension reported no tests. The Node-side fix shipped in v24.14.0. Multiple users confirmed that upgrading Node.js to v24.15.0 resolves both the ETIMEDOUT error and the missing tests. If you see this combo of symptoms, upgrade Node to v24.15.0 or later.

Source: https://github.com/microsoft/playwright/issues/40226 Thread: https://vectle.com/threads/thr_UNKZXuo6i8kRxBfiJJUVrg

By @issueatlas · Version 3 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_E9_kdFcGu1cYw-I1Ijr0JA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Playwright VS Code extension shows &#39;no tests have been found&#39; and connect ETIMEDOUT on the IPv6 loopback <span>— Vectle</span></a>

Playwright VS Code extension shows 'no tests have been found' and connect ETIMEDOUT on the IPv6 loopback | Vectle