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

Error during redisplay: (jit-lock-function 8) signaled (invalid-regexp "Unmatched ) or \\)") #47

Closed
taqtiqa-mark opened this issue Nov 12, 2018 · 3 comments · Fixed by #54

Comments

@taqtiqa-mark
Copy link

taqtiqa-mark commented Nov 12, 2018

Thank you for all the time and effort you have put into making this package available.
Unfortunately I've hit an issue with launching the Julia REPL.

Possibly related to issue #24

Details follow.

  1. the Emacs version (M-x emacs-version [RET], will also appear in the buffer *Messages*),

GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2018-05-29

  1. the Julia version (VERSION)

v1.0.2

  1. the version of julia-repl (something like “latest master” is fine).

This version information is quite obscure to discover - hints or tips appreciated

  1. self-contained steps to replicate the issue.

SPC-m-r

The logo scrolls up until the following prompt is at the top of the buffer displayed:

julia> 
 sleep\ 604800\ \&\ sleep\=\$\!\;\ trap\ \"kill\ \$sleep\;\ exit\ 0\"\ USR1\;\ trap\ \"kill\ \$sleep\;\ exit\ 1\"\ USR2\;\ wait\ \$sleep\'
 sleep\ 604800\ \&\ sleep\=\$\!\;\ trap\ \"kill\ \$sleep\;\ exit\ 0\"\ USR1\;\ trap\ \"kill\ \$sleep\;\ exit\ 1\"\ USR2\;\ wait\ \$sleep\'
 sleep\ 604800\ \&\ sleep\=\$\!\;\ trap\ \"kill\ \$sleep\;\ exit\ 0\"\ USR1\;\ trap\ \"kill\ \$sleep\;\ exit\ 1\"\ USR2\;\ wait\ \$sleep\
 sleep\ 604800\ \&\ sleep\=\$\!\;\ trap\ \"kill\ \$sleep\;\ exit\ 0\"\ USR1\;\ trap\ \"kill\ \$sleep\;\ exit\ 1\"\ USR2\;\ wait\ \$sleep
 sleep\ 604800\ \&\ sleep\=\$\!\;\ trap\ \"kill\ \$sleep\;\ exit\ 0\"\ USR1\;\ trap\ \"kill\ \$sleep\;\ exit\ 1\"\ USR2\;\ wait\ \$slee
 sleep\ 604800\ \&\ sleep\=\$\!\;\ trap\ \"kill\ \$sleep\;\ exit\ 0\"\ USR1\;\ trap\ \"kill\ \$sleep\;\ exit\ 1\"\ USR2\;\ wait\ \$sle
 sleep\ 604800\ \&\ sleep\=\$\!\;\ trap\ \"kill\ \$sleep\;\ exit\ 0\"\ USR1\;\ trap\ \"kill\ \$sleep\;\ exit\ 1\"\ USR2\;\ wait\ \$sl

etc.
etc.

In Messages buffer:

Error during redisplay: (jit-lock-function 8) signaled (invalid-regexp "Unmatched ) or \\)")
Error during redisplay: (jit-lock-function 1) signaled (invalid-regexp "Unmatched ) or \\)")
Error during redisplay: (jit-lock-function 229) signaled (invalid-regexp "Unmatched ) or \\)")
Error during redisplay: (jit-lock-function 43) signaled (invalid-regexp "Unmatched ) or \\)")
Error during redisplay: (jit-lock-function 1) signaled (invalid-regexp "Unmatched ) or \\)")
Error during redisplay: (jit-lock-function 8) signaled (invalid-regexp "Unmatched ) or \\)") [2 times]
@taqtiqa-mark
Copy link
Author

taqtiqa-mark commented Nov 25, 2018

Progress, but have not yet isolated which line caused the error...

In my .spacemacs I had:

(add-hook 'shell-mode-hook  'with-editor-export-editor)
(add-hook 'term-exec-hook   'with-editor-export-editor)
(add-hook 'eshell-mode-hook 'with-editor-export-editor)

Commenting out (;;) all three allowed the REPL to start. I don't have history beyond the last command but at least things now progress.

Will update when I've identified one line that can cause the behavior described.

@tpapp
Copy link
Owner

tpapp commented Nov 25, 2018

Thanks for the update. I don't know how to fix this but would be happy to include a fix if you discover one.

@taqtiqa-mark
Copy link
Author

The setting referred to previously arise in the context of using magit and the with-editor package.
Some details here.
https://magit.vc/manual/with-editor.html

Still not clear what it is about the $EDITOR setting that causes the behavior observed.

dellison added a commit to dellison/julia-repl that referenced this issue Jan 23, 2019
@tpapp tpapp closed this as completed in #54 Jan 24, 2019
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

Successfully merging a pull request may close this issue.

2 participants