lorniu / go-translate

Translator on Emacs. Supports multiple engines such as Google, Bing, deepL, ChatGPT, StarDict, Youdao and so on.
GNU General Public License v3.0
274 stars 37 forks source link

When the https proxy is set, go-translate will freeze Emacs #60

Closed Eason0210 closed 5 months ago

Eason0210 commented 1 year ago

@lorniu

When I set proxy as below, and then run gts-do-translate, go-translate will freeze Emacs. Do you have any advice?

(setq url-proxy-services '(("http" . "127.0.0.1:8889")
                           ("https" . "127.0.0.1:8889")))

If I only set the http proxy, It works well.

(setq url-proxy-services '(("http" . "127.0.0.1:8889")))

My config:

(use-package go-translate
  :bind ("C-c t" . gts-do-translate)
  :custom (gts-translate-list '(("en" "zh")))
  :config
  (setq gts-default-translator
        (gts-translator
         :picker (gts-prompt-picker)
         :engines (list (gts-google-engine) (gts-bing-engine) (gts-stardict-engine))
         :render (gts-buffer-render)))
  (when (eq system-type 'windows-nt)
    (add-to-list 'process-coding-system-alist '("sdcv" utf-8-dos . chinese-iso-8bit-dos))))

Emacs 30 and Emacs 29

OS: Windows 10 and macOS

lorniu commented 6 months ago

Sorry for late. Is the problem still present?

Eason0210 commented 5 months ago

Recently, the issue is gone. May be it was fixed by Emacs upstream.