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

Using gt-posframe-*-render results in error "dead frame" #77

Open
liar666 opened this issue Jul 5, 2024 · 2 comments
Open

Using gt-posframe-*-render results in error "dead frame" #77

liar666 opened this issue Jul 5, 2024 · 2 comments

Comments

@liar666
Copy link

liar666 commented Jul 5, 2024

Hi,

With the "old" go-translate, I had configured the rendered to show the results in a new buffer (which is now gt-buffer-render), but I had the same problem as #66 , where the buffer had sometimes switched to read-only (maybe due to the use of DoomEmacs in client/server mode?).

With the "new" version, I decided to switch to gt-posframe-*-render. With the pop version, I couldn't copy the translation back to my working buffer, as moving the mouse or clicking inside the pop buffer made it disappear. I couldn't also switch the languages with t as it also made the pop buffer disappear. So I switched to the pin version. However, I often get the following error:

[output init error] (wrong-type-argument frame-live-p #<dead frame  0x5c6dcff9c5f0>)

I've verified, I quit the pop-up frame correctly (according to included pop-up doc), by hitting q. I'm not sure if the problem is also due to the use of DoomEmacs in client/server mode?

But in the end I cannot manage to find a configuration that works for gt-do-translate, which is very painful because the extension is VERY useful !

@lorniu
Copy link
Owner

lorniu commented Jul 8, 2024

Strange. Can you provide more informations about your enviroment and your config?

@liar666
Copy link
Author

liar666 commented Dec 10, 2024

Sorry for the delay.

Happened to me again today.

$ doom info
generated  Dec 10, 2024 09:50:18
system     Ubuntu 24.10 Linux 6.11.0-9-generic x86_64
emacs      29.4 EMACSDIR=~/.emacs.d/ EMACS=/usr/bin/emacs
doom       3.0.0-pre PROFILE=_default@0 HEAD -> master ec645b83 2024-12-01 15:48:52 -0500 ~/.doom.d/
shell      /bin/bash
features   ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG
	   RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB
traits     batch server-running envvar-file custom-file
modules    :config use-package :app calendar :checkers grammar (spell +aspell +flyspell +enchant +everywhere +hunspell) syntax :completion (company +childframe) (vertico +icons) :config
	   literate (default +bindings) :editor file-templates fold multiple-cursors snippets :emacs (dired +icons) electric vc :lang (cc +lsp) csharp (dart +flutter +lsp) emacs-lisp (ess
	   +lsp) (go +lsp) (graphql +lsp) (java +eclim +lsp) (javascript +eslint +lsp) (julia +lsp) (json +lsp) (latex +latexmk +lsp +fold) (markdown +grip) ocaml (org +brain +dragndrop
	   +gnuplot +hugo +jupyter +pandoc +pomodoro +present +lsp +pretty +roam2) (php +lsp) plantuml (python +pyenv +lsp +pyright) qt rest rst (rust +lsp) (scala +lsp) sh web (yaml +lsp)
	   :term vterm :tools ansible biblio (debugger +lsp) (docker +lsp) ein (eval +overlay) (lookup +dictionary +docsets +offline) (lsp +peek) (magit +forge) make pdf tmux :ui doom
	   doom-dashboard (emoji +unicode) hl-todo indent-guides ligatures minimap modeline nav-flash neotree ophints (popup +all +defaults) tabs (treemacs +lsp) unicode (vc-gutter +pretty)
	   vi-tilde-fringe (window-select +numbers) workspaces
packages   (academic-phrases) (autoinsert) (ediff) (forge) (gscholar-bibtex) (htmlize) (keycast) (pdf-tools) (shift-number) (svg-tag-mode) (w3m) (insert-shebang) (sqlite3) (go-translate)
	   (flymake-languagetool :recipe (:host github :repo emacs-languagetool/flymake-languagetool)) (edraw-org :recipe (:host github :repo misohena/el-easydraw)) (org-bullets) (tabnine)
	   (company-tabnine) (async-await) (websocket) (aichat :pin 19f95af7707623ba8c669705b1d1f854c92330b9 :recipe (:host github :repo xhcoding/emacs-aichat)) (read-aloud) (whisper
	   :recipe (:host github :repo natrys/whisper.el)) (org-ai) (starhugger) (copilot :recipe (:host github :repo zerolfx/copilot.el :files (*.el dist))) (ellama) (gptel) (edwina)
	   (odf-mode) (edit-server) (typst-mode :recipe (:host github :repo Ziqi-Yang/typst-mode.el)) (emacsql)
elpa       tuareg caml

I'm working with emacs client/sever... Yesterday I used gt-do-translate, in a popup, yanked the results, then escaped the popup. Then I closed the emacs client. Today I re-opened emacs (client) and called gt-do-translate and got the error

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

2 participants