julia-snail icon indicating copy to clipboard operation
julia-snail copied to clipboard

I don't think put evaluate result above cursor is a good idea

Open kurt-steiner opened this issue 3 years ago • 6 comments

图片

when the result is too large, the frame can't hold it and it can just ignore lots of content, so can you give some adjustment ?

kurt-steiner avatar May 22 '22 08:05 kurt-steiner

Try setting julia-snail-popup-display-eval-results to :change. It restricts the popup to a single line.

If that's not what you want, what kind of adjustment do you have in mind? User configurable maximum width and height for the popup? Or something more sophisticated?

gcv avatar May 22 '22 12:05 gcv

I have set that, and found something wrong

error in process filter: julia-snail--server-response-filter: No catch for tag: julia-snail--server-filter-error, (args-out-of-range 229 229)

this is the error i meet

kurt-steiner avatar Jun 04 '22 05:06 kurt-steiner

by the way, even I don' set the julia-snail-popup-display-eval-results, the result is the same
and why there are two frame ? I think it should disappear when press any key
图片

kurt-steiner avatar Jun 04 '22 05:06 kurt-steiner

I'm not sure what is going on. Maybe you have some stale .elc files floating around? Please uninstall Snail fully (make sure its directory is gone), restart Emacs, and reinstall Snail. Also, please post your exact configuration for Snail and julia-mode. Also, what version of Emacs are you on?

gcv avatar Jun 04 '22 12:06 gcv

I think I found the problem, this is the code after modified

(use-package julia-mode
  :hook (julia-mode . julia-snail-mode)
  :config
  (setq julia-repl-switches nil
	julia-snail-extra-args nil
	julia-indent-offset 2
	;; julia-snail-popup-display-eval-results :change
	julia-snail-executable "/home/steiner/.local/bin/julia")
  (setenv "JULIA_PKG_SERVER" "https://mirrors.tuna.tsinghua.edu.cn/julia")
  (setq-default julia-snail-extra-args "--sysimage /home/steiner/.julia/images/julia-dev.so")
  :commands julia-snail-mode)

just comment the julia-snail-popup-display-eval-results is ok

kurt-steiner avatar Jun 04 '22 13:06 kurt-steiner

Maybe your session ended up in a bad state? The following code will clean it up:

(cl-loop for popup in julia-snail--popups do (popup-delete popup))

gcv avatar Jun 04 '22 20:06 gcv

Please reopen if I need to look into this again.

gcv avatar Sep 23 '22 14:09 gcv