You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I open an empty file in the CodeLLM-supported editor and attempt to interact with the chat (e.g., sending a simple "hi"), an error occurs. The error message indicates an invalid parameter fileContents.
Steps to Reproduce
Open the CodeLLM-supported code editor.
Create or open an empty file (no content in the file).
Type "hi" (or any input) in the CodeLLM chat interface.
Observe the error message.
Expected Behavior
The interaction with the chat should process without throwing an error, even if the file is empty.
Actual Behavior
An error message is displayed:
Error: Invalid parameter 'fileContents'. Received: '{"/path/to/empty/file.py": ""}'. File contents must be a dictionary with file names (str) as keys and file contents (str) as values.
Additional Context
The issue seems to stem from the CodeLLM extension failing to handle files with empty content. The system attempts to pass an empty string for the file contents but fails validation. A screenshot is attached for further clarification.
The text was updated successfully, but these errors were encountered:
Description
When I open an empty file in the CodeLLM-supported editor and attempt to interact with the chat (e.g., sending a simple "hi"), an error occurs. The error message indicates an invalid parameter
fileContents
.Steps to Reproduce
Expected Behavior
The interaction with the chat should process without throwing an error, even if the file is empty.
Actual Behavior
An error message is displayed:
Additional Context
The issue seems to stem from the CodeLLM extension failing to handle files with empty content. The system attempts to pass an empty string for the file contents but fails validation. A screenshot is attached for further clarification.
The text was updated successfully, but these errors were encountered: