-
Notifications
You must be signed in to change notification settings - Fork 23
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
[BUG] Code formatting erases subscripts on operators #435
Comments
Atom:Version: 1.39.0 julia-client:Version: 0.11.3 ink:Version: 0.11.6 uber-juno:Version: 0.3.0 language-julia:Version: 0.19.1 language-weave:not installedindent-detective:Version: 0.4.0 latex-completions:Version: 0.3.6 versioninfo():Julia Version 1.2.0
[c52e3926] Atom v0.11.3 |
you just type something like +\_beta(tab) than format the code. |
we internally use JuliaFormatter package, and maybe this bug is fixed within its latest releases. pkg> up and then restart julia, and do the format. |
Just updated as you suggested and same thing is still happening. It is not for all unicode, but when it is used as subscript on operators like: Atom:Version: 1.39.0 julia-client:Version: 0.11.3 ink:Version: 0.11.7 uber-juno:Version: 0.3.0 language-julia:Version: 0.19.2 language-weave:not installedindent-detective:Version: 0.4.0 latex-completions:Version: 0.3.6 versioninfo():Julia Version 1.2.0
[c52e3926] Atom v0.11.3 |
what does pkg> add JuliaFormatter
pkg> st print ? |
Just try the line below:
|
ok, I figured out what happening: This is already resolved within our current master branch, so the quick fix for you is pkg> add Atom#master
pkg> add Juno#master
pkg> add JuliaFormatter#master We may bump Atom.jl version in the near future though. |
That fixed the problem! Thanks!! |
Please search existing issues to avoid duplicates.
Details
Steps to reproduce
2.0 |>ᵦ sin
2.0 |> sin
It is a problem when you implement an operator with a subscript and it get changed when you format your code.
Thanks,
The text was updated successfully, but these errors were encountered: