ChatGPT.nvim icon indicating copy to clipboard operation
ChatGPT.nvim copied to clipboard

CompleteCode and add_tests

Open sfrique opened this issue 2 years ago • 2 comments

Hello

I am starting you use this plugin, but whenever i try to use ChatGPTRun add_tests it only shows around 40 lines and also it seems to be cut

This is some example of the last part of suggestion:

	// Serve the request using the app
	app.ServeHTTP(res, req)
	// Check that the response status code is 200 OK
	if res.Code != http.StatusOK {
		t.Errorf("Expected status code

CompleteCode just breaks for me.. sometimes it suggest a few things, but mostly blank lines and such

Thanks, really nice plugin

sfrique avatar Jun 15 '23 07:06 sfrique

I'm seeing this issue as well, it only shows a snippet of the test code, then cuts off.

dhollinger avatar Jun 19 '23 14:06 dhollinger

Did some digging and it looks like ChatGPT will pause and wait for input to tell it to continue generating the code. That is probably what we're running into.

dhollinger avatar Jun 19 '23 14:06 dhollinger