-
Notifications
You must be signed in to change notification settings - Fork 12
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
Not respecting and format in the eclipse configurations. #348
Comments
The formatting in the new LSP based editor relies on a Here is a little documentation how its works. The format info comes from the clangd language server. The formatting defined in the |
@ghentschke thanks for the quick response can you please also let me know why the color formatting is not working in the eclipse as well? |
it's still doesn't respect line length wrapping. |
Can you please post your .clang-format configuration? |
|
As I can see from your settings is that the lines are wrapped after 200 characters ( |
You can check if your .clang-format is valid via the C:\temp>clang-format --dry-run functions_file.c
C:/temp/.clang-format:43:1: error: unknown key 'AllowShortCaseExpressionOnASingleLine'
AllowShortCaseExpressionOnASingleLine: true
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error reading C:/temp/.clang-format: Invalid argument |
yea, even my minimal file had issue, but that's something eclipse should warn me about, because that means you can easily work without formatting and spend hours trying to figure out why if you don't know how it works, i mean from my POV if you can trigger an event of on save, or when the file is first created to do this validation, that would be something. |
You're right I`ll try to fix this soon. When there's more that bothers you, feel free to open new issues. |
i'll hold you to that, as espressif-ide becomes my main tool for ESP dev, i'll probably encounter a lot one issue i haven't gotten to the buttom of it, is this super annoying delay and dispcrepency between code editor and problems view when making comments |
I think this post meant to be here: #392 (comment) |
before i forget clanf-format is a yaml file so i would think it should also use a yaml editor and validator at least. |
Which ever format I try to select from the preferences in eclipse
C/C++ -> Code Style -> Formatter
I see that the editor is always going back to some default formatter like K&R.
It would be helpful if you can provide someway to make that work. Maybe I am missing something. Also let me know if there are some changes required in the implementation or point me to the particular file you are using for the formatting and I can see if in our integration we can change it in a way to utalize the code style from eclipse
The text was updated successfully, but these errors were encountered: