Skip to content

Commit afdfb20

Browse files
committed
Add v1.0.6 release notes
1 parent c09b3f0 commit afdfb20

File tree

1 file changed

+74
-0
lines changed

1 file changed

+74
-0
lines changed

website/docs/release_notes.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,80 @@ import ReactPlayer from 'react-player'
77

88
# Release notes
99

10+
## [v1.0.6](https://github.com/VirtusLab/scala-cli/releases/tag/v1.0.6)
11+
12+
### Scala CLI won't default to the system JVM if it's not supported anymore
13+
14+
If your `JAVA_HOME` environment variable has been pointing to a JVM that is no longer supported by Scala CLI
15+
(so anything below 17, really), you may have run into an error like this one with Scala CLI v1.0.5:
16+
17+
```bash ignore
18+
scala-cli --power bloop exit
19+
# Stopped Bloop server.
20+
export JAVA_HOME=$(cs java-home --jvm zulu:8)
21+
scala-cli -e 'println(System.getProperty("java.version"))'
22+
# Starting compilation server
23+
# Error: bloop.rifle.FailedToStartServerExitCodeException: Server failed with exit code 1
24+
# For more details, please see '/var/folders/5n/_ggj7kk93czdt_n0jzrk8s780000gn/T/1343202731019130640/.scala-build/stacktraces/1699527280-9858975811713766588.log'
25+
# Running
26+
# scala-cli --power bloop output
27+
# might give more details.
28+
```
29+
30+
This is because we no longer support JVM <17 with Scala CLI v1.0.5, but we still have been defaulting to whatever JVM
31+
was defined in `JAVA_HOME`. As a result, Bloop has been failing to start when running with, say, `JAVA_HOME` pointing
32+
to Java 8.
33+
34+
This is no longer the case. Scala CLI will now automatically download Java 17 for Bloop in such a situation
35+
(and still use the JVM from `JAVA_HOME` for running the code, while Bloop runs on 17).
36+
37+
```bash
38+
scala-cli --power bloop exit
39+
# Stopped Bloop server.
40+
export JAVA_HOME=$(cs java-home --jvm zulu:8)
41+
scala-cli -e 'println(System.getProperty("java.version"))'
42+
# Starting compilation server
43+
# Compiling project (Scala 3.3.1, JVM (8))
44+
# Compiled project (Scala 3.3.1, JVM (8))
45+
# 1.8.0_392
46+
```
47+
48+
Added by [@tgodzik](https://github.com/tgodzik) in [#2508](https://github.com/VirtusLab/scala-cli/pull/2508).
49+
50+
## Other changes
51+
52+
### Fixes
53+
* Fix `--watch` failing on invalid `PathWatchers.Event` & skip wonky tests on Mac CI by [@Gedochao](https://github.com/Gedochao) in [#2515](https://github.com/VirtusLab/scala-cli/pull/2515)
54+
* bugfix: Don't try to always get system jvm first by [@tgodzik](https://github.com/tgodzik) in [#2508](https://github.com/VirtusLab/scala-cli/pull/2508)
55+
56+
### Documentation changes
57+
* Back port of documentation changes to main by [@github-actions](https://github.com/features/actions) in [#2522](https://github.com/VirtusLab/scala-cli/pull/2522)
58+
* add cookbook about Emacs integration by [@ag91](https://github.com/ag91) in [#2506](https://github.com/VirtusLab/scala-cli/pull/2506)
59+
60+
### Build and internal changes
61+
* Bump actions/setup-node from 3 to 4 by [@dependabot](https://docs.github.com/en/code-security/dependabot) in [#2493](https://github.com/VirtusLab/scala-cli/pull/2493)
62+
* Update scala-cli.sh launcher for 1.0.5 by [@github-actions](https://github.com/features/actions) in [#2500](https://github.com/VirtusLab/scala-cli/pull/2500)
63+
* Simplify build by [@lolgab](https://github.com/lolgab) in [#2512](https://github.com/VirtusLab/scala-cli/pull/2512)
64+
* Fix wonky native MacOS CI on `stable` branch by [@Gedochao](https://github.com/Gedochao) in [#2518](https://github.com/VirtusLab/scala-cli/pull/2518)
65+
* Add regexes for release-notes github reference swapping by [@MaciejG604](https://github.com/MaciejG604) in [#2519](https://github.com/VirtusLab/scala-cli/pull/2519)
66+
67+
### Updates and maintenance
68+
* Update scalafmt-cli_2.13, scalafmt-core to 3.7.15 by [@scala-steward](https://github.com/scala-steward-org/scala-steward) in [#2498](https://github.com/VirtusLab/scala-cli/pull/2498)
69+
* Switch `lightweight-spark-distrib` to the VL fork & bump to `0.0.5` by [@Gedochao](https://github.com/Gedochao) in [#2503](https://github.com/VirtusLab/scala-cli/pull/2503)
70+
* Bump VirtusLab/scala-cli-setup from 1.0.4 to 1.0.5 by [@dependabot](https://docs.github.com/en/code-security/dependabot) in [#2504](https://github.com/VirtusLab/scala-cli/pull/2504)
71+
* Switch `java-class-name` to the VL fork & bump to `0.1.3` by [@Gedochao](https://github.com/Gedochao) in [#2502](https://github.com/VirtusLab/scala-cli/pull/2502)
72+
* Update sbt to 1.9.7 by [@scala-steward](https://github.com/scala-steward-org/scala-steward) in [#2505](https://github.com/VirtusLab/scala-cli/pull/2505)
73+
* Update os-lib to 0.9.2 by [@scala-steward](https://github.com/scala-steward-org/scala-steward) in [#2514](https://github.com/VirtusLab/scala-cli/pull/2514)
74+
* Update case-app to 2.1.0-M26 by [@scala-steward](https://github.com/scala-steward-org/scala-steward) in [#2513](https://github.com/VirtusLab/scala-cli/pull/2513)
75+
* Update mill-main to 0.11.5 by [@scala-steward](https://github.com/scala-steward-org/scala-steward) & [@MaciejG604](https://github.com/MaciejG604) in [#2446](https://github.com/VirtusLab/scala-cli/pull/2446)
76+
* Update core_2.13 to 3.9.1 by [@scala-steward](https://github.com/scala-steward-org/scala-steward) in [#2521](https://github.com/VirtusLab/scala-cli/pull/2521)
77+
* Switch `nocrc32-zip-input-stream` to the VL fork & bump it to `0.1.2` by [@Gedochao](https://github.com/Gedochao) in [#2520](https://github.com/VirtusLab/scala-cli/pull/2520)
78+
79+
## New Contributors
80+
* [@ag91](https://github.com/ag91) made their first contribution in [#2506](https://github.com/VirtusLab/scala-cli/pull/2506)
81+
82+
**Full Changelog**: https://github.com/VirtusLab/scala-cli/compare/v1.0.5...v1.0.6
83+
1084
## [v1.0.5](https://github.com/VirtusLab/scala-cli/releases/tag/v1.0.5)
1185

1286
## What's new

0 commit comments

Comments
 (0)