gemini-cli - 💡(How to fix) Fix URI Link Parser fails to strip line/column numbers, resulting in FileSystemError on Windows

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

When clicking certain file links in the terminal or output panel that include line and column numbers, the editor fails to open the file. Instead, it attempts to read the file path literally, including the appended :line:column suffix, which causes a Node.js stat error on Windows because colons are invalid path characters. Error Message: Unable to read file '\vscode-app\d:\Programs\Antigravity\resources\app\out\vs\workbench\workbench.desktop.main.js:4966:40455' (Unknown (FileSystemError): Error: UNKNOWN: unknown error, stat '\vscode-app\d:\Programs\Antigravity\resources\app\out\vs\workbench\workbench.desktop.main.js:4966:40455') [error] [Window] command 'antigravity.isFileGitIgnored' not found: Error: command

Root Cause

When clicking certain file links in the terminal or output panel that include line and column numbers, the editor fails to open the file. Instead, it attempts to read the file path literally, including the appended :line:column suffix, which causes a Node.js stat error on Windows because colons are invalid path characters.

Code Example

> /about
Running Task ID: f215c437-9c7e-4c79-a5be-19dec4a99305

Task State: input-required

Model: gemini-3.1-pro-preview
# paste output here
RAW_BUFFERClick to expand / collapse

What happened?

When clicking certain file links in the terminal or output panel that include line and column numbers, the editor fails to open the file. Instead, it attempts to read the file path literally, including the appended :line:column suffix, which causes a Node.js stat error on Windows because colons are invalid path characters.

Error Message:

Unable to read file '\vscode-app\d:\Programs\Antigravity\resources\app\out\vs\workbench\workbench.desktop.main.js:4966:40455' (Unknown (FileSystemError): Error: UNKNOWN: unknown error, stat '\vscode-app\d:\Programs\Antigravity\resources\app\out\vs\workbench\workbench.desktop.main.js:4966:40455')

workbench.desktop.main.js

What did you expect to happen?

Steps to Reproduce:

Generate an output in the terminal or debug console containing an absolute Windows file path followed by line and column numbers (e.g., d:\path\to\file.js:10:5). Ctrl+Click (or Cmd+Click) the link to open the file. Observe the FileSystemError notification in the bottom right corner. Expected Behavior: The editor should parse the URI, strip the line and column numbers before querying the file system, open the underlying file,and move the cursor to the specified line/column.

Environment:

OS: Windows Editor: Antigravity

Client information

<details> <summary>Client Information</summary>

Run gemini to enter the interactive CLI, then run the /about command.

> /about
Running Task ID: f215c437-9c7e-4c79-a5be-19dec4a99305

Task State: input-required

Model: gemini-3.1-pro-preview
# paste output here
```'
[error] [Window] command 'antigravity.isFileGitIgnored' not found: Error: command
antigravity.isFileGitIgnored' not found
    at J$t.n (vscode-file://vscode-app/d:/Programs/Antigravity/resources/app/out/vs/workbench/workbench.desktop.main.js:5811:5761)
    at J$t.executeCommand (vscode-file://vscode-app/d:/Programs/Antigravity/resources/app/out/vs/workbench/workbench.desktop.main.js:5811:5693)
    at async XUt.shouldShowInUri (vscode-file://vscode-app/d:/Programs/Antigravity/resources/app/out/vs/workbench/workbench.desktop.main.js:5009:11998)
    at async JTt.value (vscode-file://vscode-app/d:/Programs/Antigravity/resources/app/out/vs/workbench/workbench.desktop.main.js:4966:40455)

</details>

### Login information

google account

### Anything else we need to know?

_No response_

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

gemini-cli - 💡(How to fix) Fix URI Link Parser fails to strip line/column numbers, resulting in FileSystemError on Windows