-
Notifications
You must be signed in to change notification settings - Fork 85
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
Point is sometimes moved small distances #2
Comments
I was having that pointer moving out of place problem and seems like I was able to fix it by setting the (setf (alist-get 'black apheleia-formatters)
'("black" "--line-length" "78" "-")) But does seem like Black/Emacs format-conflicts can lead to these types of issues. |
I think this is unlikely to be directly related to the line length configuration. I think what you're observing is just that the diff being applied is slightly different, which happens to trigger the (somewhat nondeterministic) limitation in Apheleia's dynamic programming algorithm that is the cause of point moving. |
This is fixed now #290 is merged. |
Example:
with point represented by
@
is reformatted by Prettier to:instead of:
I suspect that this problem could be solved by tweaking the weights used in the dynamic programming algorithm.
The text was updated successfully, but these errors were encountered: