You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,12 @@
2
2
3
3
## Introduction
4
4
5
-
This repository provides formatter settings for the [coding style rules](https://trivadis.github.io/plsql-and-sql-coding-guidelines/v4.0/3-coding-style/coding-style/#rules) of the Trivadis PL/SQL & SQL Coding Guidelines.
5
+
This repository provides formatter settings for the [coding style rules](https://trivadis.github.io/plsql-and-sql-coding-guidelines/v4.3/3-coding-style/coding-style/#rules) of the Trivadis PL/SQL & SQL Coding Guidelines.
6
6
7
7
Settings are primarily provided for
8
8
9
-
-[Oracle SQLcl, Version 23.1.0](https://www.oracle.com/tools/downloads/sqlcl-downloads.html)
10
-
-[Oracle SQL Developer, Version 23.1.0](https://www.oracle.com/tools/downloads/sqldev-downloads.html)
9
+
-[Oracle SQLcl, Version 23.3.0](https://www.oracle.com/tools/downloads/sqlcl-downloads.html)
10
+
-[Oracle SQL Developer, Version 23.1.0](https://www.oracle.com/tools/downloads/sqldev-downloads.html) with patched `dbtools-common.jar`
11
11
12
12
These settings have been defined and tested with the product versions mentioned above. They might not work in other versions.
Copy file name to clipboardExpand all lines: standalone/README.md
+38-36Lines changed: 38 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ The parameters are the same as for the [SQLcl command `tvdformat`](../sqlcl/READ
31
31
32
32
A native image is a platform specific executable. It does not require a JDK at runtime. A native image uses less resources and is faster. The following images can be produced with a GraalVM JDK 17:
33
33
34
-
OS | amd64 (Intel))? | aarch64 (ARM)? |
34
+
OS | amd64 (Intel)? | aarch64 (ARM)? |
35
35
------- | :-------------: | :------------: |
36
36
macOS | yes | yes |
37
37
Linux | yes | yes |
@@ -56,44 +56,46 @@ The reason is that the underlying parser uses AWT/Swing components (for whatever
56
56
AWT/Swing components are supported on AMD/Linux platforms only by GraalVM.
57
57
As a result this build process will produce a non-working native image on most platforms.
58
58
59
-
You will see the following stacktrace similar to the following when running the resulting native image:
59
+
You will see the following stacktrace similar to the following when running the resulting native image
60
+
(based on SQLcl 23.3.0 on macOS 14.1.2 with an M-series chip):
60
61
61
62
```
62
-
at com.oracle.svm.core.jdk.NativeLibrarySupport.loadLibraryRelative(NativeLibrarySupport.java:120)
63
-
at java.base@17.0.6/java.lang.ClassLoader.loadLibrary(ClassLoader.java:50)
64
-
at java.base@17.0.6/java.lang.Runtime.loadLibrary0(Runtime.java:818)
65
-
at java.base@17.0.6/java.lang.System.loadLibrary(System.java:1989)
66
-
at java.desktop@17.0.6/java.awt.Toolkit$2.run(Toolkit.java:1388)
67
-
at java.desktop@17.0.6/java.awt.Toolkit$2.run(Toolkit.java:1386)
68
-
at java.base@17.0.6/java.security.AccessController.executePrivileged(AccessController.java:168)
69
-
at java.base@17.0.6/java.security.AccessController.doPrivileged(AccessController.java:318)
70
-
at java.desktop@17.0.6/java.awt.Toolkit.loadLibraries(Toolkit.java:1385)
71
-
at java.desktop@17.0.6/java.awt.Toolkit.initStatic(Toolkit.java:1423)
72
-
at java.desktop@17.0.6/java.awt.Toolkit.<clinit>(Toolkit.java:1397)
73
-
at java.desktop@17.0.6/java.awt.Component.<clinit>(Component.java:624)
74
-
at java.base@17.0.6/java.lang.Class.ensureInitialized(DynamicHub.java:528)
75
-
at java.base@17.0.6/java.lang.Class.ensureInitialized(DynamicHub.java:528)
76
-
at java.base@17.0.6/java.lang.Class.ensureInitialized(DynamicHub.java:528)
77
-
at java.base@17.0.6/java.lang.Class.ensureInitialized(DynamicHub.java:528)
78
-
at java.base@17.0.6/java.lang.Class.ensureInitialized(DynamicHub.java:528)
63
+
Exception in thread "main" javax.script.ScriptException: java.lang.Exception: java.lang.UnsatisfiedLinkError: no awt in java.library.path
64
+
at org.graalvm.nativeimage.builder/com.oracle.svm.core.jdk.NativeLibrarySupport.loadLibraryRelative(NativeLibrarySupport.java:136)
65
+
at java.base@17.0.9/java.lang.ClassLoader.loadLibrary(ClassLoader.java:50)
66
+
at java.base@17.0.9/java.lang.Runtime.loadLibrary0(Runtime.java:818)
67
+
at java.base@17.0.9/java.lang.System.loadLibrary(System.java:1989)
68
+
at java.desktop@17.0.9/java.awt.Toolkit$2.run(Toolkit.java:1388)
69
+
at java.desktop@17.0.9/java.awt.Toolkit$2.run(Toolkit.java:1386)
70
+
at java.base@17.0.9/java.security.AccessController.executePrivileged(AccessController.java:171)
71
+
at java.base@17.0.9/java.security.AccessController.doPrivileged(AccessController.java:318)
72
+
at java.desktop@17.0.9/java.awt.Toolkit.loadLibraries(Toolkit.java:1385)
73
+
at java.desktop@17.0.9/java.awt.Toolkit.initStatic(Toolkit.java:1423)
74
+
at java.desktop@17.0.9/java.awt.Toolkit.<clinit>(Toolkit.java:1397)
75
+
at java.desktop@17.0.9/java.awt.Component.<clinit>(Component.java:624)
76
+
at java.base@17.0.9/java.lang.Class.ensureInitialized(DynamicHub.java:579)
77
+
at java.base@17.0.9/java.lang.Class.ensureInitialized(DynamicHub.java:579)
78
+
at java.base@17.0.9/java.lang.Class.ensureInitialized(DynamicHub.java:579)
79
+
at java.base@17.0.9/java.lang.Class.ensureInitialized(DynamicHub.java:579)
80
+
at java.base@17.0.9/java.lang.Class.ensureInitialized(DynamicHub.java:579)
79
81
at oracle.dbtools.parser.Visual.<init>(Visual.java:404)
80
82
at oracle.dbtools.parser.Grammar.parseGrammarFile(Grammar.java:172)
81
83
at oracle.dbtools.parser.Grammar.parseGrammarFile(Grammar.java:152)
82
-
at oracle.dbtools.arbori.Program.getRules(Program.java:277)
83
-
at oracle.dbtools.arbori.Program.getArboriParser(Program.java:187)
84
-
at oracle.dbtools.arbori.Program.compile(Program.java:330)
85
-
at oracle.dbtools.arbori.Program.compile(Program.java:319)
86
-
at oracle.dbtools.arbori.Program.compile(Program.java:316)
87
-
at oracle.dbtools.app.XML2Table.<init>(XML2Table.java:70)
88
-
at oracle.dbtools.app.Persist2XML.<init>(Persist2XML.java:48)
89
-
at oracle.dbtools.app.Persist2XML.read(Persist2XML.java:95)
90
-
at <js>.configure(<eval>:104)
91
-
at <js>.getConfiguredFormatter(<eval>:161)
92
-
at <js>.run(<eval>:727)
84
+
at oracle.dbtools.arbori.Program.getRules(Program.java:285)
85
+
at oracle.dbtools.arbori.Program.getArboriParser(Program.java:194)
86
+
at oracle.dbtools.arbori.Program.compile(Program.java:338)
87
+
at oracle.dbtools.arbori.Program.compile(Program.java:327)
88
+
at oracle.dbtools.arbori.SqlProgram.<init>(SqlProgram.java:32)
89
+
at oracle.dbtools.app.Format$3.<init>(Format.java:343)
90
+
at oracle.dbtools.app.Format.format(Format.java:343)
91
+
at <js>.formatInSandbox(<eval>:168)
92
+
at <js>.formatFile(<eval>:670)
93
+
at <js>.formatFiles(<eval>:683)
94
+
at <js>.run(<eval>:737)
93
95
at <js>.:program(<eval>:803)
94
-
at org.graalvm.sdk/org.graalvm.polyglot.Context.eval(Context.java:399)
95
-
at org.graalvm.js.scriptengine/com.oracle.truffle.js.scriptengine.GraalJSScriptEngine.eval(GraalJSScriptEngine.java:478)
96
-
at org.graalvm.js.scriptengine/com.oracle.truffle.js.scriptengine.GraalJSScriptEngine.eval(GraalJSScriptEngine.java:420)
96
+
at org.graalvm.sdk/org.graalvm.polyglot.Context.eval(Context.java:403)
97
+
at org.graalvm.js.scriptengine/com.oracle.truffle.js.scriptengine.GraalJSScriptEngine.eval(GraalJSScriptEngine.java:485)
98
+
at org.graalvm.js.scriptengine/com.oracle.truffle.js.scriptengine.GraalJSScriptEngine.eval(GraalJSScriptEngine.java:427)
97
99
at com.trivadis.plsql.formatter.TvdFormat.run(TvdFormat.java:36)
98
100
at com.trivadis.plsql.formatter.TvdFormat.main(TvdFormat.java:49)
99
101
```
@@ -105,10 +107,10 @@ See also [macOS: no awt in java.library.path](https://github.com/oracle/graal/is
105
107
106
108
## How to Build
107
109
108
-
1.[Download](https://www.oracle.com/tools/downloads/sqlcl-downloads.html) and install SQLcl 23.1.0
109
-
2.[Download](https://github.com/graalvm/graalvm-ce-builds/releases) and install the GraalVM JDK 17 22.3.1
110
+
1.[Download](https://www.oracle.com/tools/downloads/sqlcl-downloads.html) and install SQLcl 23.3.0
111
+
2.[Download](https://github.com/graalvm/graalvm-ce-builds/releases/tag/jdk-17.0.9) and install the GraalVM JDK 17.0.9
110
112
3. Go to the `bin` directory of the GraalVM JDK and run `./gu install js native-image visualvm`. For native image on Windows you need to [download](https://visualstudio.microsoft.com/downloads/) Visual Studio Community 2022 and install the C++ compiler. Use `x64 Native Tools Command Prompt for VS 2022` to get a terminal window with the correct environment.
111
-
4.[Download](https://maven.apache.org/download.cgi) and install Apache Maven 3.9.1
113
+
4.[Download](https://maven.apache.org/download.cgi) and install Apache Maven 3.9.6
112
114
5.[Download](https://git-scm.com/downloads) and install a git command line client
113
115
6. Clone the plsql-formatter-settings repository. The repository uses symbolic links. On Windows you have to use `git clone -c core.symlinks=true https://github.com/Trivadis/plsql-formatter-settings.git` as Administrator to make it work. See also [Symbolic Links in Windows](https://github.com/git-for-windows/git/wiki/Symbolic-Links) for more information.
114
116
7. Open a terminal window in the plsql-formatter-settings root folder and type
0 commit comments