Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[error] TypeError: Cannot read properties of undefined (reading '0') #43

Open
belamy opened this issue Aug 10, 2023 · 0 comments
Open

Comments

@belamy
Copy link

belamy commented Aug 10, 2023

Hi,

I'm using Visual Studio Code 1.80.2 with ChatGPT v4.1.0.

I entered my OpenAI API key and when I select small block of code, ex.:
for (int i = 0; i < (int)str.length() ; i++)
{
if ((str[i] < '0') || (str[i] > '9')) return false;
}

and select
"ChatGPT: Ask to explain code" from Palette

I get new empty window and error at Extension Host Log:

2023-08-10 12:19:02.272 [error] TypeError: Cannot read properties of undefined (reading '0')
at IncomingMessage. (/Users/user/.vscode/extensions/kiranshah.chatgpt-helper-4.1.0/dist/extension.js:1:986)
at IncomingMessage.emit (node:events:513:28)
at IncomingMessage.emit (node:domain:489:12)
at Readable.read (node:internal/streams/readable:527:10)
at flow (node:internal/streams/readable:1011:34)
at resume_ (node:internal/streams/readable:992:3)
at process.processTicksAndRejections (node:internal/process/task_queues:83:21)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant