Code block not displaying properly when asked to show the whole code after applying the suggested changes

For some reason, when asking ChatGPT (after analyzing the files I’ve uploaded) to provide the whole code with the suggested changes applied it just displays an empty block. Though asking what to add or what suggested changes should be added does display snippets of codes. I’ll try to do this again on a new chat to see if there’s any difference.

2 Likes

Welcome to the forum!

Thanks for reporting.

I am wondering if the generated code exceeded the model context window and this is how it responded. Yes I would expect an error message for such but then that is the fun of beta software.

Don’t forget there is a retry option, that often works for me in many such cases.

2 Likes

Thanks for the welcome and replying!

Supposedly, the generated code that I was asking for wasn’t really long. It was only almost about 100 lines. I didn’t have this problem before since I’ve received numerous generated codes that are longer. Also, the retry option isn’t present for some reason.

What does clicking on </> Get Pdl Updated show?

I am thinking the code might be in there. :thinking:

Also consider using F12 to inspect the raw HTML. Sometime that gives a hint to what happend.

1 Like

For this chat session, it might not worked my suggestion.

Try to change on Settings the toggle of Always show code when using data analyst as ON. Then start a new chat window and try to write your code again.

In that mode, it is supposed to display codes when it writes.

1 Like

Clicking on ‘</> Get Pdl Updated’ literally does nothing but minimize the empty code block, tried to click on it and see if it copied something and tried to paste it on a notepad and there’s a whole lot of nothing.

1 Like

It was already on by default when I first started, any other troubleshooting steps I should do?

Another idea is to archive the conversation and see if the process captures the unseen code. I say unseen instead of missing because post often note that they at times do find the code or such it just takes a trick or unknown action to get it to work.

Tried archiving and unarchiving the conversation, nothing changed.
I also forgot to show you the outputs from console command, see image below.

UPDATE: So apparently, if I prompt messages like this (regardless if the chat was old/new):

“How would the entire code of get_pdl.php look like after applying the suggested changes?”

1 Like