chatgpt-shell icon indicating copy to clipboard operation
chatgpt-shell copied to clipboard

(error Window system frame should be used)

Open genworks opened this issue 1 year ago • 5 comments

Hi,

Is this meant not to be used in terminal-mode emacs? I'm getting the error in the subject after the response comes from a prompt submittal..

Thanks

Dave

genworks avatar Dec 31 '24 00:12 genworks

Ah no. That's a bug. Can you enable debug on error and post the trace please?

xenodium avatar Dec 31 '24 00:12 xenodium

Thanks for the response!

Please see the attached images. In each case, I submitted the prompt once before & once after the toggle-debug-on-error (as seen in the *Messages* buffer in attached images). The debug toggle does not seem to be having any effect, unless I need to be looking in a different buffer? (just did C-x C-b and don't see any likely candidates).

image

image

genworks avatar Dec 31 '24 22:12 genworks

Hi, I'm still getting this error, but it seems benign in most cases, i.e. i can submit more prompts and it works. It just noises up the transcript.

genworks avatar Jan 03 '25 19:01 genworks

Thanks for reporting back. I'd like to fix it anyhow, as polluting the transcript would influence LLM responses.

xenodium avatar Jan 03 '25 22:01 xenodium

Looks like mapconcat params changed in Emacs 29 https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS?h=emacs-29 My guess if you're running no Emacs 28 or older? I hope https://github.com/xenodium/chatgpt-shell/commit/32f5e9099f2aa9ee3bd3ebfd36efa422f73132a7 fixes it for you. Can you try v2.11.5?

xenodium avatar Jan 04 '25 16:01 xenodium