Skip to content
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

[Code Formatter] duplicate empty line #23

Closed
Sorien opened this issue Oct 14, 2015 · 4 comments
Closed

[Code Formatter] duplicate empty line #23

Sorien opened this issue Oct 14, 2015 · 4 comments

Comments

@Sorien
Copy link

Sorien commented Oct 14, 2015

it's valid language construct but not not used so much so it has very low priority

function Foo(): Boolean;
begin
  if True then
  else
    Exit;
end;

after first format

function Foo(): Boolean;
begin
  if True then

  else
    Exit;
end;

after second format (adds empty line)

function Foo(): Boolean;
begin
  if True then


  else
    Exit;
end;
@shanzhashu
Copy link
Collaborator

Investigating.

@Sorien Sorien closed this as completed Oct 16, 2015
@shanzhashu
Copy link
Collaborator

I see the email notification of your question about CnWizards debugging, but can't see it in this issue's reply, wired. So I reply here.

The Null Pointer Problem maybe caused by missing CnFormatLib(w).dlls? They're the implementation part for Ansi/Unicode. BTW, You can build CnWizards DLL and linked with debug information, the call stack will show the source line number to make easier to investigate.

CnDebug and CnDebugViewer needs Administrator privilege to record message.

@Sorien
Copy link
Author

Sorien commented Oct 22, 2015

i've deleted it 'couse few hours later i found where was a problem .. you are right missing formatlib, i'm just working on one project in delphi 2009 and formatter helps me more then you think just few format options are still missing so i decided to try to code it myself but found that it's not so easy maybe if i find a bit more of time i'll try to enhance formatter a bit

@shanzhashu
Copy link
Collaborator

OK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants