-
Notifications
You must be signed in to change notification settings - Fork 134
Description
Description:
The Gemini Code Assist (GCA) extension is experiencing a fatal failure (panic) that crashes the Language Server Protocol (LSP) server and causes the user to be signed out/disconnected repeatedly, only when typing code in CSS files within the workspace.
The Chat and Agent Mode functionalities remain fully functional, but the Autocomplete (Inline Completion) feature in CSS triggers the server crash.
The user's workspace resides on a Google Drive directory (e.g., G:\Meu Drive...), and the GCA server shows widespread failure when indexing the files (Error: tokenizeFunc: context canceled). The fatal crash occurs during code analysis.
Repro step:
Open VS Code with the project folder located on Google Drive (e.g., G:\Meu Drive\Programação\projetos PHP\ARGUS).
Ensure the Gemini Code Assist is authenticated (Confirmed AI Pro subscription is recognized).
Open the file dsPesquisa.css (or any complex CSS file).
Type a character in the file (triggering autocomplete).
Result: The GCA server immediately crashes (Server crashed 5 times in the last 3 minutes) and the client disconnects (Error: Cannot call write after a stream was destroyed).
Critical Error Logs
(Paste these lines to show the fatal panic, indexing failure, and plugin version):
I1205 09:45:23.251585 17984 serve.go:43] cloudcode_cli.exe (Nov 20 2025 05:18:18 -0300, cl:834626974 baseline:833153422)
[...]
I1205 09:45:23.254753 17984 conn_opt.go:96] jsonrpc2: <-- result #0: initialize: {"capabilities":{...},"serverInfo":{"name":"Gemini","version":"2.59.0"}}
[...]
I1205 09:45:22.593181 18152 completion.go:328] Inline suggestion requested (request #12): {TextDocumentPositionParams:{TextDocument:{URI:file:///g:/Meu%20Drive/Programa%C3%A7%C3%A3o/projetos%20PHP/ARGUS/app/vendor/dsPesquisa/dsPesquisa.css} Position:{Line:119 Character:11}} [...]
runtime: running GoogleExitFunction
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x7ff6d8af0366]
[...]
[Error - 09:45:22] Server process exited with code 2.
[Error - 09:45:22] Client Gemini Code Assist: connection to server is erroring.
Cannot call write after a stream was destroyed
[Info - 09:45:22] Connection to server got closed.
Server will restart.
[...]
E1205 09:45:24.012503 17984 workspace_context.go:179] error indexing fragment for file g:\Meu Drive\Programação\projetos PHP\ARGUS\app\vendor\dsPesquisa\dsPesquisa.css: tokenizeFunc: context canceled
Environment:
Version information
Cloud Code Extension version: 2.59.0
VSCode version: 1.106.3
OS: Windows (WINDOWS_AMD64)
Cloud SDK: N/A
Skaffold: N/A
Kubectl: N/A