-
Notifications
You must be signed in to change notification settings - Fork 455
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
Formatter: "Remove blank lines in Javadoc" is being ignored. #2122
Comments
I can't reproduce this issue locally, could you attach your formatter profile? |
I couldn't upload it to github, so here's a link: |
Also ignores this formatter: eclipse-formatter.xml |
@rhystedstone could you show your settings.json (the java.format.settings.url and java.settings.url preferences)? |
Related issue: #2429 |
@snjeza My |
@rhystedstone Could you try https://github.com/snjeza/vscode-test/raw/master/java-1.6.1.vsix? |
I can confirm that this version does notify me of an invalid URL. However, my current settings do not display the notification until I ammend them to a known invalid path. |
I just tried to use a new formatter.xml file, however it did not work. Files:New formatter.xml file: Tomas's Preset My steps:
My formatter test:Add multiple lines of text to a javadoc, with a new line between each. /**
* Test something.
*
*
* Test anything.
*
*
* Test nothing.
*/
public void test(){
} If the formatter is following my preferences, all the new lines would be removed and a space placed between each line of text. /**
* Test something. Test anything. Test nothing.
*/
public void test(){
} If the formatter is not following my preferences properly, it will keep the lines of text separate, which is what happens currently. /**
* Test something.
*
*
* Test anything.
*
*
* Test nothing.
*/
public void test(){
} |
I just got it working by removing the It may be a good idea to also add a warning for an invalid value as it fails too silently. |
This issue can be closed as the original issue is 8 months old, so the formatter has had several different settings. |
You should see
in your log |
Closing as stale. |
The option "Remove blank lines in Javadoc" (
org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment
) is being ignored. The output remains the same regardless of this setting.Environment
Steps To Reproduce
org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment
to true, either in the formatter preview, or directly via the xml.Project:


Formatter Preview:
log.log
The jdt_ws log is attached - The java.trace logs returned nothing.
Current Result
Currently the lines aren't removed from the javadoc.
Expected Result
The lines should be removed from the javadoc:
The text was updated successfully, but these errors were encountered: