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
fixup line number reporting and simplify implementation: part 1 (mpollmeier#157)
Part 1 (this PR): predef files. Prior to this we concatenated all predef
files
and handed that over to the REPL/script/embedded driver for
interpretation.
That worked, but the line numbers were wrong, and the implementation
more
complicated than necessary.
A followup PR will address the issue for scripts as well. That's
somewhat
different because we need to embed the script content in some wrapper
code..
-[Additional dependency resolvers and credentials](#additional-dependency-resolvers-and-credentials)
44
45
*[Attach a debugger (remote jvm debug)](#attach-a-debugger-remote-jvm-debug)
@@ -60,7 +61,6 @@ Prerequisite: jdk11+
60
61
*[Updating the shaded libraries](#updating-the-shaded-libraries)
61
62
-[Fineprint](#fineprint)
62
63
63
-
64
64
## Benefits over / comparison with
65
65
66
66
### Regular Scala REPL
@@ -136,7 +136,7 @@ All operators use the same pretty-printing that's used within the REPL, i.e. you
136
136
```scala
137
137
scala>caseclassPrettyPrintable(s: String, i: Int)
138
138
scala>PrettyPrintable("two", 2) #>"out.txt"
139
-
// out.txt now contains `PrettyPrintable(s = "two", i = 2)`
139
+
// out.txt now contains `PrettyPrintable(s = "two", i = 2)` - in pretty colors
140
140
```
141
141
142
142
The operators have a special handling for two common use cases that are applied at the root level of the object you hand them: list- or iterator-type objects are unwrapped and their elements are rendered in separate lines, and Strings are rendered without the surrounding `""`. Examples:
0 commit comments