-
-
Notifications
You must be signed in to change notification settings - Fork 19
-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Linebreakpoints get lost when applying the formatting #24
Comments
any breakpoint who exist are removed after using this plugin. |
Yes that is a known issue. The text in the editor is replaced and the breakpoints are lost. |
I was just thinking about this the other day, IMO removing the break points is the best way to handle this. If the code is reorganized, wouldn't it be hard to guess where the break points are ? |
I had no time to have a detailed look at the available debugger API yet. If Best regards, markiewb
|
My hands are currently quite full too :) , but I will most definitely take a look at it if I get a chance. Thanks a million for this plugin however, IMO this is your most important Netbeans plugin. I created the original bugzilla request for eclipse code formatter support a few years ago but never got started with the plugin mainly because it is daunting work from my stand-point. |
If we could fix this it would be amazing. It is preventing us from using your plugin for our developers. Is there any chance it will ever get fixed? |
@derylspielman : Thank you for your interest. I have an idea to fix this, but this is tedious and I have no time. |
In the next version at least the class/method/field breakpoints will be preserved. See state of #47 |
…er is now triggered by the NetBeans actions itself, therefore every reformat trigger uses now the configured formatter, e.g. also after a code template was inserted. That means also that there is no more format on save option, this can be achieved now by NetBeans' On-Save action. So with this commit, these issues are fixed or at least improved: #24 Preserve linebreakpoints has improved (still not as perfect as with the internal NetBeans formatter but pretty close) #92 The configured formatter takes now care when a code template is inserted, so if it tells to not format a specific part this part is ignored from formatting #17 Hanlding of guarded blocks has improved by design
No description provided.
The text was updated successfully, but these errors were encountered: