-
Notifications
You must be signed in to change notification settings - Fork 35
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
Feature request: Restart julia process in vterm #110
Comments
Interesting, my setup is almost the same as yours, but I cannot reproduce the problem. Whenever I exit Julia, the REPL buffer disappears and calling |
Same issue as jlapeyre here. Emacs 27.2, Julia 1.7.1, julia-repl 20211230.814. When I exit Julia, the REPL does not disappear and invoking |
Can you try to reproduce it with emacs configuration below? Put the following to ;;; Straight bootstrap
(defvar bootstrap-version)
(let ((bootstrap-file
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
(bootstrap-version 5))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
(setq package-enable-at-startup nil)
;; Use package setup
(setq straight-use-package-by-default t)
(straight-use-package 'use-package)
;; Package initialization
(use-package julia-mode)
(use-package julia-repl
:commands julia-repl julia-repl-mode
:config (progn
(julia-repl-set-terminal-backend 'vterm)
(setq vterm-max-scrollback 100000)
(load-library "julia-mode"))) and run emacs as: emacs -Q -l myinit.el or, if you don't want mkdir tmp
HOME=$PWD/tmp emacs -Q -l myinit.el On my system, julia-repl works as expected with the above config. I guess that something else in your Emacs config can cause the problems. |
thanks for the detailed instructions wentasah. I think your hypothesis is right. using the minimal configuration, when I |
In case it helps, I was experiencing the same issue. I had set |
I am using vterm. I'd like to restart the Julia process and at the same time, keep the contents of the buffer.
There may be a way around this, but what I am trying now is.
reproduce undesirable behavior
This errors with
"You cannot change major mode in vterm buffers"
I'd like to restart the Julia process and at the same time, keep the contents of the buffer.
configuration
GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.27, cairo version 1.17.4) of 2021-03-26
julia-repl: 20210408.639
julia: v"1.7.0-DEV.961
julia-repl loaded like this
EDIT: As a workaround, I change the argument of
vterm-shell
to the name of my shell, rather than julia. This requires only that I type "julia" to start julia in the vterm.julia-repl/julia-repl.el
Line 214 in 79e686e
The text was updated successfully, but these errors were encountered: