Skip to content

error when launching gemini cli from any terminal #21975

@bonbonsiregar

Description

@bonbonsiregar

What happened?

when launching gemini with gemini

i got error like this in the terminal (powershell, alacritty, warp):

Loaded cached credentials. Detected terminal background color: #272935 An unexpected critical error occurred:Error: EISDIR: illegal operation on a directory, lstat 'C:' at Module.realpathSync (node:fs:2756:25) at robustRealpath (file:///C:/Users/bagin/AppData/Roaming/npm/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/utils/paths.js:320:19) at resolveToRealPath (file:///C:/Users/bagin/AppData/Roaming/npm/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/utils/paths.js:311:12) at file:///C:/Users/bagin/AppData/Roaming/npm/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/ide/ide-connection-utils.js:35:21 at Array.map (<anonymous>) at validateWorkspacePath (file:///C:/Users/bagin/AppData/Roaming/npm/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/ide/ide-connection-utils.js:35:10) at file:///C:/Users/bagin/AppData/Roaming/npm/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/ide/ide-connection-utils.js:133:29 at Array.filter (<anonymous>) at getConnectionConfigFromFile (file:///C:/Users/bagin/AppData/Roaming/npm/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/ide/ide-connection-utils.js:129:44) at async file:///C:/Users/bagin/AppData/Roaming/npm/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/ide/ide-client.js:58:23

What did you expect to happen?

gemini launched normally

Client information

Client Information

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

> /about
0.33.0

Login information

Google Account

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/coreIssues related to User Interface, OS Support, Core Functionalityarea/platformIssues related to Build infra, Release mgmt, Testing, Eval infra, Capacity, Quota mgmtstatus/need-triageIssues that need to be triaged by the triage automation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions