File tree Expand file tree Collapse file tree 3 files changed +27
-2
lines changed Expand file tree Collapse file tree 3 files changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,12 @@ try running your full Rails application on. However it is ready for
120
120
experimentation and curious end-users to try on their gems and smaller
121
121
applications, and to send us reports of issues they find.
122
122
123
+ # # Releases
124
+
125
+ TruffleRuby has the same version and is released at the same time as GraalVM.
126
+ There is a release every 3 months, see the [release roadmap](https://www.graalvm.org/docs/release-notes/version-roadmap/).
127
+ There are additional Critical Patch Update releases which are based on regular releases and include extra security fixes.
128
+
123
129
# # Migration from MRI
124
130
125
131
TruffleRuby should in most cases work as a drop-in replacement for MRI, but you
Original file line number Diff line number Diff line change @@ -84,6 +84,25 @@ Note that build information such as the date and Git revision hash will not be
84
84
updated when you build for a second time. Releases should always be built from
85
85
scratch.
86
86
87
+ ### Using the correct version of the graal repository
88
+
89
+ TruffleRuby needs the ` truffle ` and ` sulong ` suites from the ` graal ` repository.
90
+ ` jt build ` will automatically clone the repository but not enforce a specific version (commit).
91
+ When running ` jt build ` , you might see an early warning:
92
+ ```
93
+ $ jt build
94
+ $ mx --env jvm scheckimports --ignore-uncommitted --warn-only
95
+ WARNING: imported version of sulong in truffleruby (89aaf87268) does not match parent (aa6d8e07a6)
96
+ You might want to run "mx sforceimports" to use the imported version or update the import with "mx scheckimports"
97
+ ```
98
+
99
+ This warning is important.
100
+ If you did not create new commits in ` graal ` , you will typically need to run ` jt mx sforceimports `
101
+ so that a known compatible commit of ` graal ` is used (that commit is recorded in ` mx.truffleruby/suite.py ` ).
102
+
103
+ This is not done automatically, because sometimes you might want to have changes in ` graal ` ,
104
+ and because developers of the Truffle or Sulong team typically want to use a different commit of ` graal ` to test their changes.
105
+
87
106
### Building C Extensions more quickly
88
107
89
108
To speed up compilation of bundled C extensions, it is possible to use
Original file line number Diff line number Diff line change 4
4
5
5
There are two ways to print exceptions, which can be useful to find the source of an error:
6
6
7
- * the standard Ruby ` -d ` flag which print the ` file:line ` where each exception was raised.
7
+ * the standard Ruby ` -d ` flag which prints the ` file:line ` where each exception was raised.
8
8
* ` --backtraces-raise ` which show the full backtrace on each exception raised.
9
9
10
10
Both print all exceptions even if the exceptions are later rescued.
11
11
12
- Java exceptions can be printed with ` exceptions-print-uncaught-java ` or
12
+ Java exceptions can be printed with ` -- exceptions-print-uncaught-java` or
13
13
` --exceptions-print-java ` .
14
14
15
15
See other ` --backtraces-* ` and ` --exceptions-* ` options for more possibilities.
You can’t perform that action at this time.
0 commit comments