-
Notifications
You must be signed in to change notification settings - Fork 25
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
formatter configuration issue? #141
Comments
Are you using Julia 1.10? I managed to reproduce the problem once, but not again. It seems related to initialization and precompilation somehow. Try doing something like I'm having a hard time figuring out how I got this bug to happen because now that the latest version of the JuliaFormatter is installed in my environment, it started working. |
Yes, I'm using Julia 1.10. I just tried what you said, and it resolved the issue. I didn't appear to precompile, but it worked. Thanks! Just so I understand, it's not necessary to import JuliaFormatter to a project normally. It's just that the package needed to loaded somewhere initially so that Julia would precompile it, and emacs would be able to call the executable. Is that right? I did test it with another REPL where I didn't issue the |
That's right. I think something happened in 1.10 with all the precompilation changes, and the way Snail loads extensions stopped working unless the dependency packages have all been precompiled. Or something like that. I'll keep this ticket open as a reminder to look into fixing this in the future. |
I cannot seem to get JuliaFormatter to work in julia-snail.
My .dir-locals.el file has the line
((julia-mode . ((julia-snail-extensions . (repl-history formatter)))))
But running
C-c j f b
on a buffer in the project givesParsing error, formatting failed
in the
*Messages*
buffer andin the corresponding REPL
In another project, I get the error
Are these bugs, or am I missing something?
The text was updated successfully, but these errors were encountered: