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 1) signaled (error "prism: Infinite loop detected in ‘prism-match’. Please report this bug") #211

Closed
YueRen opened this issue May 17, 2024 · 3 comments

Comments

@YueRen
Copy link

YueRen commented May 17, 2024

Recently, I've started running into difficulties using julia-mode in combination with prism.

On my machine, prism-mode struggles with the following minimal julia file:

"""asdf
    qwer
"""
sum([1,2])

It raises the following error in the *Messages* buffer:

Error during redisplay: (jit-lock-function 1) signaled (error "prism: Infinite loop detected in ‘prism-match’ (buffer:#<buffer mwe.jl> point:2).  Please report this bug")

However, I don't think this is an error in prism-mode, as it is perfectly fine with the following multi-line comment in python (where julia-mode is inactive):

"""asdf
   qwer
"""
print("Welcome to Scaler!")
@non-Jedi
Copy link
Contributor

Hi @YueRen. Please report this to prism or provide more detail on how this is a bug in julia-mode (e.g. a stacktrace showing how julia-mode is incorrectly causing an infinite loop in prism-match). We aren't in a position to be figuring out why an external package is raising an error without more information than this.

@YueRen
Copy link
Author

YueRen commented May 26, 2024

@non-Jedi Sorry for the late reply. This indeed seems more like a bug with prism, so I will close this ticket for now. I may reopen this, in case something in julia-mode is causing the failure and I figure out what.

@YueRen YueRen closed this as completed May 26, 2024
@YueRen
Copy link
Author

YueRen commented May 28, 2024

Quick update, I was using prism-mode wrongly. In case anybody runs into the same error, here is the solution:
alphapapa/prism.el#29 (comment)

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