-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
lsp autocorrects incorrectly #758
Comments
I don't think it's fixed in 20. This is a long standing issue related to how groups get formatted. Thanks for reporting, we'll fix it |
btw in regards to the sensible argument. it currently is sensible. it's not just cause elm does it. So does elixir, that's just how precedence is done on languages with pipes. look at this examples from the other issue a + 2
|> add_one
|> add_one what's the correct precedence here? or for this a == 2
|> foo
|> bar It seems pretty clear to me that |
Not all binary operators have the same precedence eg The precedence of pipe is moot. I don't write elixir or understand elixir docs. According to a cpp prop I like Its a choice. Personally I would choose pipe higher. Regardless, it would be helpful if precedence was explicitly documented. |
this should have been fixed in #764 please let me know if the problem persists |
What Git revision are you using?
What operating system are you using, and which version?
nixos
Describe what the problem is?
lsp autocorrect on write to incorrect code.
Sample line:
Is being "corrected" to
which (see chat about fixity) is garbage.
What should be the expected behavior?
Preferably fixity was done sensibly (I dont know why we should do the same as elm - i don't see any benefit) .
Failing that, that this is not autoformatted incorrectly.
This was a problem before in early alpha, possibly pre-alpha, and the reason i didn't use formatting for a long time.
I will try bumping to v20 to see if it remains
The text was updated successfully, but these errors were encountered: