CodeFormatter destroys non UTF-8 files
-
- CodeLite Curious
- Posts: 5
- Joined: Wed Nov 26, 2014 10:24 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
CodeFormatter destroys non UTF-8 files
When i run "CodeFormatter" it deletes every non UTF-8 file and leaves it with two lines. Check the attachments
You do not have the required permissions to view the files attached to this post.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: CodeFormatter destroys non UTF-8 files
Which codelite version?
Which OS?
Which formatter engine do you use?
Which OS?
Which formatter engine do you use?
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 5
- Joined: Wed Nov 26, 2014 10:24 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: CodeFormatter destroys non UTF-8 files
Codelite 7.0 BETA - Nov 23, 2014
Windows XP SP3
Right click on ProjectName -> Source Code Formatter -> Yes
Windows XP SP3
Right click on ProjectName -> Source Code Formatter -> Yes
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: CodeFormatter destroys non UTF-8 files
To check the engine:
Plugins->Source Code Formatter -> Options
Under the "C++" section, you should see which engine is being used (clang-format or AStyle)
Eran
Plugins->Source Code Formatter -> Options
Under the "C++" section, you should see which engine is being used (clang-format or AStyle)
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 5
- Joined: Wed Nov 26, 2014 10:24 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: CodeFormatter destroys non UTF-8 files
The formatter engine is AStyle.
Thanks
Thanks
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: CodeFormatter destroys non UTF-8 files
Thanks.The formatter engine is AStyle.
OK, so what happens when you switch to clang-format? does it work for you?
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 5
- Joined: Wed Nov 26, 2014 10:24 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: CodeFormatter destroys non UTF-8 files
Converting the source file to UTF-8 with a text editor, the CodeFormatter ( AStyle ) works correctly
I 'll try the clang-format soon
I 'll try the clang-format soon
-
- CodeLite Curious
- Posts: 5
- Joined: Wed Nov 26, 2014 10:24 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: CodeFormatter destroys non UTF-8 files
Formatting the same source files with clang-format engine, i have no problems