Skip to Main Content

SQL Developer

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Blank lines are doubled when formatting in Windows

MarkusHohlochApr 14 2020 — edited Apr 16 2020

Hi,

Philipp Salvisberg and I found an issue with the formatter in SQL Developer v19.4. After formatting the code, blank lines will be doubled.

Start:

select * from dual;

-- test comment
select * from dual;

First format result under macOS. We can repeat formatting it. Result stays the same.

SELECT * 
  FROM dual;

-- test comment
SELECT *
  FROM dual;

First format result under Windows:

SELECT * 
  FROM dual;


-- test comment
SELECT *
  FROM dual;

Second format result under Windows:

SELECT * 
  FROM dual;




-- test comment
SELECT *
  FROM dual;

We guess the problem is the preference Line breaks -> After statements -> Preserve original.

Obviously Preserve original does not work on any platform. The change to Single break seams to work.

But in this case on (Philipps) macOS the number of lines reduces with each formatting call until there is only one empty line left. We think this is a bug of the formatter Java class and not of the Arbori program.

We checked the default settings. For Line breaks -> After statements -> Double break. This works differently under Windows and macOS as well.

Thank you and best regards

Markus

Comments

1004080
This is quite a common error with OLD DB. [FIXED: OCI-22053: overflow error|http://www.itjungles.com/other/fixed-oci-22053-overflow-error].

http://www.itjungles.com/other/fixed-oci-22053-overflow-error

Edited by: 1001077 on Apr 18, 2013 10:39 PM
1 - 1

Post Details

Added on Apr 14 2020
2 comments
288 views