Comments (7)
Ok, thank you very much for your quick response. I can ask the SQL Developer Team if they can take a look at it.
from plsql-formatter-settings.
Thanks @markushohloch for reporting this issue. Could you please provide a little example? Thank you.
from plsql-formatter-settings.
Ok, I can reproduce it.
select * from dual;
-- test comment
select * from dual;
First format result under macOS. I 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;
I guess the problem is the preference Line breaks
-> After statements
-> Preserve original
.
Obviously Preserve original
does not work on any platform. I tried to change it to Single break
. This seams to work.
However, the behavior is still strange. This time on macOS where the number of lines is reduced by every formatter call until it's just one empty line. I consider this a bug of the formatter Java class and not of the Arbori program. So we have to inform the SQL Developer team to fix that.
from plsql-formatter-settings.
I checked with default settings. For Line breaks
-> After statements
-> Double break
. This works differently under Windows and macOS as well.
Adding "spaces" on empty lines changes the behavior as well. Really strange.
Using Single break
or Double break
seems to be the only feasible workaround for the time being.
from plsql-formatter-settings.
Yes, please. Could you also post the link here? Thanks a lot.
from plsql-formatter-settings.
You're welcome. https://twitter.com/MarkusHohloch/status/1250110284032806919
from plsql-formatter-settings.
https://community.oracle.com/message/15597056#15597056
from plsql-formatter-settings.
Related Issues (20)
- Wrong indentation of comment before first when keyword in case expression
- Git pre-commit hook: Warning on empty staging area: Bypassing formatter due to partial commit.
- Update to GraalVM 22.2.0
- Wrong default file encoding on Windows HOT 10
- Do not suppress errors in SQL code blocks within Markdown files HOT 2
- Stop of SQL code blocks in Markdown files is identified wrongly HOT 2
- Building native image on Windows 11 - mvn failure HOT 17
- Line breaks after SELECT but not after FROM and WHERE HOT 8
- Formating "join - using" without linebreak HOT 8
- Remove quoted identifiers
- Update settings to make them compatible with SQLcl 22.3.0
- script format.js --register in SQLcl returns !ScriptCommand.1!@ > HOT 2
- bug when using format.js with a single file HOT 5
- formatting large files with repetitive statements, i.e. insert HOT 3
- noformat not working HOT 6
- Superb Script HOT 2
- Package constant formatting HOT 1
- Function header formatting: return deterministic HOT 1
- Support SQLDev 23.1.0 HOT 1
- Add - Formatierung "CASE WHEN" in SELECT statemen HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plsql-formatter-settings.